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


// Class automatically generated by Dev-C++ New Class wizard 
 
#ifndef GS_INTRO_H 
#define GS_INTRO_H 
 
//setup Irrlicht definitions 
#include  
#include "../defines.h" 
 
#include "Base_Classes/game_state.h" 
 
/*********************** 
    INTRO GAME STATE 
***********************/ 
 
//gs_intro GUI objects ID enum 
enum tGSI_GUIobjs {   
    GSI_GUI_BTN_QUIT = 101, //quit application 
    GSI_GUI_BTN_NEW,        //new game 
    GSI_GUI_BTN_OPTS,       //set options 
     
    GSI_GUI_OBJS_NUM        // unused  
}; 
 
//Intro state welcomes the user and allows them to create a new game, 
// set options, or quit the game. 
class gs_Intro : public game_State {    
public: 
		// class constructor 
		//gsr_Intro(IrrlichtDevice* dv, video::IVideoDriver *dr); 
		gs_Intro(game_StateHandler* handler); 
		// class destructor 
		~gs_Intro(); 
		 
		 
		virtual void Render();                    // render state 
		virtual bool onEvent(irr::SEvent event);  // handle events 
		virtual void Update();                    // update state 
		 
private: 
 
    //buttons are static so they dont get recreated every time we return to Intro 
    static irr::gui::IGUIButton *m_btn_quit; 
    static irr::gui::IGUIButton *m_btn_new; 
    static irr::gui::IGUIButton *m_btn_opts; 
    static irr::gui::IGUIStaticText *m_txt_title; 
 
}; 
 
#endif // GS_INTRO_H