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

37 lines
672 B
C
Raw Normal View History

/*
* Emitter.h
*
* Created on: 15.08.2012
* Author: Felix
*/
#ifndef DG_EMITTER_H_
#define DG_EMITTER_H_
#include "../abstract/Body.h"
#include "../util/Collection.h"
#include "Particle.h"
class Body;
class Collection;
class Particle;
class Emitter {
// Public functions.
public:
Emitter(Collection& collection);
virtual ~Emitter();
// Protected functions.
protected:
void emit();
/// Creates a particle. Allows to use a user-defined particle class and custom settings.
virtual std::shared_ptr<Particle> createParticle() = 0;
// Private variables.
private:
Collection& mCollection;
};
#endif /* DG_EMITTER_H_ */