Module app
Package app.chess

Class StateManager

java.lang.Object
app.chess.StateManager

class StateManager extends Object
  • Constructor Details

    • StateManager

      StateManager()
    • StateManager

      StateManager(StateManager toCopy)
  • Method Details

    • copyState

      void copyState(StateManager toCopy)
      Overrides the state of a given state manager.
      Parameters:
      toCopy - State manager we should copy
    • switchCurrentPlayer

      void switchCurrentPlayer()
    • waitForPromotion

      void waitForPromotion()
    • markPromotionAsDone

      void markPromotionAsDone()
    • thereIsPromotionPending

      boolean thereIsPromotionPending()
    • getCurrentPlayer

      int getCurrentPlayer()