Interface Properties


public interface Properties
Defines the properties expected to be defined in each GamePiece
  • Field Details

    • INVISIBLE_TO_ME

      static final String INVISIBLE_TO_ME
      Return Boolean.TRUE if the piece cannot be seen by the user
      See Also:
      Constant Field Values
    • INVISIBLE_TO_OTHERS

      static final String INVISIBLE_TO_OTHERS
      See Also:
      Constant Field Values
    • OBSCURED_TO_OTHERS

      static final String OBSCURED_TO_OTHERS
      Return Boolean.TRUE if the piece's identity is not known to other players
      See Also:
      Constant Field Values
    • OBSCURED_TO_ME

      static final String OBSCURED_TO_ME
      Return Boolean.TRUE if the piece's identity is not known to the user
      See Also:
      Constant Field Values
    • OBSCURED_BY

      static final String OBSCURED_BY
      If a piece is obscured to other players, return a String identifying the player who obscured it
      See Also:
      GameModule.getUserId(), Constant Field Values
    • OBSCURED_BY_PRE_DRAW

      static final String OBSCURED_BY_PRE_DRAW
      In order to maintain Legacy support after the fix of bug 12951, we need to save the Obscured state prior to cards being drawn, let it be changed in the draw process, then restore it afterwards. Don't ask.
      See Also:
      Constant Field Values
    • BAND_SELECT_EVENT_FILTER

      static final String BAND_SELECT_EVENT_FILTER
      If non-null, then return an instance of EventFilter. The piece will not respond to band-select events if the filter rejects them
      See Also:
      Constant Field Values
    • SELECT_EVENT_FILTER

      static final String SELECT_EVENT_FILTER
      If non-null, then return an instance of EventFilter. The piece will not respond to selection events if the filter rejects them
      See Also:
      Constant Field Values
    • MOVE_EVENT_FILTER

      static final String MOVE_EVENT_FILTER
      If non-null, then return an instance of EventFilter. The piece will not respond to move events if the filter rejects them
      See Also:
      Constant Field Values
    • HIDDEN_BY

      static final String HIDDEN_BY
      If a piece is hidden to other players, return a STring identifying the player who hit it
      See Also:
      GameModule.getUserId(), Constant Field Values
    • TERRAIN

      static final String TERRAIN
      Return Boolean.TRUE if the piece behaves more like a terrain feature than a playing piece
      See Also:
      Constant Field Values
    • IGNORE_GRID

      static final String IGNORE_GRID
      Return Boolean.TRUE if the piece should ignore map grids when being moved
      See Also:
      Constant Field Values
    • NO_STACK

      static final String NO_STACK
      Return Boolean.TRUE if the piece does not form stacks
      See Also:
      Constant Field Values
    • SELECTED

      static final String SELECTED
      Return Boolean.TRUE if the piece has been marked as selected
      See Also:
      Constant Field Values
    • KEY_COMMANDS

      static final String KEY_COMMANDS
      Return a KeyCommand[] object representing the popup menu equivalencies for the key commands recognized by this piece
      See Also:
      Constant Field Values
    • INNER

      static final String INNER
      If this piece is a Decorator, return the decorated piece
      See Also:
      Constant Field Values
    • OUTER

      static final String OUTER
      If this piece decorated by a Decorator, return the Decorator
      See Also:
      Constant Field Values
    • RESTRICTED

      static final String RESTRICTED
      Return Boolean.TRUE if this piece has Restricted Access
      See Also:
      Constant Field Values
    • RESTRICTED_MOVEMENT

      static final String RESTRICTED_MOVEMENT
      Return Boolean.TRUE if this piece has movement restricted by a Restricted Access trait
      See Also:
      Constant Field Values
    • MOVED

      static final String MOVED
      Return Boolean.TRUE if this piece has been moved
      See Also:
      Constant Field Values
    • SNAPSHOT

      static final String SNAPSHOT
      Used to store a duplicate of the target piece at some point in time
      See Also:
      Constant Field Values
    • USE_UNROTATED_SHAPE

      static final String USE_UNROTATED_SHAPE
      If Boolean.TRUE, then treat the piece as if it were not rotated. This effects the value returned by GamePiece.getShape() and the way the piece is drawn.
      See Also:
      FreeRotator, Constant Field Values
    • VISIBLE_STATE

      static final String VISIBLE_STATE
      Return a String representing the visible features of the piece. If this String changes value, then the piece should be refreshed
      See Also:
      Constant Field Values
    • NON_MOVABLE

      static final String NON_MOVABLE
      Return Boolean.TRUE if the piece can never be moved
      See Also:
      Constant Field Values
    • PIECE_ID

      static final String PIECE_ID
      Global Piece Id
      See Also:
      Constant Field Values