Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/powerups/src/world_entities/projectiles/bomb.h @ 6668

Last change on this file since 6668 was 6512, checked in by bensch, 19 years ago

orxonox/trunk: loadParams is now virtual.
ALL THE CLASSES HAVE TO CALL

SuperClass::loadParams(root);

isntead of:
static_cast<SuperClass*>(this)→loadParams(root);

which was quite stupid anyways

File size: 1010 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  virtual 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.