Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/world_entities/effects/explosion.h @ 10695

Last change on this file since 10695 was 10695, checked in by snellen, 17 years ago

changes on soundengine and mover by fabian landau

File size: 1.2 KB
RevLine 
[4890]1/*!
[7047]2 * @file explosion.h
3 * @brief a Explosion Projectile
[3708]4*/
5
[7047]6#ifndef _EXPLOSION_H
7#define _EXPLOSION_H
[3708]8
[7047]9#include "world_entity.h"
[10695]10#include "sound_source.h"
11#include "sound_buffer.h"
12#include "sound/resource_sound_buffer.h"
[3708]13
[6622]14class SpriteParticles;
[7103]15class BoxEmitter;
[5447]16class FastFactory;
[3708]17
[7047]18class Explosion : public WorldEntity
[3708]19{
[9869]20  ObjectListDeclaration(Explosion);
[5443]21  public:
[7103]22    static void explode (PNode* position, const Vector& size);
[10665]23    void explode (float x, float y, float z); /// Explode at the current position with size (x,y,z)
[10695]24    void setExplosionSound(const std::string& newExplosionSound){  this->explosionSoundBuffer = OrxSound::ResourceSoundBuffer(newExplosionSound);  }
[10665]25   
[7047]26    Explosion ();
27    virtual ~Explosion ();
[3708]28
[5443]29    virtual void activate();
30    virtual void deactivate();
[4890]31
[5443]32    virtual void tick (float time);
33
34  private:
[7047]35    static FastFactory*        fastFactory;
[5443]36
[7047]37    float                      lifeTime;
38    float                      lifeCycle;
[5447]39
[7103]40    static SpriteParticles*    explosionParticles;
[7125]41    BoxEmitter*                emitter;
[10695]42   
43    OrxSound::SoundSource      explosionSound;
44    OrxSound::SoundBuffer      explosionSoundBuffer;
[3708]45};
46
[7047]47#endif /* _EXPLOSION_H */
Note: See TracBrowser for help on using the repository browser.