diff options
Diffstat (limited to 'src/systems/pondering.h')
| -rw-r--r-- | src/systems/pondering.h | 32 |
1 files changed, 32 insertions, 0 deletions
| diff --git a/src/systems/pondering.h b/src/systems/pondering.h new file mode 100644 index 0000000..a16622b --- /dev/null +++ b/src/systems/pondering.h | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | #ifndef PONDERING_H_F2530E0E | ||
| 2 | #define PONDERING_H_F2530E0E | ||
| 3 | |||
| 4 | #include "system.h" | ||
| 5 | #include "components/mappable.h" | ||
| 6 | #include "components/ponderable.h" | ||
| 7 | #include "direction.h" | ||
| 8 | |||
| 9 | class PonderingSystem : public System { | ||
| 10 | public: | ||
| 11 | |||
| 12 | PonderingSystem(Game& game) : System(game) | ||
| 13 | { | ||
| 14 | } | ||
| 15 | |||
| 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 | |||
| 30 | }; | ||
| 31 | |||
| 32 | #endif /* end of include guard: PONDERING_H_F2530E0E */ | ||
