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


// Class automatically generated by Dev-C++ New Class wizard 
 
#ifndef EXAMPLE_ENGINE_H 
#define EXAMPLE_ENGINE_H 
 
#define GAME_ENGINE_TYPE example_Engine 
 
#include "Base_Classes/game_engine.h" // inheriting class's header file 
 
#include "gs_Configure.h" 
#include "gs_Intro.h" 
#include "gs_Main.h" 
#include "gs_OptionMenu.h" 
 
 
// SAMPLE implementation of game_Engine, to get you started 
class example_Engine : public game_Engine 
{ 
	public: 
		// class constructor 
		example_Engine(); 
		// class destructor 
		~example_Engine(); 
 
		// called to start up the irrlicht engine and set up game variables 
		bool Init(irr::video::EDriverType device_type = irr::video::EDT_OPENGL,  
                    int res_x = 640, int res_y = 480, 
                    const wchar_t *text =L"ICE - IrrLicht Common Engine"); 
 
        //ask to be moved to a new state 
        void RequestStateChange(tGAME_STATE newState); 
 
}; 
 
#endif // EXAMPLE_ENGINE_H