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.cpp

24 lines
386 B
C++
Raw Normal View History

/*
* 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);
}