Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/particles/box_emitter.h @ 6823

Last change on this file since 6823 was 6823, checked in by bensch, 18 years ago

orxonox/trunk: BoxEmitter

File size: 678 bytes
Line 
1/*!
2 * @file box_emitter.h
3 *  Definition of a BoxEmitter
4 */
5
6#ifndef _BOX_EMITTER_H
7#define _BOX_EMITTER_H
8
9#include "particle_emitter.h"
10
11//! A class to handle an Emitter.
12class BoxEmitter : public ParticleEmitter
13{
14  friend class ParticleSystem;
15public:
16  BoxEmitter(const Vector& size);
17  BoxEmitter(const TiXmlElement* root);
18  virtual ~BoxEmitter();
19
20  virtual void loadParams(const TiXmlElement* root);
21
22  void setSize(float x, float y, float z);
23  void setSize(const Vector& size) { this->setSize(size.x, size.y, size.z); };
24
25  virtual void emitParticles(unsigned int count) const;
26
27private:
28  void init();
29
30private:
31  Vector      size;
32};
33
34#endif /* _BOX_EMITTER_H */
Note: See TracBrowser for help on using the repository browser.