|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--de.uni_paderborn.robots.data.Item
|
+--de.uni_paderborn.robots.data.Card
This class represents a card in the arena.
| Field Summary | |
private int |
color
color of card |
static long |
serialVersionUID
used for serialization |
private int |
value
value of card |
| Fields inherited from class de.uni_paderborn.robots.data.Item |
field, id |
| Constructor Summary | |
Card(int color,
int value)
constructor, creates a card with the specified color and value. |
|
| Method Summary | |
int |
getColor()
Returns color of card. |
int |
getValue()
Returns value of card. |
void |
setColor(int color)
Sets color of card. |
void |
setValue(int value)
Sets value of card. |
| Methods inherited from class de.uni_paderborn.robots.data.Item |
finalize, getField, getID, getItemName, setField |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public static final long serialVersionUID
private int color
private int value
| Constructor Detail |
public Card(int color,
int value)
color - color of cardvalue - value of card| Method Detail |
public void setColor(int color)
color - color of cardpublic void setValue(int value)
value - value of cardpublic int getColor()
public int getValue()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||