Mercurial > LightClone
view LightClone/Source/Mediator.h @ 74:40c0b5305de8
Work on removing ScreenManager
author | koryspansel |
---|---|
date | Tue, 18 Oct 2011 11:56:49 -0700 |
parents | 0574e2cf8bac |
children | 57c0ce406a68 |
line wrap: on
line source
/* * Mediator */ #ifndef __MEDIATOR_H__ #define __MEDIATOR_H__ #include "Core.h" #include "Clock.h" #include "Window.h" #include "InputManager.h" #include "GraphicsDevice.h" #include "ResourceManager.h" #include "RenderContext.h" #include "ServiceProvider.h" #include "CameraController.h" #include "Loader.h" #include "Environment.h" #include "Bot.h" #include "GuiInterface.h" #include "GuiImage.h" #include "GuiButton.h" #include "ActionPanel.h" #include "Dialog.h" /* * Mediator */ class Mediator : public WindowCallback { /* * kWindow */ Window kWindow; /* * kClock */ Clock kClock; /* * pGraphicsDevice */ GraphicsDevice* pGraphicsDevice; /* * kResourceManager */ ResourceManager kResourceManager; /* * kContext */ RenderContext kContext; /* * kInputManager */ InputManager kInputManager; /* * kServiceProvider */ ServiceProvider kServiceProvider; /* * fAccumulator */ float fAccumulator; /* * nApplicationState */ uint32 nApplicationState; /* * pInputManager */ InputManager* pInputManager; /* * kCameraController */ CameraController kCameraController; /* * kLoader */ Loader kLoader; /* * kEnvironment */ Environment kEnvironment; /* * kBot */ Bot kBot; /* * kProgram */ Program kProgram; /* * nGameState */ uint32 nGameState; /* * nSimulationState */ uint32 nSimulationState; /* * nCurrentLevel */ uint32 nCurrentLevel; /* * kInterface */ GuiInterface kInterface; /* * pBackground */ GuiImage* pBackground; /* * pButtonPlay */ GuiButton* pButtonPlay; /* * pButtonStop */ GuiButton* pButtonStop; /* * pButtonReset */ GuiButton* pButtonReset; /* * pButtonExit */ GuiButton* pButtonExit; /* * pToolbar */ ActionPanel* pToolbar; /* * pCode */ ActionPanel* pCode[MaximumFunctionCount]; /* * pMessageDialog */ MessageDialog* pMessageDialog; /* * pConfirmDialog */ ChoiceDialog* pConfirmDialog; /* * pDebugText */ GuiLabel* pDebugText; public: /* * Mediator */ Mediator(); /* * Run */ ErrorCode Run(); /* * OnMessage */ virtual int32 OnMessage(Window* pInstance, uint32 nMessage, WPARAM wParam, LPARAM lParam); private: /* * Initialize */ virtual ErrorCode Initialize(); /* * Terminate */ virtual void Terminate(); /* * Update */ void Update(float fElapsed); /* * Render */ void Render(); /* * ProcessMessages */ virtual void ProcessMessages(); /* * ProcessUpdate */ void ProcessUpdate(); /* * ProcessRender */ void ProcessRender(); /* * Load */ ErrorCode Load(const char* pName); /* * InitializeInterface */ ErrorCode InitializeInterface(ServiceProvider* pServiceProvider); /* * UpdateInput */ void UpdateInput(float fElapsed); /* * UpdateLogic */ void UpdateLogic(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); }; #endif //__MEDIATOR_H__