Collision.h 526 B

1234567891011121314151617181920212223
  1. /*
  2. * 2D Game Engine
  3. * Collision.h:
  4. * Based on pikuma.com 2D game engine in C++ and Lua course
  5. * Copyright (c) 2021 986-Studio. All rights reserved.
  6. *
  7. * Created by Manoël Trapier on 16/02/2021.
  8. */
  9. #ifndef GAMEENGINE_SOURCE_INCLUDE_EVENTS_COLLISION_H
  10. #define GAMEENGINE_SOURCE_INCLUDE_EVENTS_COLLISION_H
  11. #include <Event.h>
  12. class CollisionEvent : public Event
  13. {
  14. public:
  15. Entity a;
  16. Entity b;
  17. CollisionEvent(Entity a, Entity b) : a(a), b(b) {};
  18. };
  19. #endif /* GAMEENGINE_SOURCE_INCLUDE_EVENTS_COLLISION_H */