|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.htwdd.rosenkoenig.game.Card
public class Card
This class represents a card in the game.
| Field Summary | |
|---|---|
private Position |
value
|
| Constructor Summary | |
|---|---|
Card()
Ctor - emtpy |
|
Card(int x,
int y)
Creates a new card with the defined values. |
|
| Method Summary | |
|---|---|
int |
getDistance()
The distance is two, two, or three. |
Position |
getValue()
Getter of the property value |
void |
setValue(Position value)
Setter of the property value |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private Position value
| Constructor Detail |
|---|
public Card()
public Card(int x,
int y)
x - y - | Method Detail |
|---|
public Position getValue()
public void setValue(Position value)
value - The value to set.public int getDistance()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||