25 #ifndef PEGASUS_MENU_H 26 #define PEGASUS_MENU_H 28 #include "pegasus/constants.h" 29 #include "pegasus/fader.h" 30 #include "pegasus/input.h" 31 #include "pegasus/movie.h" 32 #include "pegasus/sound.h" 33 #include "pegasus/surface.h" 34 #include "pegasus/util.h" 43 virtual void becomeCurrentHandler();
44 virtual void restorePreviousHandler();
46 GameMenuCommand getLastCommand() {
return _lastCommand; }
47 void clearLastCommand() { _lastCommand = kMenuCmdNoCommand; }
50 void setLastCommand(
const GameMenuCommand command) { _lastCommand = command; }
53 GameMenuCommand _lastCommand;
58 void drawNumber(GameScoreType, CoordType &, CoordType,
Surface *);
68 void handleInput(
const Input &input,
const Hotspot *)
override;
69 void startMainMenuLoop();
70 void stopMainMenuLoop();
75 uint32 _menuSelection;
101 void handleInput(
const Input &input,
const Hotspot *)
override;
102 void startCreditsMenuLoop();
103 void stopCreditsMenuLoop();
106 void newMenuSelection(
const int);
107 void newMovieTime(
const TimeValue);
125 void handleInput(
const Input &input,
const Hotspot *)
override;
127 bool playerWon() {
return _playerWon; }
130 void drawAllScores();
132 void updateDisplay();
136 DeathReason _deathReason;
155 void handleInput(
const Input &input,
const Hotspot *)
override;
158 void updateDisplay();
160 uint32 _menuSelection;
Definition: elements.h:234
Definition: ai_action.h:33
Definition: surface.h:125