de.uni_paderborn.robots.data
Class Card

java.lang.Object
  |
  +--de.uni_paderborn.robots.data.Item
        |
        +--de.uni_paderborn.robots.data.Card
All Implemented Interfaces:
Identifyable, java.io.Serializable

public class Card
extends Item

This class represents a card in the arena.

See Also:
Serialized Form

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
, clone, equals, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
used for serialization

color

private int color
color of card

value

private int value
value of card
Constructor Detail

Card

public Card(int color,
            int value)
constructor, creates a card with the specified color and value.
Parameters:
color - color of card
value - value of card
Method Detail

setColor

public void setColor(int color)
Sets color of card.
Parameters:
color - color of card

setValue

public void setValue(int value)
Sets value of card.
Parameters:
value - value of card

getColor

public int getColor()
Returns color of card.
Returns:
color of card

getValue

public int getValue()
Returns value of card.
Returns:
value of card