Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 8630 was 6622, checked in by bensch, 19 years ago

orxonox/trunk: Material can now be copied
ParticleSprite used for all Projectiles

File size: 1011 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;
[6622]12class SpriteParticles;
[5744]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
[6512]24  virtual void loadParams(const TiXmlElement* root);
[5590]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;
[6622]41  static SpriteParticles*           trailParticles;
42  static SpriteParticles*           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.