1 #ifndef DAMAGEDEALER_H_
2 #define DAMAGEDEALER_H_
4 #include <msp/game/eventobserver.h>
5 #include <msp/game/handle.h>
6 #include <msp/game/system.h>
12 class DamageDealer: public Msp::Game::System
15 struct DamagingCollision
17 Msp::Game::Handle<Hittable> entity1;
18 Msp::Game::Handle<Hittable> entity2;
21 Msp::Game::EventObserver observer;
22 std::vector<DamagingCollision> collisions;
25 DamageDealer(Msp::Game::Stage &);
27 void tick(Msp::Time::TimeDelta) override;
30 void collision(const Events::Collision &);