23 lines
353 B
C++
Executable file
23 lines
353 B
C++
Executable file
/*
|
|
* Emitter.cpp
|
|
*
|
|
* Created on: 15.08.2012
|
|
* Author: Felix
|
|
*/
|
|
|
|
#include "Emitter.h"
|
|
|
|
Emitter::Emitter(World& collection) :
|
|
mCollection(collection) {
|
|
}
|
|
|
|
Emitter::~Emitter() {
|
|
}
|
|
|
|
/**
|
|
* Inserts a new particle into the system, using createParticle().
|
|
*/
|
|
void
|
|
Emitter::emit() {
|
|
mCollection.insert(createParticle());
|
|
}
|