public interface Game
extends com.sun.sgs.app.ManagedObject
Lobby or a Dungeon.| Modifier and Type | Field and Description |
|---|---|
static String |
NAME_PREFIX
The standard namespace prefix for all games.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns the name of this
Game. |
MessageHandler |
join(Player player)
Joins the given
Player to this Game. |
void |
leave(Player player)
Removes the given
Player from this Game. |
int |
numPlayers()
Returns the number of players in this
Game. |
static final String NAME_PREFIX
MessageHandler join(Player player)
Player to this Game. The
player has been get-locked.player - the Player joining this gameMessageHandler that will process the
provided player's messages while they are joined to
this gamevoid leave(Player player)
Player from this Game. The
player has been get-locked.player - the Player joining this gameString getName()
Game.int numPlayers()
Game.Copyright © 2013. All Rights Reserved.