45f0b31d57
Working: Rendering Resources Physics Player movement with mouse Shooting with mouse Tiles
32 lines
625 B
C++
Executable file
32 lines
625 B
C++
Executable file
/*
|
|
* Emitter.h
|
|
*
|
|
* Created on: 15.08.2012
|
|
* Author: Felix
|
|
*/
|
|
|
|
#ifndef DG_EMITTER_H_
|
|
#define DG_EMITTER_H_
|
|
|
|
#include "../abstract/Physical.h"
|
|
#include "../util/Collection.h"
|
|
#include "Particle.h"
|
|
|
|
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_ */
|