public class GameConnector extends Object implements Connector, Serializable
Connector that is used to connect a
game to an initial Level. The common use for
this class is to connect to the Lobby, though in practice
this class may be used to move between any games.| Constructor and Description |
|---|
GameConnector(Game game,
Level level,
int startX,
int startY)
Creates an instance of
GameConnector. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
enteredConnection(CharacterManager mgr)
Transitions the given character to the game if they're in the
level, and to the level if they're in the game.
|
public boolean enteredConnection(CharacterManager mgr)
enteredConnection in interface Connectormgr - a reference to the character's managerCopyright © 2013. All Rights Reserved.