Last change
on this file since 682 was
673,
checked in by rgrieder, 17 years ago
|
- deleted obsolete classes: BaseEntity, Entity, Light and SceneNode (please complain if not agreed)
- improved include guard naming consistency
|
File size:
636 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 | virtual ~Projectile(); |
---|
16 | void destroyObject(); |
---|
17 | virtual void tick(float dt); |
---|
18 | |
---|
19 | private: |
---|
20 | SpaceShip* owner_; |
---|
21 | BillboardSet billboard_; |
---|
22 | float speed_; |
---|
23 | float lifetime_; |
---|
24 | Timer<Projectile> destroyTimer_; |
---|
25 | }; |
---|
26 | } |
---|
27 | |
---|
28 | #endif /* _Projectile_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.