Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/cleanup/src/world_entities/tools/sound_entity.h @ 10591

Last change on this file since 10591 was 10591, checked in by bensch, 17 years ago

moved the we's to a more senseable location.

File size: 1.3 KB
Line 
1/*!
2 * @file lightning_bolt.h
3 * @brief a SoundEntity Projectile
4 *  Der Effekt soll folgenderma�n funktionieren:
5 * -> Ein Partikel mit einer Blitz-Textur soll sehr schnell erscheinen,
6 * -> w�rend er an Intensit� zunimmt soll die Beleuchtung der gerenderten Szene entsprechend zunehmen.
7 * -> Je mehr Blitze zum gleichen Zeitpunkt sichtbar sind, desto heller soll die Beleuchtung werden, das hei� die Helligkeitszunahme pro Blitz soll Additiv sein.
8 * -> Ein Partikel soll ebenfalls sehr schnell wieder verblassen, dabei soll die Beleuchtung entsprechend der vorhergehenden Zunahme wieder abnehmen (Additiv)
9 */
10
11#ifndef _SOUND_ENTITY_H
12#define _SOUND_ENTITY_H
13
14#include "world_entity.h"
15
16#include "sound_buffer.h"
17#include "sound_source.h"
18
19class Material;
20
21class SoundEntity : public WorldEntity
22{
23  ObjectListDeclaration(SoundEntity);
24  public:
25    SoundEntity(const TiXmlElement* root = NULL);
26    virtual ~SoundEntity ();
27
28    virtual void loadParams(const TiXmlElement* root);
29
30    void setSoundFile(const std::string& fileName);
31
32    virtual void activate();
33    virtual void deactivate();
34
35    virtual void tick(float time);
36
37  private:
38
39    bool                     bInit;
40    OrxSound::SoundSource    soundSource;
41    OrxSound::SoundBuffer    soundBuffer;
42};
43
44#endif /* _SOUND_ENTITY_H */
Note: See TracBrowser for help on using the repository browser.