| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A class to make human selections.
Constructor Summary | |
HumanSelection() Create a new human selection. |
Method Summary | |
protected void | add(Human human) Add the given human. |
void | clear() Make this selection empty. |
boolean | empty() Is this selection empty? |
protected Human | getLast() Get the most recently added human. |
boolean | isActiveSelected(Human human) Check whether this human is the last selected human. |
boolean | isSelected(Human human) Check whether the human is selected or not. |
List | list() Return the list of humans in this selection. |
Human | pop() Return the last human added. |
void | print() Prints the current selection to stdout (for debugging). |
protected void | remove(Human human) Remove the given human from the selection. |
boolean | select(Human human) Add/remove a human to the selection. |
int | size() The number of selected humans. |
void | update(Event evt) Triggered by the eventmanager when a human dies. |
Constructor Detail |
public HumanSelection()
Method Detail |
protected void add(Human human)
public void clear()
public boolean empty()
protected Human getLast()
public boolean isActiveSelected(Human human)
public boolean isSelected(Human human)
public List list()
public Human pop()
throws java.util.NoSuchElementException
public void print()
protected void remove(Human human)
public boolean select(Human human)
public int size()
public void update(Event evt)
Association Links |
| a gvijf production | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |