Package tech.underoaks.coldcase.remote
Class Messages.startGameMessage
java.lang.Object
tech.underoaks.coldcase.remote.Messages.startGameMessage
- Enclosing class:
Messages
Message to initiate the start of a game.
Contains the level index to be loaded when starting the game.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an emptystartGameMessage.startGameMessage(int levelIndex) Constructs astartGameMessagewith the specified level index. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the level index associated with this start game message.voidsetLevelIndex(int levelIndex) Sets the level index for this start game message.
-
Constructor Details
-
startGameMessage
public startGameMessage(int levelIndex) Constructs astartGameMessagewith the specified level index.- Parameters:
levelIndex- the index of the level to start
-
startGameMessage
public startGameMessage()Constructs an emptystartGameMessage.
-
-
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
-