Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members

menu.h

00001 //--------------------------------------------------------------------------- 00002 // menu 00003 //--------------------------------------------------------------------------- 00004 #ifndef __MENU_H 00005 #define __MENU_H 00006 00007 #include "system.h" 00008 #include <vector> 00009 using namespace std; 00010 00011 namespace System{ 00012 00014 class MenuItem{ 00015 private: 00017 BITMAP* bmp; 00019 int x; 00021 int y; 00023 bool end; 00024 public: 00026 00029 MenuItem(bool end){this->end = end; }; 00031 00036 MenuItem(const char* filename, int x, int y); 00038 void draw(); 00040 bool inside(int x, int y); 00042 virtual ~MenuItem(); 00044 bool isEnd(){ return end; }; 00045 00046 }; 00047 00049 class Menu{ 00050 private: 00052 MenuItem* data; 00054 BITMAP* background; 00056 void draw(); 00058 bool canEscape; 00059 public: 00061 00066 Menu(MenuItem* data, const char* bg, bool esc); 00068 virtual ~Menu(); 00070 int exec(); 00071 }; 00072 00073 } 00074 00075 #endif // __MENU_H

Generated on Fri May 28 02:26:31 2004 for Piskvorky by doxygen 1.3.7