diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-05-08 21:09:36 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-05-09 17:59:13 -0400 |
commit | 5c82f052c26303318e81ddd76475c1d188cc74f4 (patch) | |
tree | 3204ef94f2861224a380aa566728c02b4acd1fd9 /src/components/playable.h | |
parent | 96e6f3231aed9919d660a06944f1d96dc8241f8e (diff) | |
download | therapy-5c82f052c26303318e81ddd76475c1d188cc74f4.tar.gz therapy-5c82f052c26303318e81ddd76475c1d188cc74f4.tar.bz2 therapy-5c82f052c26303318e81ddd76475c1d188cc74f4.zip |
Simplified positions/sizes with vectors
Positions and sizes are now stored as vectors (of doubles and ints, respectively). This allows for at least minor code simplification in many places, and cleans up the CollisionParams code in PonderingSystem quite a bit.
Diffstat (limited to 'src/components/playable.h')
-rw-r--r-- | src/components/playable.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/playable.h b/src/components/playable.h index 94d4326..b8af0f2 100644 --- a/src/components/playable.h +++ b/src/components/playable.h | |||
@@ -3,6 +3,7 @@ | |||
3 | 3 | ||
4 | #include "component.h" | 4 | #include "component.h" |
5 | #include "entity_manager.h" | 5 | #include "entity_manager.h" |
6 | #include "vector.h" | ||
6 | 7 | ||
7 | class PlayableComponent : public Component { | 8 | class PlayableComponent : public Component { |
8 | public: | 9 | public: |
@@ -24,8 +25,7 @@ public: | |||
24 | * @managed_by PlayingSystem | 25 | * @managed_by PlayingSystem |
25 | */ | 26 | */ |
26 | size_t checkpointMapId; | 27 | size_t checkpointMapId; |
27 | double checkpointX; | 28 | vec2d checkpointPos; |
28 | double checkpointY; | ||
29 | 29 | ||
30 | }; | 30 | }; |
31 | 31 | ||