| Line | |
|---|
| 1 | #ifndef __OrxonoxShip__ |
|---|
| 2 | #define __OrxonoxShip__ |
|---|
| 3 | |
|---|
| 4 | #include "Ogre.h" |
|---|
| 5 | |
|---|
| 6 | using namespace Ogre; |
|---|
| 7 | |
|---|
| 8 | class OrxonoxShip |
|---|
| 9 | { |
|---|
| 10 | public: |
|---|
| 11 | OrxonoxShip(SceneManager*, SceneNode*); |
|---|
| 12 | virtual ~OrxonoxShip(); |
|---|
| 13 | |
|---|
| 14 | virtual bool initialise(); |
|---|
| 15 | |
|---|
| 16 | void setThrust(const Real); |
|---|
| 17 | void setSideThrust(const Real); |
|---|
| 18 | void setYaw(const Radian); |
|---|
| 19 | void setPitch(const Radian); |
|---|
| 20 | void setRoll(const Radian); |
|---|
| 21 | |
|---|
| 22 | bool tick(unsigned long, float); |
|---|
| 23 | |
|---|
| 24 | protected: |
|---|
| 25 | SceneManager *mSceneMgr; |
|---|
| 26 | SceneNode *mRootNode; |
|---|
| 27 | Entity *mShip; |
|---|
| 28 | |
|---|
| 29 | Vector3 speed; |
|---|
| 30 | float thrust, sideThrust, baseThrust; |
|---|
| 31 | }; |
|---|
| 32 | |
|---|
| 33 | |
|---|
| 34 | #endif |
|---|
Note: See
TracBrowser
for help on using the repository browser.