diff options
author | drumsetmonkey <abelleisle@roadrunner.com> | 2016-04-28 11:49:19 -0400 |
---|---|---|
committer | drumsetmonkey <abelleisle@roadrunner.com> | 2016-04-28 11:49:19 -0400 |
commit | 992969772def3578acbd1cef0155333636f75862 (patch) | |
tree | 2794c7591bb463d5fe28a669eb97d211d72f4501 /include/world.hpp | |
parent | 4f0dff18e4680d9bb4e7efc9cffdb0b63937533c (diff) | |
parent | 62df9319f06bb52da8878522117ebe85fc5226b5 (diff) |
Merge branch 'master' of https://github.com/tcsullivan/gamedev
Diffstat (limited to 'include/world.hpp')
-rw-r--r-- | include/world.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
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<World *, vec2> goWorldLeft(Player *p); + std::pair<World *, vec2> goWorldRight(Player *p); // attempts to move an NPC to the left adjacent world, returning true on success bool goWorldLeft(NPC *e); |