Last change
on this file since 737 was
729,
checked in by rgrieder, 17 years ago
|
- fixed multiple template instantiation problem under windows
- removed some warnings by introducing explicit casts
|
File size:
784 bytes
|
Line | |
---|
1 | #ifndef _Projectile_H__ |
---|
2 | #define _Projectile_H__ |
---|
3 | |
---|
4 | #include "../OrxonoxPrereqs.h" |
---|
5 | |
---|
6 | #include "WorldEntity.h" |
---|
7 | #include "BillboardSet.h" |
---|
8 | #include "Timer.h" |
---|
9 | |
---|
10 | namespace orxonox |
---|
11 | { |
---|
12 | class SpaceShip; // Forward declaration |
---|
13 | |
---|
14 | class _OrxonoxExport Projectile : public WorldEntity |
---|
15 | { |
---|
16 | public: |
---|
17 | Projectile(SpaceShip* owner = 0); |
---|
18 | virtual ~Projectile(); |
---|
19 | void setConfigValues(); |
---|
20 | void destroyObject(); |
---|
21 | virtual void tick(float dt); |
---|
22 | |
---|
23 | private: |
---|
24 | SpaceShip* owner_; |
---|
25 | BillboardSet billboard_; |
---|
26 | float speed_; |
---|
27 | float lifetime_; |
---|
28 | Timer<Projectile> destroyTimer_; |
---|
29 | }; |
---|
30 | ExportClass(Projectile, Orxonox); |
---|
31 | } |
---|
32 | |
---|
33 | #endif /* _Projectile_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.