source:
code/branches/main_reto/include/OrxonoxShip.h
@
135
Last change on this file since 135 was 133, checked in by rgrieder, 17 years ago | |
---|---|
File size: 677 bytes |
Rev | Line | |
---|---|---|
[126] | 1 | #ifndef __OrxonoxShip__ |
2 | #define __OrxonoxShip__ | |
3 | ||
4 | #include "Ogre.h" | |
[133] | 5 | #include "Bullet.h" |
[126] | 6 | |
7 | using namespace Ogre; | |
8 | ||
[127] | 9 | class OrxonoxShip |
[126] | 10 | { |
11 | public: | |
[130] | 12 | Vector3 speed; |
13 | float thrust, sideThrust, baseThrust; | |
[133] | 14 | Vector3 bulletSpeed; |
[130] | 15 | |
[127] | 16 | OrxonoxShip(SceneManager*, SceneNode*); |
[126] | 17 | virtual ~OrxonoxShip(); |
18 | ||
19 | virtual bool initialise(); | |
20 | ||
[128] | 21 | void setThrust(const Real); |
22 | void setSideThrust(const Real); | |
23 | void setYaw(const Radian); | |
24 | void setPitch(const Radian); | |
25 | void setRoll(const Radian); | |
26 | ||
[130] | 27 | Real getThrust(); |
28 | ||
[133] | 29 | Bullet* fire(); |
30 | ||
[128] | 31 | bool tick(unsigned long, float); |
32 | ||
[126] | 33 | protected: |
[127] | 34 | SceneManager *mSceneMgr; |
35 | SceneNode *mRootNode; | |
36 | Entity *mShip; | |
[128] | 37 | |
[133] | 38 | int n; |
39 | ||
[126] | 40 | }; |
41 | ||
42 | ||
43 | #endif |
Note: See TracBrowser
for help on using the repository browser.