#include "PrecompiledHeader.h" #include "GuiLayers.h" #include "Player.h" GuiLayer::GuiLayer(){ modal = 0; hasFocus = false; mCount = 0; mCurr = 0; mActionButton = JGE_BTN_OK; } GuiLayer::~GuiLayer(){ resetObjects(); } void GuiLayer::Add(JGuiObject *object){ mObjects.push_back(object); mCount++; } int GuiLayer::Remove(JGuiObject *object){ for (int i=0;iRender(); } void GuiLayer::Update(float dt){ for (int i=0;iUpdate(dt); } void GuiLayer::resetObjects(){ for (int i=0;i