From 77be863f4f15d2481a64e4e8dadb4060a6e4e590 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 11 Feb 2018 12:34:52 -0500 Subject: Implemented map rendering and basic collision Only wall and platform collision currently works, and map edges are not currently implemented. --- src/systems/pondering.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/systems/pondering.h') diff --git a/src/systems/pondering.h b/src/systems/pondering.h index 44e7600..a16622b 100644 --- a/src/systems/pondering.h +++ b/src/systems/pondering.h @@ -2,6 +2,9 @@ #define PONDERING_H_F2530E0E #include "system.h" +#include "components/mappable.h" +#include "components/ponderable.h" +#include "direction.h" class PonderingSystem : public System { public: @@ -11,6 +14,19 @@ public: } void tick(double dt); + + void initializeBody(id_type entity, PonderableComponent::Type type); + +private: + + void processCollision( + id_type entity, + Direction dir, + double& newX, + double& newY, + int axis, + MappableComponent::Boundary::Type type); + }; #endif /* end of include guard: PONDERING_H_F2530E0E */ -- cgit 1.4.1