Package VASSAL.build.module
Class Inventory.Counter
java.lang.Object
VASSAL.build.module.Inventory.Counter
- All Implemented Interfaces:
PropertySource
- Enclosing class:
- Inventory
public class Inventory.Counter extends Object implements PropertySource
Holds static information of and a reference to a gamepiece. Pay attention
to the equals method. It checks if two pieces can be found under the same
path!
- Author:
- Brent Easton and Torsten Spindler
-
Field Summary
Fields Modifier and Type Field Description protected FormattedString
format
protected List<String>
groups
protected String
localName
protected Inventory.CounterNode
node
protected GamePiece
piece
protected FormattedString
sortingFormat
protected GamePiece
source
protected int
value
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
Object
getLocalizedProperty(Object key)
String
getName()
String[]
getPath()
GamePiece
getPiece()
Object
getProperty(Object key)
int
getValue()
int
hashCode()
void
setNode(Inventory.CounterNode node)
void
setPiece(GamePiece piece)
void
setValue(int value)
String
toSortKey()
String
toString()
-
Field Details
-
piece
-
source
-
groups
-
value
protected int value -
localName
-
format
-
sortingFormat
-
node
-
-
Constructor Details
-
Counter
-
Counter
-
Counter
-
-
Method Details
-
getName
-
hashCode
public int hashCode() -
toString
-
toSortKey
-
getPath
-
getValue
public int getValue() -
setValue
public void setValue(int value) -
getPiece
-
setPiece
-
equals
-
getProperty
- Specified by:
getProperty
in interfacePropertySource
-
getLocalizedProperty
- Specified by:
getLocalizedProperty
in interfacePropertySource
-
setNode
-