Package VASSAL.build.module.index
Class PiecePropertyIndex
java.lang.Object
VASSAL.build.module.index.PiecePropertyIndex
Maintain a reverse cross-reference of property values to GamePieces that have that value for
a given property.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addOrUpdatePiece
(GamePiece piece) Add a new piece to the index, or check and update the value for an existing pieceint
getCount()
Return the set of pieces that have the specified value for the property we are indexingvoid
removePiece
(GamePiece piece) Remove a piece from the index
-
Constructor Details
-
PiecePropertyIndex
-
-
Method Details
-
addOrUpdatePiece
Add a new piece to the index, or check and update the value for an existing piece- Parameters:
piece
- Piece added/changed
-
getCount
public int getCount() -
removePiece
Remove a piece from the index- Parameters:
piece
- Piece removed
-
getPieces
-