diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-19 16:15:47 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-19 16:15:47 -0400 |
commit | 4b4125e234cb727c70822e0a1fce0688c357741e (patch) | |
tree | 5b446ebe6f0454304d4202368bd18fba3f629d3d /src/entity.h | |
parent | 281bdf956a646fd8c9944e9a44f867c984792216 (diff) | |
download | therapy-4b4125e234cb727c70822e0a1fce0688c357741e.tar.gz therapy-4b4125e234cb727c70822e0a1fce0688c357741e.tar.bz2 therapy-4b4125e234cb727c70822e0a1fce0688c357741e.zip |
Implemented a simple AI
Diffstat (limited to 'src/entity.h')
-rw-r--r-- | src/entity.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/entity.h b/src/entity.h index d09dbe5..7f09f2d 100644 --- a/src/entity.h +++ b/src/entity.h | |||
@@ -15,8 +15,8 @@ class Message { | |||
15 | walkLeft, | 15 | walkLeft, |
16 | walkRight, | 16 | walkRight, |
17 | stopWalking, | 17 | stopWalking, |
18 | stopMovingHorizontally, | 18 | setHorizontalVelocity, |
19 | stopMovingVertically, | 19 | setVerticalVelocity, |
20 | collision, | 20 | collision, |
21 | jump, | 21 | jump, |
22 | stopJump, | 22 | stopJump, |
@@ -33,6 +33,7 @@ class Message { | |||
33 | Type type; | 33 | Type type; |
34 | Entity* collisionEntity; | 34 | Entity* collisionEntity; |
35 | int dropAxis; | 35 | int dropAxis; |
36 | double velocity; | ||
36 | }; | 37 | }; |
37 | 38 | ||
38 | class Entity { | 39 | class Entity { |