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/systems/automating.cpp | |
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/systems/automating.cpp')
-rw-r--r-- | src/systems/automating.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/systems/automating.cpp b/src/systems/automating.cpp index 0d85957..61b97d9 100644 --- a/src/systems/automating.cpp +++ b/src/systems/automating.cpp | |||
@@ -54,8 +54,7 @@ void AutomatingSystem::tick(double dt) | |||
54 | auto& ponderable = game_.getEntityManager(). | 54 | auto& ponderable = game_.getEntityManager(). |
55 | getComponent<PonderableComponent>(entity); | 55 | getComponent<PonderableComponent>(entity); |
56 | 56 | ||
57 | ponderable.velX = curAction.speedX; | 57 | ponderable.vel = curAction.speed; |
58 | ponderable.velY = curAction.speedY; | ||
59 | 58 | ||
60 | automatable.remaining -= dt; | 59 | automatable.remaining -= dt; |
61 | } | 60 | } |