options.h

00001 
00002 /*
00003   svn info:
00004 
00005   $Author: morongo $
00006   $Date: 2006-04-23 19:33:52 +0200 (Sun, 23 Apr 2006) $
00007   $HeadURL: https://svn.sourceforge.net/svnroot/gp2hanoi/trunk/src/options.h $
00008   $Id: options.h 21 2006-04-23 17:33:52Z morongo $
00009   $Revision: 21 $
00010 */
00011 
00013 //                                               //
00014 // options.h : options dialog box                //
00015 //                                               //
00016 // (c) 2006 Kombo Morongo <morongo666@gmail.com> //
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         };                                                                                        // class options
00173 
00174 }                                                                                                 //module GP2HANOI
00175 #endif
00176 
00177 // EOF $Id: options.h 21 2006-04-23 17:33:52Z morongo $
This project is hosted by SourceForge.net Logo