public static class Room.Transition
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
Vector2Int |
from
This is the coordinates that starts the transition
|
AbstractPerson.Direction |
newDirection
The direction the player should face when they enter the room
|
private Room |
newRoom
The new room to transition to
|
Vector2Int |
newTileCoordinates
The entry point to the room in terms of tiles
|
Constructor and Description |
---|
Transition()
Constructor
|
Modifier and Type | Method and Description |
---|---|
Room |
getNewRoom()
getter for the value of newRoom
newRoom |
Room.Transition |
setFrom(int oldTiledCoordinateX,
int oldTiledCoordinateY)
This method takes the parameters and sets the values of the relevant properties
|
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
|
public Vector2Int from
public AbstractPerson.Direction newDirection
public Vector2Int newTileCoordinates
private Room newRoom
public Room.Transition setTo(Room room, int newTileCoordinateX, int newTileCoordinateY, AbstractPerson.Direction newDirection)
room
- - The room that the transition takes you tonewTileCoordinateX
- - The x coordinate that the transition takes you tonewTileCoordinateY
- - The y coordinates that the transition takes you tonewDirection
- - The direction that you will face after the transitionpublic Room.Transition setFrom(int oldTiledCoordinateX, int oldTiledCoordinateY)
oldTiledCoordinateX
- - The x coordinate that the transition starts fromoldTiledCoordinateY
- - The y coordinate that the transition starts from