Mercurial > LightClone
view LightClone/Source/World.h @ 42:91e927584f92
Code cleanup
author | koryspansel |
---|---|
date | Thu, 22 Sep 2011 10:38:54 -0700 |
parents | 00d17d8f407d |
children | d27c06bd8ce1 |
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 "Loader.h" #include "CameraController.h" #include "InputManager.h" #include "GuiInterface.h" #include "GuiImage.h" #include "GuiButton.h" #include "CodePanel.h" #include "Program.h" #include "Dialog.h" /* * World */ class World { /* * pEventSystem */ EventSystem* pEventSystem; /* * pInputManager */ InputManager* pInputManager; /* * kLoader */ Loader kLoader; /* * kEnvironment */ Environment kEnvironment; /* * kBot */ Bot kBot; /* * kProgram */ Program kProgram; /* * nGameState */ uint32 nGameState; /* * nGameStatePrevious */ uint32 nGameStatePrevious; /* * nSimulationState */ uint32 nSimulationState; /* * nCurrentLevel */ uint32 nCurrentLevel; /* * kCameraController */ CameraController kCameraController; /* * kInterface */ GuiInterface kInterface; /* * pBackground */ GuiImage* pBackground; /* * pButtonPlay */ GuiButton* pButtonPlay; /* * pButtonStop */ GuiButton* pButtonStop; /* * pButtonReset */ GuiButton* pButtonReset; /* * pButtonExit */ GuiButton* pButtonExit; /* * pToolbar */ CodePanel* pToolbar; /* * pMain */ CodePanel* pMain; /* * pFunctionA */ CodePanel* pFunctionA; /* * pFunctionB */ CodePanel* pFunctionB; /* * kMessageDialog */ Dialog<1> kMessageDialog; /* * kConfirmDialog */ Dialog<2> kConfigDialog; 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 */ ErrorCode Load(const char* pName); /* * 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); /* * OnAction */ void OnAction(GuiEventArguments& kArguments); /* * OnPlay */ void OnPlay(GuiEventArguments& kArguments); /* * OnStop */ void OnStop(GuiEventArguments& kArguments); /* * OnReset */ void OnReset(GuiEventArguments& kArguments); /* * OnExit */ void OnExit(GuiEventArguments& kArguments); /* * OnResult */ void OnResult(GuiEventArguments& kArguments); /* * OnConfirm */ void OnConfirm(GuiEventArguments& kArguments); }; #endif //__WORLD_H__