Package | Description |
---|---|
me.lihq.game.models | |
me.lihq.game.people |
Modifier and Type | Field and Description |
---|---|
AbstractPerson.Direction |
Room.Transition.newDirection
The direction the player should face when they enter the room
|
Modifier and Type | Method and Description |
---|---|
Room.Transition |
Room.Transition.setTo(Room room,
int newTileCoordinateX,
int newTileCoordinateY,
AbstractPerson.Direction newDirection)
This method takes the parameters and sets the values of the relevant properties
|
Modifier and Type | Field and Description |
---|---|
protected AbstractPerson.Direction |
AbstractPerson.direction
The direction determines the way the character is facing.
|
Modifier and Type | Method and Description |
---|---|
AbstractPerson.Direction |
AbstractPerson.getDirection()
Getter for direction.
|
AbstractPerson.Direction |
AbstractPerson.Direction.getOpposite()
This method takes the current direction and gets the opposite direction
|
static AbstractPerson.Direction |
AbstractPerson.Direction.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AbstractPerson.Direction[] |
AbstractPerson.Direction.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractPerson.initialiseMove(AbstractPerson.Direction dir)
Sets up the move, initialising the start position and destination as well as the state of the person.
|
void |
Player.move(AbstractPerson.Direction dir)
This Moves the player to a new tile.
|
void |
NPC.move(AbstractPerson.Direction dir)
Allow the NPC to move around their room.
|
void |
AbstractPerson.setDirection(AbstractPerson.Direction dir)
Setter for the direction the person is facing.
|