ungroup/ungroup_game

View on GitHub
src/common/events/CollisionEvent.hpp

Summary

Maintainability
Test Coverage
#ifndef CollisionEvent_hpp
#define CollisionEvent_hpp

#include "../physics/PhysicsDef.hpp"
#include "Event.hpp"

class CollisionEvent : public Event {
  public:
    explicit CollisionEvent(Collision collision) :
        Event(EVENT_TYPE_COLLISION), m_collision(collision) {
    }

    const Collision getCollision() const {
        return m_collision;
    };

  private:
    Collision m_collision;
};

#endif /* CollisionEvent_hpp */