Package VASSAL.counters
Class SideAccess
java.lang.Object
VASSAL.counters.SideAccess
- All Implemented Interfaces:
PieceAccess
Access is granted if
PlayerRoster.getMySide()
matches- Author:
- rkinney
-
Nested Class Summary
Nested classes/interfaces inherited from interface VASSAL.counters.PieceAccess
PieceAccess.GlobalAccess
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
currentPlayerCanModify
(String ownerId) Return true if the current player can take (or relinquish) control of this pieceboolean
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 playerstatic SideAccess
-
Constructor Details
-
SideAccess
public SideAccess()
-
-
Method Details
-
getInstance
-
getCurrentPlayerId
Description copied from interface:PieceAccess
Return a String identifying the current player- Specified by:
getCurrentPlayerId
in interfacePieceAccess
-
currentPlayerHasAccess
Description copied from interface:PieceAccess
Return true if the current player can access this piece, given that the piece is owned by the player with the given id- Specified by:
currentPlayerHasAccess
in interfacePieceAccess
-
currentPlayerCanModify
Description copied from interface:PieceAccess
Return true if the current player can take (or relinquish) control of this piece- Specified by:
currentPlayerCanModify
in interfacePieceAccess
-