2016-10-02 21:49:40 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "state/explosion.hpp"
|
|
|
|
#include "state/state_update_event.hpp"
|
|
|
|
|
|
|
|
namespace game {
|
|
|
|
class ExplosionEvent : public StateUpdateEvent {
|
|
|
|
public:
|
|
|
|
ExplosionEvent(StateUpdateEvent::LifeCycle lifeCycle, Explosion *explosion)
|
|
|
|
: StateUpdateEvent(lifeCycle, StateUpdateEvent::EventType::Explosion)
|
|
|
|
, explosion(explosion)
|
|
|
|
|
|
|
|
{
|
|
|
|
std::string typeStr = StateUpdateEvent::lifeCycleToString(lifeCycle);
|
|
|
|
std::cout<<"created explosion event for id " << explosion->id << " of type " << typeStr << std::endl;
|
|
|
|
}
|
|
|
|
|
|
|
|
public:
|
2016-10-02 22:23:21 +00:00
|
|
|
const Explosion *explosion;
|
2016-10-02 21:49:40 +00:00
|
|
|
};
|
|
|
|
}
|