Class SpecifiedSideAccess
java.lang.Object
VASSAL.counters.SpecifiedSideAccess
- All Implemented Interfaces:
PieceAccess
Access is granted if
PlayerRoster.getMySide()
is in a specified list- Author:
- rkinney
-
Nested Class Summary
Nested classes/interfaces inherited from interface VASSAL.counters.PieceAccess
PieceAccess.GlobalAccess -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancurrentPlayerCanModify(String ownerId) Return true if the current player can take (or relinquish) control of this piecebooleancurrentPlayerHasAccess(String ownerId) Return true if the current player can access this piece, given that the piece is owned by the player with the given idReturn a String identifying the current playergetSides()
-
Constructor Details
-
SpecifiedSideAccess
-
-
Method Details
-
getCurrentPlayerId
Description copied from interface:PieceAccessReturn a String identifying the current player- Specified by:
getCurrentPlayerIdin interfacePieceAccess
-
currentPlayerHasAccess
Description copied from interface:PieceAccessReturn true if the current player can access this piece, given that the piece is owned by the player with the given id- Specified by:
currentPlayerHasAccessin interfacePieceAccess
-
getSides
-
currentPlayerCanModify
Description copied from interface:PieceAccessReturn true if the current player can take (or relinquish) control of this piece- Specified by:
currentPlayerCanModifyin interfacePieceAccess
-