Package VASSAL.counters
Class SideAccess
java.lang.Object
VASSAL.counters.SideAccess
- All Implemented Interfaces:
PieceAccess
public class SideAccess extends Object implements 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
Constructors Constructor Description SideAccess() -
Method Summary
Modifier and Type Method Description booleancurrentPlayerCanModify(String ownerId)Return true if the current player can take (or relinquish) control of this piecebooleancurrentPlayerHasAccess(String id)Return true if the current player can access this piece, given that the piece is owned by the player with the given idStringgetCurrentPlayerId()Return a String identifying the current playerstatic SideAccessgetInstance()
-
Constructor Details
-
SideAccess
public SideAccess()
-
-
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
-