00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00013
00014
00015
00016
00017
00019
00020 #ifndef _CONFIRM_H_
00021 #define _CONFIRM_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 confirm
00055 {
00056 public:
00057
00067 confirm(SDL_Surface *scr, SDL_Surface *spr, Mix_Chunk *click = 0);
00068
00072 ~confirm();
00073
00090 bool ask(bool initial = false, bool sound = true) throw(std::string const &);
00091
00092 private:
00093
00103 void show(bool status) throw(std::string const &);
00104
00111 SDL_Surface *screen;
00112
00123 SDL_Surface *sprite;
00124
00131 Mix_Chunk *clickSFX;
00132 };
00133
00134 }
00135 #endif
00136
00137
This project is hosted by