|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vizzini.util.AbstractCollection
org.vizzini.util.AbstractMap
org.vizzini.game.TokenCollection
org.vizzini.game.TokenPositionCollection
public class TokenPositionCollection
Provides a collection to hold IToken
s, where the tokens are
stored by their position.
Constructor Summary | |
---|---|
TokenPositionCollection()
Construct this object. |
|
TokenPositionCollection(int initialCapacity)
Construct this object with the given parameters. |
Method Summary | |
---|---|
IToken |
findByName(String name)
Return the token with the given name. |
IToken |
get(IPosition position)
Return the token at the given position. |
protected Object |
getKey(Object object)
Return the token key. |
String[] |
getTokenPropertyNames()
Return the property names of interest to this. |
void |
propertyChange(PropertyChangeEvent event)
Implement a property change listener for relevant token properties. |
Methods inherited from class org.vizzini.game.TokenCollection |
---|
add, clone, configure, configure, get, getData, getKey, getType, iterator, remove |
Methods inherited from class org.vizzini.util.AbstractMap |
---|
clear, contains, equals, hashCode, isEmpty, iterator, size, toString |
Methods inherited from class org.vizzini.util.AbstractCollection |
---|
addAll, containsAll, removeAll, retainAll, toArray, toArray |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.vizzini.util.ICollection |
---|
toString |
Methods inherited from interface java.util.Collection |
---|
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, removeAll, retainAll, size, toArray, toArray |
Constructor Detail |
---|
public TokenPositionCollection()
public TokenPositionCollection(int initialCapacity)
Method Detail |
---|
public IToken findByName(String name)
findByName
in interface ITokenCollection
findByName
in class TokenCollection
public IToken get(IPosition position)
get
in interface ITokenCollection
get
in class TokenCollection
public String[] getTokenPropertyNames()
getTokenPropertyNames
in class TokenCollection
public void propertyChange(PropertyChangeEvent event)
propertyChange
in interface PropertyChangeListener
propertyChange
in class TokenCollection
protected Object getKey(Object object)
getKey
in class TokenCollection
|
||||||||||
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 |