Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: bomb detonates

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