public class OneWayConnector extends Object implements Connector, Serializable
Connector that transitions in only one direction.| Constructor and Description |
|---|
OneWayConnector(Level level,
int xPos,
int yPos)
Creates an instance of
OneWayConnector. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
enteredConnection(CharacterManager mgr)
Transitions the given character to the target point.
|
public OneWayConnector(Level level, int xPos, int yPos)
OneWayConnector.level - a level that this connects toxPos - the x-coord on the level this connects toyPos - the y-coord on the level this connects topublic boolean enteredConnection(CharacterManager mgr)
enteredConnection in interface Connectormgr - the character's managerCopyright © 2013. All Rights Reserved.