de.torfu.kabayellow.common
Class CardCollection
java.lang.Object
|
+--de.torfu.kabayellow.common.CardCollection
- public class CardCollection
- extends java.lang.Object
Kapselt die Aktionskartensammlung eines Spielers. Wird von Player
verwendet.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getCard
public ActionCard getCard(int index)
toArray
public ActionCard[] toArray()
getCount
public int getCount()
getBought
public int getBought()
hasPlayed
public boolean hasPlayed()
canPlay
public boolean canPlay(ActionCard card)
getPlayableCount
public int getPlayableCount()
contains
public boolean contains(ActionCard card)
getCountByType
public int getCountByType(int type)
getPlayableCountByType
public int getPlayableCountByType(int type)
getByType
public ActionCard getByType(int type)
getNewest
public ActionCard getNewest()