Package VASSAL.counters
Interface PieceAccess
- All Known Implementing Classes:
PlayerAccess
,SideAccess
,SpecifiedSideAccess
public interface PieceAccess
Defines ability of a player to access a GamePiece
- Author:
- rkinney
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Global utility class to temporarily restrict access to all piece -
Method Summary
Modifier and TypeMethodDescriptionboolean
currentPlayerCanModify
(String ownerId) Return true if the current player can take (or relinquish) control of this pieceboolean
currentPlayerHasAccess
(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 player
-
Method Details
-
getCurrentPlayerId
String getCurrentPlayerId()Return a String identifying the current player -
currentPlayerHasAccess
Return true if the current player can access this piece, given that the piece is owned by the player with the given id -
currentPlayerCanModify
Return true if the current player can take (or relinquish) control of this piece
-