public interface Game
Modifier and Type | Method and Description |
---|---|
GameCommandInterpreter |
getGameCommandInterpreter()
Each game requires a different set of game commands.
|
String |
getGameName()
Get the name of the game.
|
Object |
getId() |
void |
setGameCommandInterpreter(GameCommandInterpreter interpreter)
Set the interpreter associated with this game.
|
void |
setGameName(String gameName)
Set the name of the game.
|
void |
setId(Object id) |
Object |
unload()
Unloads the current game, by closing all sessions.
|
Object getId()
void setId(Object id)
id
- Sets the unique id for this game.String getGameName()
void setGameName(String gameName)
gameName
- Set the preferably unique game name.GameCommandInterpreter getGameCommandInterpreter()
GameCommandInterpreter
instance.void setGameCommandInterpreter(GameCommandInterpreter interpreter)
Game
instance or set by the spring
container.interpreter
- The interpreter instance to set.Object unload()
GameRoom.close()
ChannelFuture
object.Copyright © 2013. All Rights Reserved.