diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-02-11 12:34:52 -0500 | 
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-02-11 12:34:52 -0500 | 
| commit | 77be863f4f15d2481a64e4e8dadb4060a6e4e590 (patch) | |
| tree | ca571702d2148a75b5b847e77d26270257f54ebc /src/systems/pondering.h | |
| parent | 1400ade977e13e3b535d3c2fddb6e15de3c9b5a5 (diff) | |
| download | therapy-77be863f4f15d2481a64e4e8dadb4060a6e4e590.tar.gz therapy-77be863f4f15d2481a64e4e8dadb4060a6e4e590.tar.bz2 therapy-77be863f4f15d2481a64e4e8dadb4060a6e4e590.zip  | |
Implemented map rendering and basic collision
Only wall and platform collision currently works, and map edges are not currently implemented.
Diffstat (limited to 'src/systems/pondering.h')
| -rw-r--r-- | src/systems/pondering.h | 16 | 
1 files changed, 16 insertions, 0 deletions
| 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 @@ | |||
| 2 | #define PONDERING_H_F2530E0E | 2 | #define PONDERING_H_F2530E0E | 
| 3 | 3 | ||
| 4 | #include "system.h" | 4 | #include "system.h" | 
| 5 | #include "components/mappable.h" | ||
| 6 | #include "components/ponderable.h" | ||
| 7 | #include "direction.h" | ||
| 5 | 8 | ||
| 6 | class PonderingSystem : public System { | 9 | class PonderingSystem : public System { | 
| 7 | public: | 10 | public: | 
| @@ -11,6 +14,19 @@ public: | |||
| 11 | } | 14 | } | 
| 12 | 15 | ||
| 13 | void tick(double dt); | 16 | void tick(double dt); | 
| 17 | |||
| 18 | void initializeBody(id_type entity, PonderableComponent::Type type); | ||
| 19 | |||
| 20 | private: | ||
| 21 | |||
| 22 | void processCollision( | ||
| 23 | id_type entity, | ||
| 24 | Direction dir, | ||
| 25 | double& newX, | ||
| 26 | double& newY, | ||
| 27 | int axis, | ||
| 28 | MappableComponent::Boundary::Type type); | ||
| 29 | |||
| 14 | }; | 30 | }; | 
| 15 | 31 | ||
| 16 | #endif /* end of include guard: PONDERING_H_F2530E0E */ | 32 | #endif /* end of include guard: PONDERING_H_F2530E0E */ | 
