Rev | Line | |
---|
[126] | 1 | #ifndef __OrxonoxShip__ |
---|
| 2 | #define __OrxonoxShip__ |
---|
| 3 | |
---|
| 4 | #include "Ogre.h" |
---|
| 5 | |
---|
| 6 | using namespace Ogre; |
---|
| 7 | |
---|
[127] | 8 | class OrxonoxShip |
---|
[126] | 9 | { |
---|
| 10 | public: |
---|
[127] | 11 | OrxonoxShip(SceneManager*, SceneNode*); |
---|
[126] | 12 | virtual ~OrxonoxShip(); |
---|
| 13 | |
---|
| 14 | virtual bool initialise(); |
---|
| 15 | |
---|
[128] | 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 | |
---|
[126] | 24 | protected: |
---|
[127] | 25 | SceneManager *mSceneMgr; |
---|
| 26 | SceneNode *mRootNode; |
---|
| 27 | Entity *mShip; |
---|
[128] | 28 | |
---|
| 29 | Vector3 speed; |
---|
| 30 | float thrust, sideThrust, baseThrust; |
---|
[126] | 31 | }; |
---|
| 32 | |
---|
| 33 | |
---|
| 34 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.