public class PlayerConnector extends SimpleConnector implements Serializable
SimpleConnector that only allows
PlayerCharacters to enter. This lets you create boundries
for AI creatures.| Constructor and Description |
|---|
PlayerConnector(Level level1,
int level1X,
int level1Y,
Level level2,
int level2X,
int level2Y)
Creates an instance of
PlayerConnector. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
enteredConnection(CharacterManager mgr)
Transitions the given character to the other point connected to
their current location, checking first that this character belongs
to a player.
|
handleEnteredpublic PlayerConnector(Level level1, int level1X, int level1Y, Level level2, int level2X, int level2Y)
PlayerConnector.level1 - a levellevel1X - the x-coord on the first levellevel1Y - the y-coord on the first levellevel2 - another levellevel2X - the x-coord on the second levellevel2Y - the y-coord on the second levelpublic boolean enteredConnection(CharacterManager mgr)
enteredConnection in interface ConnectorenteredConnection in class SimpleConnectormgr - the character's managerCopyright © 2013. All Rights Reserved.