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

system.h

00001 //--------------------------------------------------------------------------- 00002 // System 00003 //--------------------------------------------------------------------------- 00004 #ifndef __SYSTEM_H 00005 #define __SYSTEM_H 00006 00007 00008 #include <string> 00009 00011 00014 namespace System { 00015 #include <allegro.h> 00016 00018 extern BITMAP * _screen; 00020 void init(); 00022 void done(); 00024 void flip(); 00026 void handleMouse(); 00027 00029 BITMAP* loadBitmap(const char* filename); 00031 std::string readText(int x, int y, int maxW); 00033 std::string askForText(int x, int y, int maxW, std::string prompt); 00035 void say(std::string str); 00036 00037 00038 00040 class Exception { 00041 protected: 00043 std::string errorMessage; 00044 00045 public: 00047 Exception(){}; 00049 Exception(const char* fmt, ...); 00051 void print(); 00052 }; 00053 00054 } // end of namespace 00055 00056 #endif

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