Mercurial > LightClone
view LightClone/Source/World.h @ 22:502ed0a0059a
Hooking up Gui elements
author | koryspansel <koryspansel@bendbroadband.com> |
---|---|
date | Thu, 15 Sep 2011 20:31:15 -0700 |
parents | b4dc5d674e22 |
children | a785b0aaf004 |
line wrap: on
line source
/* * World */ #ifndef __WORLD_H__ #define __WORLD_H__ #include "Core.h" #include "ResourceManager.h" #include "EventSystem.h" #include "RenderContext.h" #include "Environment.h" #include "Bot.h" #include "Code.h" #include "Loader.h" #include "CameraController.h" #include "DragController.h" #include "InputManager.h" #include "ButtonPane.h" #include "Dialog.h" //#include "Interface.h" #include "GuiInterface.h" /* * World */ class World { /* * pEventSystem */ EventSystem* pEventSystem; /* * pInputManager */ InputManager* pInputManager; /* * kLoader */ Loader kLoader; /* * kEnvironment */ Environment kEnvironment; /* * kBot */ Bot kBot; /* * kFunction */ Code* pFunction; /* * nGameState */ uint32 nGameState; /* * nSimulationState */ uint32 nSimulationState; /* * nCurrentLevel */ uint32 nCurrentLevel; /* * nCurrentFunction */ uint32 nCurrentFunction; /* * kCameraController */ CameraController kCameraController; /* * kInterface */ GuiInterface kInterface; /* * kDragController */ DragController kDragController; /* * kToolbar */ ButtonPane kToolbar; /* * kMain */ ButtonPane kMain; /* * kFunction */ ButtonPane kFunction; /* * kControlBounds */ //ButtonPane kControls; /* * kArrowBounds */ Rectangle2 kArrowBounds[2]; /* * kDialog1Bounds */ Rectangle2 kDialog1Bounds[1]; /* * kDialog2Bounds */ Rectangle2 kDialog2Bounds[2]; /* * kInterface * Move to World */ //Interface kInterface; /* * kDialog */ Dialog kDialog; public: /* * World */ World(); /* * Initialize */ ErrorCode Initialize(EventSystem* pSystem, ResourceManager* pResource, InputManager* pInput); /* * Terminate */ void Terminate(); /* * Activate */ void Activate(); /* * Deactivate */ void Deactivate(); /* * IsActive */ bool IsActive(); /* * Load */ bool Load(const char* pName); /* * ResetEnvironment */ void ResetEnvironment(); /* * ResetBot */ void ResetBot(); /* * ResetCode */ void ClearCode(); /* * Update */ void Update(float fElapsed); /* * Render */ void Render(RenderContext& kContext); private: /* * InitializeInterface */ ErrorCode InitializeInterface(ResourceManager* pResourceManager); /* * Render3D */ void Render3D(RenderContext& kContext); /* * Render2D */ void Render2D(RenderContext& kContext); /* * RenderEnvironment */ void RenderEnvironment(RenderContext& kContext, Environment* pEnvironment); /* * RenderBot */ void RenderBot(RenderContext& kContext, Environment* pEnvironment, Bot* pBot); /* * ProcessInput */ void ProcessInput(float fElapsed); /* * OnPlay */ void OnPlay(GuiEventArguments& kArguments); /* * OnStop */ void OnStop(GuiEventArguments& kArguments); /* * OnReset */ void OnReset(GuiEventArguments& kArguments); /* * OnExit */ void OnExit(GuiEventArguments& kArguments); }; #endif //__WORLD_H__