|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.huguesjohnson.tiamat.Party
public class 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)
Returns the character at index, null if index<0 || index>=getMemberCount(). |
int |
getMemberCount()
Returns the number of characters in this Party. |
Character[] |
getMembers()
Returns the members (Characters) in the Party. |
Character |
remove(int index)
Removes and returns the character at the specified index. |
void |
setMembers(Character[] members)
Sets the members in the Party. |
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)
character
- The single member of the Party.Method Detail |
---|
public Character[] getMembers()
public void setMembers(Character[] members)
members
- The new members in the Party.public int getMemberCount()
public PlayerCharacter getMember(int index)
public void add(PlayerCharacter character)
character
- The Character to add.public Character remove(int index)
index
- The index of the Character to remove.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |