#include <Direction.h>
Public Types | |
UP = 1 | |
DOWN | |
LEFT | |
RIGHT | |
enum | Directions { UP = 1, DOWN, LEFT, RIGHT } |
Possible directions. More... | |
Public Member Functions | |
Direction (Directions direction=UP) | |
Default constructor. | |
Direction (int direction) | |
Constructor - creates direction from int (config reasons). | |
~Direction () | |
Destructor. | |
Directions | GetDirection () const |
Returns current direction. | |
void | SetDirection (Directions newDirection) |
Set current direction. | |
Private Attributes | |
Directions | currentDirection |
Current direction. |
Direction::Direction | ( | Directions | direction = UP |
) | [inline] |
Direction::Direction | ( | int | direction | ) | [inline, explicit] |
Direction::~Direction | ( | ) | [inline] |
Destructor.
Directions Direction::GetDirection | ( | ) | const [inline] |
Returns current direction.
void Direction::SetDirection | ( | Directions | newDirection | ) | [inline] |
Set current direction.
newDirection | New direction |
Directions Direction::currentDirection [private] |
Current direction.