|
JSettlers v1.0.6 API Built ${date} |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsoc.game.SOCDevCardSet
This represents a collection of development cards
| Field Summary | |
static int |
NEW
|
static int |
OLD
age constants |
| Constructor Summary | |
SOCDevCardSet()
Make an empty development card set |
|
SOCDevCardSet(SOCDevCardSet set)
Make a copy of a dev card set |
|
| Method Summary | |
void |
add(int amt,
int age,
int ctype)
add an amount to a type of card |
void |
clear()
set the number of old and new dev cards to zero |
int |
getAmount(int age,
int ctype)
|
int |
getNumVPCards()
|
int |
getTotal()
|
void |
newToOld()
change all the new cards to old ones |
void |
setAmount(int amt,
int age,
int ctype)
set the amount of a type of card |
void |
subtract(int amt,
int age,
int ctype)
subtract an amount from a type of card |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int OLD
public static final int NEW
| Constructor Detail |
public SOCDevCardSet()
public SOCDevCardSet(SOCDevCardSet set)
set - the dev card set to copy| Method Detail |
public void clear()
public int getAmount(int age,
int ctype)
age - either OLD or NEWctype - the type of development card as described
in SOCDevCardConstants
public int getTotal()
public void setAmount(int amt,
int age,
int ctype)
age - either OLD or NEWctype - the type of development cardamt - the amount
public void add(int amt,
int age,
int ctype)
age - either OLD or NEWctype - the type of development cardamt - the amount
public void subtract(int amt,
int age,
int ctype)
age - either OLD or NEWctype - the type of development cardamt - the amountpublic int getNumVPCards()
public void newToOld()
|
JSettlers v1.0.6 API Built ${date} |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||