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.
2012-09-09 20:50:15 +00:00
|
|
|
/*
|
|
|
|
* 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() {
|
2012-09-16 18:33:00 +00:00
|
|
|
mCollection.insert(createParticle());
|
2012-09-09 20:50:15 +00:00
|
|
|
}
|