#include <movement.h>
Inheritance diagram for Movement:

Public Member Functions | |
| virtual const bool | Move ()=0 |
| virtual void | Start ()=0 |
| void | SetPath (vector< Destination > newPath) |
| const OPENCITY_GRAPHIC_CODE & | GetGraphicCode () const |
| void | SetAngle (const Destination &rcD) |
| void | SetSlope (const Destination &rcA, const Destination &rcB) |
Public Attributes | |
| OC_FLOAT | _fCurrentW |
| current OC W, L, H coordinates | |
| OC_FLOAT | _fCurrentL |
| OC_FLOAT | _fCurrentH |
| OC_FLOAT | _fDeltaW |
| W, L, H variations for next destination. | |
| OC_FLOAT | _fDeltaL |
| OC_FLOAT | _fDeltaH |
| GLfloat | _fRY |
| The model's rotation angle. | |
| GLfloat | _fRX |
| GLfloat | _fRZ |
| The model's X and Z rotation slope. | |
| GLfloat | _fTX |
| GLfloat | _fTY |
| GLfloat | _fTZ |
| The rotation compensation translation vector. | |
Protected Attributes | |
| OPENCITY_DIRECTION | _eDir |
| Last vehicle direction. According to the graphic code convention, it's OC_DIR_S by default. | |
| OPENCITY_GRAPHIC_CODE | _eGC |
| Vehicle's graphic code. | |
| uint | uiCurrentTime |
| current number of times that we've moved so far into the current direction | |
| int | iCurrentSpeed |
| uint | uiNumberOfFrame |
| Number of frames counted till now. | |
| uint | uiFramePerUnit |
| Number of frames to count before going to next W/H coordinates. | |
| vector< Destination > | vdest |
| this contains a path that this movement follows | |
| uint | uiCurrentIndex |
| point to the current destination | |
| Destination | destCurrent |
| current copy of vdest[ uiCurrentIndex ] | |
Definition at line 36 of file movement.h.
|
|
Tell the object to move
Implemented in Vehicle. |
|
|
Set the rotation of the model according to the destination's direction. This method also sets the compensation translation vector in order to help the GraphicManager render method to make a "in place" rotation
Definition at line 60 of file movement.cpp. References Destination::_eDir, _eDir, _fRY, and _fTZ. |
|
||||||||||||
|
Set the slope of the model. It shoulds be called after a call to SetAngle()
Definition at line 99 of file movement.cpp. References _eDir, _fRZ, Destination::_iHMax, and Destination::_iHMin. |
|
|
Initialize the movement. It should be called before any call to the Move() method
Implemented in Vehicle. |
1.4.2