Last change
on this file since 680 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
|
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(); |
---|
[643] | 16 | void destroyObject(); |
---|
[646] | 17 | virtual void tick(float dt); |
---|
[643] | 18 | |
---|
| 19 | private: |
---|
| 20 | SpaceShip* owner_; |
---|
| 21 | BillboardSet billboard_; |
---|
| 22 | float speed_; |
---|
| 23 | float lifetime_; |
---|
| 24 | Timer<Projectile> destroyTimer_; |
---|
| 25 | }; |
---|
| 26 | } |
---|
| 27 | |
---|
[673] | 28 | #endif /* _Projectile_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.