00001 /*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 00002 || NoX-Wizard UO Server Emulator (NXW) [http://noxwizard.sourceforge.net] || 00003 || || 00004 || This software is free software released under GPL2 license. || 00005 || You can find detailed license information in nox-wizard.cpp file. || 00006 || || 00007 || For any question post to NoX-Wizard forums. || 00008 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/ 00009 00016 #ifndef _AREA_H 00017 #define _AREA_H 00018 00019 typedef struct { 00020 UI16 x1; 00021 UI16 y1; 00022 UI16 x2; 00023 UI16 y2; 00024 } Area; 00025 00026 typedef std::map< SERIAL, Area > AREA_DB; 00027 typedef AREA_DB::iterator AREA_ITER; 00028 00029 00030 class cAreas { 00031 00032 private: 00033 00034 AREA_DB allareas; 00035 SERIAL currarea; 00036 00037 public: 00038 00039 friend class cSpawns; 00040 00041 cAreas(); 00042 ~cAreas(); 00043 00044 SERIAL insert( Area& newarea, SERIAL index = INVALID ); 00045 void loadareas(); 00046 00047 00048 }; 00049 00050 extern cAreas* Areas; 00051 00052 00053 #endif