mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-01-31 23:29:36 +01:00
Fjerner unødvendige metoder fra ICardWithoutSuit
Fjerner setValue og setSymbol siden et kort ikke skal kunne endres
This commit is contained in:
parent
6c49fd0e9c
commit
6264fc7462
@ -1,33 +1,20 @@
|
||||
package inf112.fiasko.roborally.objects;
|
||||
|
||||
/**
|
||||
* This Interface describes a card
|
||||
* @param <S> the type for the card value
|
||||
* @param <T> the type for the symbol
|
||||
* This Interface describes a card without a card suit
|
||||
* @param <S> The value type
|
||||
* @param <T> The symbol type
|
||||
*/
|
||||
public interface ICardWithoutSuit<S,T> {
|
||||
/**
|
||||
* Gets the value of the card
|
||||
* @return card value
|
||||
* @return The card value
|
||||
*/
|
||||
S getValue();
|
||||
|
||||
/**
|
||||
* Gets the symbol of the card
|
||||
* @return card symbol
|
||||
* @return The card symbol
|
||||
*/
|
||||
T getSymbol();
|
||||
|
||||
/**
|
||||
* Sets the value of the card
|
||||
* @param value card value
|
||||
*/
|
||||
void setValue(S value);
|
||||
|
||||
/**
|
||||
* Sets the symbol of the card
|
||||
* @param symbol card symbol
|
||||
*/
|
||||
void setSymbol(T symbol);
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user