Class PlayerAccess
java.lang.Object
VASSAL.counters.PlayerAccess
- All Implemented Interfaces:
PieceAccess
Access is granted if
GameModule.getUserId() matches- 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 piecebooleanReturn 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 PlayerAccess
-
Constructor Details
-
PlayerAccess
public PlayerAccess()
-
-
Method Details
-
getInstance
-
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
-
currentPlayerCanModify
Description copied from interface:PieceAccessReturn true if the current player can take (or relinquish) control of this piece- Specified by:
currentPlayerCanModifyin interfacePieceAccess
-