//Dave Seneker and Dan (Luisa) Lu //Introduction header file #ifndef __INTRO_H__ #define __INTRO_H__ #include "game.h" #include "texturemap.h" //--------------------------------------------------------------------- // Inpnut // //! Class to encapsulate all game data // //--------------------------------------------------------------------- class Intro { public: Intro(); virtual ~Intro(); //! default game window size and title static const int DEFAULT_WINDOW_WIDTH = 640; static const int DEFAULT_WINDOW_HEIGHT = 480; static const int MIN_WINDOW_SIZE = 5; static const char* WINDOW_TITLE; static const char* INTROFILE; static const char* SNAPSHOT_FILENAME; //! initialize game data bool Init(Game *); //! exectute main game loop void Run(); //! the 6 skybox textures //enum IntroTextureEnum { // INTRO = 0, // NUM_INTRO_TEXTURES //}; // Access the current intro texture //TextureMap& GetTextureMap(IntroTextureEnum whichMap) // { assert (whichMapRender(); } static void IdleCB() { s_pIntro->UpdateState(); } static void ReshapeCB(int w, int h) { s_pIntro->ReshapeWindow(w, h); } static void KeyDownCB(unsigned char key, int x, int y) { s_pIntro->ProcessKeyDown(key, x, y); } static void KeyUpCB(unsigned char key, int x, int y) { s_pIntro->ProcessKeyUp(key, x, y); } static void SKeyDownCB(int key, int x, int y) { s_pIntro->ProcessKeyDown(key, x, y); } static void SKeyUpCB(int key, int x, int y) { s_pIntro->ProcessKeyUp(key, x, y); } bool CaptureImage(const char *filename); //! main window identifier int mainWindow; //! stores window size in pixels unsigned short iWindowWidth; unsigned short iWindowHeight; //! data filenames static const int MAX_LEN = 256; static const int MAX_FRAMES = 50;//how many frames can be in the intro char *introFilenames[MAX_FRAMES]; int introTimes[MAX_FRAMES]; int numintroframes; int introendtime; int starttime; int totaltime; float timeElapsed; //!< time elapsed since last update (sec) bool skipintro; bool menureturned; int introstate; int menuitem; int menux,menuy,menuxsize,menuysize,menuincrement; char *startmenuimage; TextureMap IntroTexture; }; #endif // __GAME_H__