From e2fb36d5da705278fb84246400945f430794d5e7 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Thu, 28 Apr 2016 11:45:52 -0400 Subject: CAT --- include/world.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/world.hpp') diff --git a/include/world.hpp b/include/world.hpp index b99e9ab..9566184 100644 --- a/include/world.hpp +++ b/include/world.hpp @@ -182,6 +182,8 @@ public: // gets the nearest interactable entity to the given one Entity *getNearInteractable(Entity &e); + Mob *getNearMob(Entity &e); + // gets the coordinates of the `index`th structure vec2 getStructurePos(int index); @@ -213,8 +215,8 @@ public: std::string getToRight(void) const; // attempts to enter the left/right adjacent world, returning either that world or this - World *goWorldLeft(Player *p); - World *goWorldRight(Player *p); + std::pair goWorldLeft(Player *p); + std::pair goWorldRight(Player *p); // attempts to move an NPC to the left adjacent world, returning true on success bool goWorldLeft(NPC *e); -- cgit v1.2.3