Interface GameInstance.GameInstanceListener

Enclosing class:
GameInstance

public static interface GameInstance.GameInstanceListener
This interface is to be implemented by the UI in order to be notified about events that happen by the game logic
  • Method Summary

    Modifier and Type Method Description
    void pawnPositionUpdated​(Pawn pawn)
    This pawn has moved in the board
    void playerDrewCard​(Card aCard)
    A card has been activated by the player
    void playerLost​(Player aPlayer)
    This Player has lost the game
    void playerUpdated​(Player aPlayer)
    This Player has a variable with a changed value
    void playerWon​(Player aPlayer)
    This Player has won the game
  • Method Details

    • pawnPositionUpdated

      void pawnPositionUpdated​(Pawn pawn)
      This pawn has moved in the board
    • playerUpdated

      void playerUpdated​(Player aPlayer)
      This Player has a variable with a changed value
    • playerDrewCard

      void playerDrewCard​(Card aCard)
      A card has been activated by the player
    • playerWon

      void playerWon​(Player aPlayer)
      This Player has won the game
    • playerLost

      void playerLost​(Player aPlayer)
      This Player has lost the game