diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2016-05-05 09:27:39 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2016-05-05 09:27:39 -0400 |
commit | 1a1640760502081c2dcded90cff351163fabce76 (patch) | |
tree | 5f6b4f493fe57916261b22950a55482fbee6b7fe /src/mob.cpp | |
parent | 095293277dbca80e91c4f25b05923b7cb3a79396 (diff) |
bricing, controls jumps and sprints
Diffstat (limited to 'src/mob.cpp')
-rw-r--r-- | src/mob.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mob.cpp b/src/mob.cpp index 6ce46ab..d524397 100644 --- a/src/mob.cpp +++ b/src/mob.cpp @@ -1,6 +1,7 @@ #include <mob.hpp> #include <ui.hpp> #include <world.hpp> +#include <brice.hpp> extern World *currentWorld; @@ -30,6 +31,8 @@ void Page::act(void) std::thread([this](void){ ui::drawPage(pageTexture); ui::waitForDialog(); + game::setValue(cId, cValue); + game::briceUpdate(); die(); }).detach(); } @@ -49,6 +52,9 @@ void Page::createFromXML(const XMLElement *e) loc.x = Xlocx; pageTexPath = e->StrAttribute("id"); pageTexture = Texture::loadTexture(pageTexPath); + + cId = e->StrAttribute("cid"); + cValue = e->StrAttribute("cvalue"); } Door::Door(void) : Mob() |