C:/Users/Mike/Documents/Visual Studio Projects/GameEngine/include/HumanView.h

Go to the documentation of this file.
00001 /*
00002 -----------------------------------------------------------------------------
00003 Copyright (C) 2006 Michael Harnetty
00004 
00005 This program is free software; you can redistribute it and/or
00006 modify it under the terms of the GNU General Public License
00007 as published by the Free Software Foundation; either version 2
00008 of the License, or (at your option) any later version.
00009 
00010 This program is distributed in the hope that it will be useful,
00011 but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 GNU General Public License for more details.
00014 
00015 You should have received a copy of the GNU General Public License
00016 along with this program; if not, write to the Free Software
00017 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00018 -----------------------------------------------------------------------------
00019 */
00020 
00021 #ifndef HUMAN_VIEW_H
00022 #define HUMAN_VIEW_H
00023 
00024 #include "GameEnginePrerequisites.h"
00025 #include "IGameView.h"
00026 #include "IEventListener.h"
00027 #include "GameApp.h"
00028 #include "BaseGame.h"
00029 
00030 
00031 namespace GameEngine{
00032 
00033         class BaseGame;
00034         class GameApp;
00035 
00038         class ENGINE_DECL HumanView : public IGameView, public IEventListener, public boost::enable_shared_from_this<HumanView> {
00039         public:
00040 
00041                 HumanView(GameApp* const application, BaseGame* const game);
00042                 ~HumanView();
00043 
00044                 CEGUI::OgreCEGUIRenderer* getGuiRenderer() const { return mGuiRenderer; }
00045                 CEGUI::System* getGuiSystem() const { return mGuiSystem; }
00046 
00047                 void init(void);
00048 
00049                 virtual bool handleEvent(const Event& event);
00050                 void onUpdate(const double dt);
00051 
00052         protected:
00053                 GameApp* mApplication;
00054                 BaseGame* mGame;
00055 
00056                 CEGUI::OgreCEGUIRenderer* mGuiRenderer;
00057                 CEGUI::System* mGuiSystem;
00058         };
00059 
00060 }
00061 
00062 #endif

Generated on Thu Apr 19 09:47:02 2007 for GameEngine by  doxygen 1.5.2