Last change
on this file since 644 was
643,
checked in by landauf, 17 years ago
|
added a simple firing mode to SpaceShip
|
File size:
564 bytes
|
Line | |
---|
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); |
---|
15 | ~Projectile(); |
---|
16 | void destroyObject(); |
---|
17 | |
---|
18 | private: |
---|
19 | SpaceShip* owner_; |
---|
20 | BillboardSet billboard_; |
---|
21 | float speed_; |
---|
22 | float lifetime_; |
---|
23 | Timer<Projectile> destroyTimer_; |
---|
24 | }; |
---|
25 | } |
---|
26 | |
---|
27 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.