summary refs log tree commit diff stats
path: root/src/enums.h
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2019-02-19 16:22:39 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2019-02-19 16:22:39 -0500
commit8996810b1356c2224d4f34423fd4211de20da238 (patch)
tree9beab3f77e6af1c769e14cff4234ad649cf857f2 /src/enums.h
parent7514077a07076403f29050e57fa87f24fc614122 (diff)
downloaddispatcher-8996810b1356c2224d4f34423fd4211de20da238.tar.gz
dispatcher-8996810b1356c2224d4f34423fd4211de20da238.tar.bz2
dispatcher-8996810b1356c2224d4f34423fd4211de20da238.zip
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.
Diffstat (limited to 'src/enums.h')
-rw-r--r--src/enums.h19
1 files changed, 19 insertions, 0 deletions
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 @@
1#ifndef ENUMS_H_CD0A75E4
2#define ENUMS_H_CD0A75E4
3
4enum class ColliderType {
5 player,
6 train,
7 crate,
8 other
9};
10
11enum class Direction {
12 none,
13 left,
14 right,
15 up,
16 down
17};
18
19#endif /* end of include guard: ENUMS_H_CD0A75E4 */