|
Last change
on this file since 1006 was
969,
checked in by rgrieder, 18 years ago
|
- removed some unnecessary forward declarations
- renamed destroy() —> destroySingleton()
|
|
File size:
716 bytes
|
| Rev | Line | |
|---|
| [643] | 1 | #ifndef _Projectile_H__ |
|---|
| 2 | #define _Projectile_H__ |
|---|
| 3 | |
|---|
| [708] | 4 | #include "../OrxonoxPrereqs.h" |
|---|
| 5 | |
|---|
| [643] | 6 | #include "WorldEntity.h" |
|---|
| [768] | 7 | #include "../tools/BillboardSet.h" |
|---|
| 8 | #include "../tools/Timer.h" |
|---|
| [643] | 9 | |
|---|
| 10 | namespace orxonox |
|---|
| 11 | { |
|---|
| [729] | 12 | class _OrxonoxExport Projectile : public WorldEntity |
|---|
| [643] | 13 | { |
|---|
| 14 | public: |
|---|
| 15 | Projectile(SpaceShip* owner = 0); |
|---|
| [646] | 16 | virtual ~Projectile(); |
|---|
| [697] | 17 | void setConfigValues(); |
|---|
| [643] | 18 | void destroyObject(); |
|---|
| [646] | 19 | virtual void tick(float dt); |
|---|
| [643] | 20 | |
|---|
| 21 | private: |
|---|
| 22 | SpaceShip* owner_; |
|---|
| 23 | BillboardSet billboard_; |
|---|
| 24 | float speed_; |
|---|
| 25 | float lifetime_; |
|---|
| 26 | Timer<Projectile> destroyTimer_; |
|---|
| 27 | }; |
|---|
| 28 | } |
|---|
| 29 | |
|---|
| [673] | 30 | #endif /* _Projectile_H__ */ |
|---|
Note: See
TracBrowser
for help on using the repository browser.