summaryrefslogtreecommitdiff
path: root/src/main/events.cc
blob: 6a9805f91bf74f7e2a56311a45d2b50b9a46b84a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
 * events.cc
 *
 *  Created on: May 23, 2011
 *      Author: jakob
 */

#include "events.h"
#include <list>

namespace vhc {

Event::Event(void *const sender): sender(sender) {}
Event::~Event() {}
void *const Event::getSender() const {return sender;}

ParticleEvent::ParticleEvent(void *const sender, Particle *const particle): Event(sender), particle(particle) {};
ParticleEvent::~ParticleEvent() {};
Particle *const ParticleEvent::getParticle() const {return particle;}

ParticleAddedEvent::ParticleAddedEvent(void *const sender, Particle *const particle): ParticleEvent(sender, particle) {};
ParticleAddedEvent::~ParticleAddedEvent() {};

ParticleRemovedEvent::ParticleRemovedEvent(void *const sender, Particle *const particle): ParticleEvent(sender, particle) {};
ParticleRemovedEvent::~ParticleRemovedEvent() {};

}