Last change
on this file since 667 was
646,
checked in by landauf, 17 years ago
|
- added very bad collision detection (presentation hack )
- added explosions
- fixed bug in ParticleInterface (it tried to delete SceneManager)
AND:
- fixed one of the most amazing bugs ever! (the game crashed when I deleted an object through a timer-function. because the timer-functions is called by an iterator, the iterator indirectly delted its object. by overloading the (it++) operator, i was able to solve this problem)
|
File size:
614 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 |
---|
Note: See
TracBrowser
for help on using the repository browser.