Last change
on this file since 698 was
697,
checked in by landauf, 17 years ago
|
put all SetConfigValue macro calls into the setConfigValues function (this is needed to allow changes of the config values at runtime)
|
File size:
673 bytes
|
Rev | Line | |
---|
[643] | 1 | #ifndef _Projectile_H__ |
---|
| 2 | #define _Projectile_H__ |
---|
| 3 | |
---|
| 4 | #include "WorldEntity.h" |
---|
| 5 | #include "BillboardSet.h" |
---|
| 6 | #include "SpaceShip.h" |
---|
| 7 | #include "Timer.h" |
---|
| 8 | |
---|
| 9 | namespace orxonox |
---|
| 10 | { |
---|
| 11 | class Projectile : public WorldEntity |
---|
| 12 | { |
---|
| 13 | public: |
---|
| 14 | Projectile(SpaceShip* owner = 0); |
---|
[646] | 15 | virtual ~Projectile(); |
---|
[697] | 16 | void setConfigValues(); |
---|
[643] | 17 | void destroyObject(); |
---|
[646] | 18 | virtual void tick(float dt); |
---|
[643] | 19 | |
---|
| 20 | private: |
---|
| 21 | SpaceShip* owner_; |
---|
| 22 | BillboardSet billboard_; |
---|
| 23 | float speed_; |
---|
| 24 | float lifetime_; |
---|
| 25 | Timer<Projectile> destroyTimer_; |
---|
| 26 | }; |
---|
| 27 | } |
---|
| 28 | |
---|
[673] | 29 | #endif /* _Projectile_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.