00001 #ifndef __MAP_MANAGER_HPP__ 00002 #define __MAP_MANAGER_HPP__ 00003 00004 #include "vect2.hpp" 00005 #include "map.hpp" 00006 #include "wx_sdl.hpp" 00007 00009 typedef enum { TOOL_POINT , 00010 TOOL_AREA 00011 } TOOL; 00012 typedef CASE BRUSH; 00013 00015 class mapManager 00016 { 00017 private: 00018 // on retrouvera ici notamment un pointeur vers la carte courante, mais aussi 00019 // l'ensemble des ressources SDL 00020 00022 // Devra être NULL par défaut 00023 map* currentMap; 00024 00025 public: 00027 00028 mapManager(void); 00029 00031 ~mapManager(void); 00032 00034 void print( const SDL_Surface* screen , 00035 const int width , 00036 const int height ); 00037 00039 void mouseChange( const vect2& pos , 00040 bool leftIsDown , 00041 bool rightIsDown ); 00042 00044 void toolChange (const TOOL tool ); 00045 00047 void brushChange(const BRUSH ); 00048 00050 00051 void mapChange (map* newMap ); 00052 00053 }; 00054 00055 00056 #endif // __MAP_MANAGER_HPP__