summary refs log tree commit diff stats
path: root/src/tileset.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/tileset.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/tileset.h')
-rw-r--r--src/tileset.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tileset.h b/src/tileset.h index 610a710..8a565bc 100644 --- a/src/tileset.h +++ b/src/tileset.h
@@ -1,10 +1,12 @@
1#ifndef TILESET_H_B89AE7A1 1#ifndef TILESET_H_B89AE7A1
2#define TILESET_H_B89AE7A1 2#define TILESET_H_B89AE7A1
3 3
4#include "enums.h"
5
4class Tileset { 6class Tileset {
5public: 7public:
6 8
7 bool canPlayerMoveTo(size_t tile) const 9 bool canEntityMoveTo(ColliderType collider, size_t tile) const
8 { 10 {
9 return true; 11 return true;
10 } 12 }