|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IAgentCollection
Defines methods required by collections that hold IAgent
s.
Method Summary | |
---|---|
int |
count(Class type)
Return the count of agents in this collection of the given type. |
IAgent |
findByName(String name)
Return the agent with the given name. |
IAgent |
findByTeam(ITeam team)
Return the first agent with the given team. |
IAgent |
firstOpponent(IAgent agent)
Return the first found agent opponent to the given agent. |
Iterator |
opponentIterator(IAgent agent)
Return an iterator over all the agents excepting the given agent. |
Methods inherited from interface org.vizzini.util.ICollection |
---|
toString |
Methods inherited from interface java.util.Collection |
---|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
Method Detail |
---|
int count(Class type)
type
- Agent class.IAgent findByName(String name)
IAgent findByTeam(ITeam team)
IAgent firstOpponent(IAgent agent)
agent
- Agent.Iterator opponentIterator(IAgent agent)
agent
- The agent to omit from the iterator.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |