2011-06-29 01:38:18 +00:00
|
|
|
/*
|
|
|
|
This renders and handles the title screen / main menu
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _TITLE_SCREEN_H_
|
|
|
|
#define _TITLE_SCREEN_H_
|
|
|
|
|
|
|
|
#include "gamestate.h"
|
|
|
|
|
|
|
|
class TitleScreen : public GameState
|
|
|
|
{
|
|
|
|
public:
|
2011-06-30 21:21:46 +00:00
|
|
|
TitleScreen(stack<GameState*>* state_stack, SDL_Surface* display);
|
|
|
|
~TitleScreen();
|
2011-06-29 01:38:18 +00:00
|
|
|
|
|
|
|
bool init();
|
|
|
|
|
2011-06-30 21:21:46 +00:00
|
|
|
protected:
|
|
|
|
void render();
|
|
|
|
void iterate() {}
|
|
|
|
|
|
|
|
// signal handlers
|
|
|
|
void on_lbutton_down(int x, int y);
|
|
|
|
void on_key_down(SDLKey sym, SDLMod mod, Uint16 unicode);
|
|
|
|
|
|
|
|
private:
|
2011-06-29 01:38:18 +00:00
|
|
|
SDL_Surface* background;
|
|
|
|
SDL_Surface* title_banner;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|