From 1a1640760502081c2dcded90cff351163fabce76 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Thu, 5 May 2016 09:27:39 -0400 Subject: bricing, controls jumps and sprints --- src/mob.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/mob.cpp') 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 #include #include +#include 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() -- cgit v1.2.3