Class Messages.startGameMessage

java.lang.Object
tech.underoaks.coldcase.remote.Messages.startGameMessage
Enclosing class:
Messages

public static class Messages.startGameMessage extends Object
Message to initiate the start of a game. Contains the level index to be loaded when starting the game.
  • Constructor Details

    • startGameMessage

      public startGameMessage(int levelIndex)
      Constructs a startGameMessage with the specified level index.
      Parameters:
      levelIndex - the index of the level to start
    • startGameMessage

      public startGameMessage()
      Constructs an empty startGameMessage.
  • Method Details

    • getLevelIndex

      public int getLevelIndex()
      Returns the level index associated with this start game message.
      Returns:
      the level index as an int
    • setLevelIndex

      public void setLevelIndex(int levelIndex)
      Sets the level index for this start game message.
      Parameters:
      levelIndex - the level index to set