Changeset 8255 in orxonox.OLD for trunk/src/world_entities/effects/billboard.h
- Timestamp:
- Jun 8, 2006, 3:44:12 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/effects/billboard.h
r7810 r8255 1 1 /*! 2 * @file lightning_bolt.h 3 * @brief a LightningBolt Projectile 2 * @file billboard.h 4 3 */ 5 4 6 #ifndef _ LIGHTNING_BOLT_H7 #define _ LIGHTNING_BOLT_H5 #ifndef _BILLBOARD_H 6 #define _BILLBOARD_H 8 7 9 8 #include "world_entity.h" 10 9 11 #include "sound_buffer.h" 12 #include "sound_source.h" 10 class Material; 11 class TiXmlElement; 13 12 14 class Material; 15 16 class LightningBolt : public WorldEntity 13 class Billboard : public WorldEntity 17 14 { 18 15 public: 19 LightningBolt(const TiXmlElement* root = NULL);20 virtual ~ LightningBolt();16 Billboard(const TiXmlElement* root = NULL); 17 virtual ~Billboard(); 21 18 22 v irtual void activate();23 v irtual void deactivate();19 void init(); 20 void loadParams(const TiXmlElement* root); 24 21 25 virtual void tick(float time); 22 void setSize(float sizeX, float sizeY); 23 void setTexture(const std::string& textureFile); 24 25 virtual void tick(float dt); 26 26 virtual void draw() const; 27 27 28 28 private: 29 float flashFrequency; //!< frequency to activate itself 30 float flashRisingTime; //!< time to rise 31 float flashConstTime; //!< time to be drawn 32 float flashFallTime; //!< time to fall 33 34 float time; //!< time 35 36 bool bRender; 37 bool bNewCoordinate; 38 Material* material; 39 Vector offset; 40 float width; 41 float height; 42 43 float seedX; 44 float seedZ; 45 float seedTime; 46 47 SoundSource soundSource; 48 SoundBuffer* thunderBuffer; 29 Material* material; 30 float sizeX; 31 float sizeY; 49 32 }; 50 33 51 #endif /* _ LIGHTNING_BOLT_H */34 #endif /* _BILLBOARD_H */
Note: See TracChangeset
for help on using the changeset viewer.