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/tileset.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/tileset.h') 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 @@ #ifndef TILESET_H_B89AE7A1 #define TILESET_H_B89AE7A1 +#include "enums.h" + class Tileset { public: - bool canPlayerMoveTo(size_t tile) const + bool canEntityMoveTo(ColliderType collider, size_t tile) const { return true; } -- cgit 1.4.1