cluedo.info
Class CardInfo
java.lang.Object
|
+--cluedo.info.CluedoInfo
|
+--cluedo.info.CardInfo
- Direct Known Subclasses:
- SuspicionCardInfo
- public class CardInfo
- extends CluedoInfo
Instances of CardInfos contain information about a single cluedo card.
- See Also:
CluedoPDU
, Serialized Form
Fields inherited from class cluedo.info.CluedoInfo |
ACCEPTED,
CLOSED,
DIRECTOR,
EXPELLED,
INVITED,
LOOSER,
NUMPLAYERS,
OPENED,
REJECTED,
REMOVED,
SERVERID,
TEAMMATE,
TERMINATED,
UNKNOWN,
WINNER |
Constructor Summary |
CardInfo(int ownerId,
int type,
int item)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ROOM
public static final int ROOM
- If
type
equals ROOM this is a room card
PERSON
public static final int PERSON
- If
type
equals PERSON this is a person card
ITEM
public static final int ITEM
- If
type
equals ITEM this is an item card
BARONIN_VON_PORZ
public static final int BARONIN_VON_PORZ
FRAEULEIN_GLORIA
public static final int FRAEULEIN_GLORIA
FRAU_WEISS
public static final int FRAU_WEISS
OBERST_VON_GATOW
public static final int OBERST_VON_GATOW
PROFESSOR_BLOOM
public static final int PROFESSOR_BLOOM
REVEREND_GRUEN
public static final int REVEREND_GRUEN
ARBEITSZIMMER
public static final int ARBEITSZIMMER
BIBLIOTHEK
public static final int BIBLIOTHEK
BILLARDZIMMER
public static final int BILLARDZIMMER
HALLE
public static final int HALLE
KUECHE
public static final int KUECHE
MUSIKZIMMER
public static final int MUSIKZIMMER
SALON
public static final int SALON
SPEISEZIMMER
public static final int SPEISEZIMMER
WINTERGARTEN
public static final int WINTERGARTEN
DOLCH
public static final int DOLCH
HEIZUNGSROHR
public static final int HEIZUNGSROHR
LEUCHTER
public static final int LEUCHTER
PISTOLE
public static final int PISTOLE
ROHRZANGE
public static final int ROHRZANGE
SEIL
public static final int SEIL
ownerId
public int ownerId
- owner of the card
type
public int type
- this attribute can be either ROOM, PERSON, or ITEM
item
public int item
- this attribute states the item of the card. E.g. item can be
kitchen, Professor Green, gun, etc.
CardInfo
public CardInfo(int ownerId,
int type,
int item)