This repository has been archived on 2019-12-07. You can view files and clone it, but cannot push or open issues or pull requests.
dungeon-gunner/source/particle/Emitter.h

35 lines
579 B
C
Raw Normal View History

/*
* Emitter.h
*
* Created on: 15.08.2012
* Author: Felix
*/
#ifndef DG_EMITTER_H_
#define DG_EMITTER_H_
2013-03-29 17:34:51 +00:00
#include <memory>
2012-12-22 13:56:17 +00:00
class World;
class Particle;
2013-03-29 17:34:51 +00:00
class Sprite;
class Emitter {
// Public functions.
public:
2013-03-29 17:34:51 +00:00
Emitter(World& world);
virtual ~Emitter();
// Protected functions.
protected:
void emit();
/// Creates a particle. Allows to use a user-defined particle class and custom settings.
2013-03-29 17:34:51 +00:00
virtual std::shared_ptr<Sprite> createParticle() = 0;
// Private variables.
private:
2013-03-29 17:34:51 +00:00
World& mWorld;
};
#endif /* DG_EMITTER_H_ */