00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00013
00014
00015
00016
00017
00019
00020 #ifndef _OPTIONS_H_
00021 #define _OPTIONS_H_
00022
00031 #include <SDL.h>
00032 #include <SDL_mixer.h>
00033
00034 #include <list>
00035 #include <string>
00036 #include <vector>
00037
00038 namespace GP2HANOI
00039 {
00040
00054 class options
00055 {
00056 public:
00057
00067 options(SDL_Surface *scr, SDL_Surface *spr, Mix_Chunk *click);
00068
00072 ~options();
00073
00087 void ask(unsigned int lvl = 8, bool snd = true) throw(std::string const &);
00088
00094 unsigned int getLevel(void) const;
00095
00101 unsigned int getSound(void) const;
00102
00103 private:
00113 void show(unsigned int option) throw(std::string const &);
00114
00121 SDL_Surface *screen;
00122
00145 SDL_Surface *sprite;
00146
00153 Mix_Chunk *clickSFX;
00154
00162 unsigned int level;
00163
00171 bool sound;
00172 };
00173
00174 }
00175 #endif
00176
00177
This project is hosted by