From 8996810b1356c2224d4f34423fd4211de20da238 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 19 Feb 2019 16:22:39 -0500 Subject: Restrictions for moving into a space a block is moving out of An entity can only move into a space a block is moving out of if the time it would take the entity to move into the tile is at least the time remaining for the other block to finish moving out of the space. Also, crates can push each other now. --- src/enums.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/enums.h (limited to 'src/enums.h') diff --git a/src/enums.h b/src/enums.h new file mode 100644 index 0000000..9821da1 --- /dev/null +++ b/src/enums.h @@ -0,0 +1,19 @@ +#ifndef ENUMS_H_CD0A75E4 +#define ENUMS_H_CD0A75E4 + +enum class ColliderType { + player, + train, + crate, + other +}; + +enum class Direction { + none, + left, + right, + up, + down +}; + +#endif /* end of include guard: ENUMS_H_CD0A75E4 */ -- cgit 1.4.1