45f0b31d57
Working: Rendering Resources Physics Player movement with mouse Shooting with mouse Tiles
23 lines
386 B
C++
Executable file
23 lines
386 B
C++
Executable file
/*
|
|
* Emitter.cpp
|
|
*
|
|
* Created on: 15.08.2012
|
|
* Author: Felix
|
|
*/
|
|
|
|
#include "Emitter.h"
|
|
|
|
Emitter::Emitter(Collection& collection) :
|
|
mCollection(collection) {
|
|
}
|
|
|
|
Emitter::~Emitter() {
|
|
}
|
|
|
|
/**
|
|
* Inserts a new particle into the system, using createParticle().
|
|
*/
|
|
void
|
|
Emitter::emit() {
|
|
mCollection.insert(createParticle(), Collection::LEVEL_PARTICLE);
|
|
}
|