00001 /* 00002 * $Id: GameSelector.h,v 1.1 2002/08/09 04:52:08 virtualcasino Exp $ 00003 */ 00004 #ifndef __GAME_SELECTOR_H__ 00005 #define __GAME_SELECTOR_H__ 00006 #include<Dialog.h> 00007 #include<TextButton.h> 00008 #ifndef BINGO 00009 #define BINGO 2 00010 #endif 00011 #ifndef RULETA 00012 #define RULETA 3 00013 #endif 00014 #ifndef BLACKJACK 00015 #define BLACKJACK 4 00016 #endif 00017 00018 namespace clawsoft{ 00019 class GameSelButton:public TextButton{ 00020 protected: 00021 public: 00022 GameSelButton(Rect &r, const char *cap); 00023 void action(int xx, int yy, int bb){ } 00024 }; 00025 00026 class GameSelector:public Dialog{ 00027 protected: 00028 void drawContents(); 00029 int opt; 00030 bool doexit; 00031 public: 00032 GameSelector(); 00033 GameSelButton *bingoBtn; 00034 GameSelButton *ruletaBtn; 00035 GameSelButton *blackjackBtn; 00036 ~GameSelector(){ 00037 delete bingoBtn; 00038 delete ruletaBtn; 00039 delete blackjackBtn; 00040 } 00041 void cancelAction(int xx, int yy, int bb); 00042 int run(); 00043 void map(); 00044 }; 00045 } 00046 00047 00048 #endif
Powered by: