Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/world_entities/projectiles/bomb.h @ 10673

Last change on this file since 10673 was 9869, checked in by bensch, 18 years ago

orxonox/trunk: merged the new_class_id branche back to the trunk.
merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/new_class_id trunk -r9683:HEAD
no conflicts… puh..

File size: 1.0 KB
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 SpriteParticles;
13class ParticleEmitter;
14class Material;
15
16//! A Class to ...
17class Bomb : public Projectile
18{
19  ObjectListDeclaration(Bomb);
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 SpriteParticles*           trailParticles;
42  static SpriteParticles*           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.