public interface GameAdminService
Modifier and Type | Method and Description |
---|---|
Object |
loadGame(long gameId,
String gameName)
Loads a game based on the game id OR game name.
|
Object |
loadGameRoom(Game game,
long gameRoomId,
String gameRoomName)
Loads a game room based on the game room id OR game name.
|
boolean |
registerGame(Game game)
Implementation method will internally add this game instance to a set.
|
void |
shutdown()
Unloads all the games and game rooms that is stored in the admin services
internal set.
|
Object |
unLoadGame(Game game)
Unloads a game based on the game instance passed in.
|
Object |
unLoadGame(long gameId,
String gameName)
Unloads a game based on the game id OR game name.
|
Object |
unloadGameRoom(Game game,
long gameRoomId)
Unloads a game room of a game based on the instance of the game, the
unique identifier of the game room or the string game room name.
|
void |
unloadGameRoom(GameRoom gameRoom)
Unloads a game room based on the game room instance passed in.
|
Object |
unloadGameRoom(Game game,
String gameRoomName)
Unloads a game room of a game based on the instance of the game and the
name of the game room.
|
boolean registerGame(Game game)
game
- The game instance to register with the admin service.Object loadGame(long gameId, String gameName)
gameId
- The unique number identifier for the game. Most probably a
database key.gameName
- The unique name for a game.Object unLoadGame(long gameId, String gameName)
GameRoom
s or PlayerSession
s associated
with this game.gameId
- The unique number identifier for the game. Most probably a
database key.gameName
- The unique name for a game.Object unLoadGame(Game game)
GameRoom
s or
PlayerSession
s associated with this game.game
- The instance of the game to unload.Object loadGameRoom(Game game, long gameRoomId, String gameRoomName)
game
- The game for which the game room need to be loaded.gameRoomId
- The unique identifier for the game room. Most probably a
database id.gameRoomName
- The name of the game room to load.void unloadGameRoom(GameRoom gameRoom)
PlayerSession
s associated with this game room.gameRoom
- The game room instance which is to be unloaded.Object unloadGameRoom(Game game, long gameRoomId)
PlayerSession
s associated with this game room.game
- The instance of the game for which the game room needs to be
removed.gameRoomId
- The unique identifier for the game room. Most probably a
database id.Object unloadGameRoom(Game game, String gameRoomName)
PlayerSession
s associated with this game room.game
- The instance of the game for which the game room needs to be
removedgameRoomName
- The name of the game room to unload.void shutdown()
Copyright © 2013. All Rights Reserved.