#include <gameobj.h>
Inheritance diagram for CGameObj:
Public Member Functions | |
CGameObj (int aType) | |
Constructor. | |
virtual | ~CGameObj () |
Destructor. | |
float | xPos () |
Getter for x-coordinates of the object. | |
float | yPos () |
Getter for y-coordinates of the object. | |
float | radius () |
Getter for the radius. | |
float | direction () |
Getter for the orientation of the object. | |
int | type () |
Getter for the type of the object. | |
float | animationTimer () |
Getter for animation timer. | |
Protected Attributes | |
TPosition | mPos |
Coordinates of the object. | |
float | mRadius |
Radius of the game object. | |
float | mDirection |
Orientation of the game object. | |
int | mType |
Type of the game object. | |
float | mAnimationTimer |
Timer for animations. |
Common attributes for locating and drawing objects.
|
Constructor.
|
|
Getter for animation timer. May be used by CGraphicsEngine. |
|
Getter for the radius. Used with drawing and collision detection. |
|
Getter for the type of the object.
|
|
Timer for animations. Animation is played during 1 time units. |
|
Orientation of the game object. With moving objects, orientation is used as a moving direction. |
|
Type of the game object.
|