Zone
Keeps track of the Entity direction
Constructor Summary
Public Constructor | ||
public |
constructor(game: Game) Default constructor |
Member Summary
Public Members | ||
public |
Instance of the game camera |
|
public |
direction: Orientation The direction |
|
public |
Instance of the game |
|
public |
Instance of the game input |
|
public |
Instance of the game renderer |
Method Summary
Public Methods | ||
public |
getDirection(): Orientation Return the current direction |
|
public |
reset() Reset the direction |
|
public |
setDown() Set the direction to down |
|
public |
setLeft() Set the direction to right |
|
public |
setRight() Set the direction to right |
|
public |
setUp() Set the direction to up |
Public Constructors
Public Members
Public Methods
public getDirection(): Orientation source
Return the current direction
Return:
Orientation | the direction for the zone |