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 FormattedStringformatprotected List<String>groupsprotected StringlocalNameprotected Inventory.CounterNodenodeprotected GamePiecepieceprotected FormattedStringsortingFormatprotected GamePiecesourceprotected intvalue -
Constructor Summary
-
Method Summary
Modifier and Type Method Description booleanequals(Object o)ObjectgetLocalizedProperty(Object key)StringgetName()String[]getPath()GamePiecegetPiece()ObjectgetProperty(Object key)intgetValue()inthashCode()voidsetNode(Inventory.CounterNode node)voidsetPiece(GamePiece piece)voidsetValue(int value)StringtoSortKey()StringtoString()
-
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:
getPropertyin interfacePropertySource
-
getLocalizedProperty
- Specified by:
getLocalizedPropertyin interfacePropertySource
-
setNode
-