Direction Class Reference

Object's direction. More...

#include <Direction.h>

List of all members.

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.


Detailed Description

Object's direction.


Member Enumeration Documentation

enum Direction::Directions

Possible directions.

Enumerator:
UP 
DOWN 
LEFT 
RIGHT 


Constructor & Destructor Documentation

Direction::Direction ( Directions  direction = UP  )  [inline]

Default constructor.

Parameters:
direction Direction

Direction::Direction ( int  direction  )  [inline, explicit]

Constructor - creates direction from int (config reasons).

Parameters:
direction Direction

Direction::~Direction (  )  [inline]

Destructor.


Member Function Documentation

Directions Direction::GetDirection (  )  const [inline]

Returns current direction.

void Direction::SetDirection ( Directions  newDirection  )  [inline]

Set current direction.

Parameters:
newDirection New direction


Member Data Documentation

Directions Direction::currentDirection [private]

Current direction.


The documentation for this class was generated from the following file:
Generated on Sun Apr 29 11:46:11 2007 for IPP/ICP2007 by  doxygen 1.4.7