|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.huguesjohnson.tiamat.Party
Party - a collection of Characters
| Constructor Summary | |
Party()
creates an empty Party |
|
Party(PlayerCharacter character)
creates a Party with a single member |
|
| Method Summary | |
void |
add(PlayerCharacter character)
adds a character to the end of the Party |
PlayerCharacter |
getMember(int index)
get the character at index null if index<0 || index>=count |
int |
getMemberCount()
return the number of characters in this Party |
PlayerCharacter[] |
getMembers()
|
Character |
remove(int index)
removes and returns the character at the specified index moves members down as needed returns null if index<0 || index>=count |
void |
setMembers(PlayerCharacter[] members)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Party()
public Party(PlayerCharacter character)
| Method Detail |
public PlayerCharacter[] getMembers()
public void setMembers(PlayerCharacter[] members)
public int getMemberCount()
public PlayerCharacter getMember(int index)
public void add(PlayerCharacter character)
public Character remove(int index)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||