Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.zazof.jteg
Class CardList  view CardList download CardList.java

java.lang.Object
  extended byorg.zazof.jteg.CardList

public class CardList
extends java.lang.Object


Field Summary
private  java.util.Vector $cards
           
private static boolean DEBUG
           
 
Constructor Summary
CardList()
           
 
Method Summary
 void deActivateCard(int countryID)
          DeActivate the card with the specified CountryID.
 java.util.Vector getActiveCards()
          Get the active cards in this cardlist.
 java.util.Enumeration getCards()
          Get the cards in this cardlist
 Card getFreeCard()
          Get a free card
 int getNumberOfSelectedCards()
          Get the number of selected (and active) cards.
 java.util.Vector getSelectedCards()
          Get the selected (and active) cards in this cardlist
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

$cards

private java.util.Vector $cards

DEBUG

private static boolean DEBUG
Constructor Detail

CardList

public CardList()
Method Detail

deActivateCard

public void deActivateCard(int countryID)
DeActivate the card with the specified CountryID. If no card exists with the countryID, nothing happens


getFreeCard

public Card getFreeCard()
                 throws NoFreeCardException
Get a free card


getCards

public java.util.Enumeration getCards()
Get the cards in this cardlist


getSelectedCards

public java.util.Vector getSelectedCards()
Get the selected (and active) cards in this cardlist


getActiveCards

public java.util.Vector getActiveCards()
Get the active cards in this cardlist. These are the cards this player HAS


getNumberOfSelectedCards

public int getNumberOfSelectedCards()
Get the number of selected (and active) cards.