#include <options.h>
Public Member Functions | |
| void | ask (unsigned int lvl=8, bool snd=true) throw (std::string const &) |
| ask for user entry | |
| unsigned int | getLevel (void) const |
| Returns selected game level. | |
| unsigned int | getSound (void) const |
| Returns selected sound option. | |
| options (SDL_Surface *scr, SDL_Surface *spr, Mix_Chunk *click) | |
| Default Constructor. | |
| ~options () | |
| Destructor. | |
Private Member Functions | |
| void | show (unsigned int option) throw (std::string const &) |
| Shows the dialog box on the destination surface. | |
Private Attributes | |
| Mix_Chunk * | clickSFX |
| Click sound effect. | |
| unsigned int | level |
| Container for the game level. | |
| SDL_Surface * | screen |
| Destination surface. | |
| bool | sound |
| Container for the game level. | |
| SDL_Surface * | sprite |
| Sprites surface. | |
|
||||||||||||||||
|
Default Constructor.
|
|
|
Destructor.
|
|
||||||||||||
|
ask for user entry
|
|
|
Returns selected game level.
|
|
|
Returns selected sound option.
|
|
|
Shows the dialog box on the destination surface.
|
|
|
Click sound effect.
|
|
|
Container for the game level.
|
|
|
Destination surface.
|
|
|
Container for the game level.
|
|
|
Sprites surface.
|