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
Nested ClassesModifier and TypeInterfaceDescriptionstatic classGlobal utility class to temporarily restrict access to all piece -
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 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
-