confirm.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/confirm.h $
00008   $Id: confirm.h 21 2006-04-23 17:33:52Z morongo $
00009   $Revision: 21 $
00010 */
00011 
00013 //                                               //
00014 // confirm.h : yes/no confirmation dialog box    //
00015 //                                               //
00016 // (c) 2006 Kombo Morongo <morongo666@gmail.com> //
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         };                                                                                        // class confirm
00133 
00134 }                                                                                                 //module GP2HANOI
00135 #endif
00136 
00137 // EOF $Id: confirm.h 21 2006-04-23 17:33:52Z morongo $
This project is hosted by SourceForge.net Logo