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.


Method Summary
 boolean canPlay(ActionCard card)
           
 boolean contains(ActionCard card)
           
 int getBought()
           
 ActionCard getByType(int type)
           
 ActionCard getCard(int index)
           
 int getCount()
           
 int getCountByType(int type)
           
 ActionCard getNewest()
           
 int getPlayableCount()
           
 int getPlayableCountByType(int type)
           
 boolean hasPlayed()
           
 ActionCard[] toArray()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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()