www.pudn.com > ICE_1.4.zip > game_state.h


// Class automatically generated by Dev-C++ New Class wizard 
 
#ifndef GAME_STATERENDERER_H 
#define GAME_STATERENDERER_H 
 
#include  
//using namespace irr; 
 
#include "game_statehandler.h" 
 
// No description 
class game_State 
{ 
    protected: 
    irr::IrrlichtDevice       *m_device; //irrlicht device pointer 
    irr::video::IVideoDriver  *m_driver; //irrlicht video driver pointer 
    irr::gui::IGUIEnvironment *m_env;    //irrlicht GUI environment ptr 
    irr::scene::ISceneManager *m_smgr;      //irrlicht scene manager ptr 
     
    game_StateHandler    *m_handler; 
	public: 
		// class constructor 
		//game_State(IrrlichtDevice* dv, video::IVideoDriver *dr) : 
        //    m_device(dv), m_driver(dr) {}; 
        game_State(game_StateHandler* handler); 
		// class destructor 
		virtual ~game_State() {}; 
		// render state 
		virtual void Render() = 0; 
		virtual bool onEvent(irr::SEvent event) = 0; 
		virtual void Update() = 0; 
		 
	protected: 
		// draws a colored rectangle 
		void DrawRect(irr::video::SColor color, irr::core::rect pos); 
}; 
 
 
#endif // GAME_STATERENDERER_H