Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/world_entities/weapons/bomb.h @ 5845

Last change on this file since 5845 was 5828, checked in by bensch, 19 years ago

orxonox/trunk: bomb detonates

File size: 1002 bytes
Line 
1/*!
2 * @file bomb.h
3 * @brief description
4*/
5
6#ifndef _BOMB_H
7#define _BOMB_H
8
9#include "projectile.h"
10
11class FastFactory;
12class ParticleSystem;
13class ParticleEmitter;
14class Material;
15
16//! A Class to ...
17class Bomb : public Projectile
18{
19
20 public:
21  Bomb(const TiXmlElement* root = NULL);
22  virtual ~Bomb();
23
24  void loadParams(const TiXmlElement* root);
25  void init();
26
27//  virtual void postSpawn ();
28//  virtual void leftWorld ();
29
30
31  virtual void draw() const;
32  virtual void tick(float time);
33  virtual void collidesWith (WorldEntity* entity, const Vector& location);
34  virtual void activate();
35  virtual void deactivate();
36
37  void detonate(float size);
38
39 private:
40  static FastFactory*               fastFactory;
41  static ParticleSystem*            trailParticles;
42  static ParticleSystem*            explosionParticles;
43
44  ParticleEmitter*                  emitter;
45  Model*                            detonationSphere;
46  Material*                         detonationMaterial;
47};
48
49#endif /* BOMB */
Note: See TracBrowser for help on using the repository browser.