|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITokenCollection
Defines methods required by collections that hold IToken
s.
Method Summary | |
---|---|
Object |
clone()
Return a deep clone of this instance. |
void |
configure(Properties properties)
Configure this collection. |
IToken |
findByName(String name)
Return the team with the given name. |
IToken |
get(Class tokenType,
IAgent agent)
Return the first token found of the given type belonging to the given agent. |
IToken |
get(IPosition position)
Return the token at the given position. |
Iterator |
iterator(Class aClass)
Return an iterator over the collection of tokens of the given class. |
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 |
---|
Object clone()
void configure(Properties properties) throws InstantiationException, IllegalAccessException
properties
- Source of configuration information. This is
typically the game.properties.
InstantiationException
IllegalAccessException
IToken findByName(String name)
IToken get(IPosition position)
IToken get(Class tokenType, IAgent agent)
Iterator iterator(Class aClass)
|
||||||||||
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 |