1 /*************************************************************************** 2 levelmap.h - description 3 ------------------- 4 begin : Sat Aug 3 2002 5 copyright : (C) 2002 by Giuseppe D'Aqui' 6 email : kumber@tiscalinet.it 7 ***************************************************************************/ 8 9 /*************************************************************************** 10 * * 11 * This program is free software; you can redistribute it and/or modify * 12 * it under the terms of the GNU General Public License, Version 2, as published by * 13 * the Free Software Foundation. * 14 * * 15 ***************************************************************************/ 16 17 #include "dephine.h" 18 #include "entity_type.h" 19 #include <vector> 20 21 #ifndef LEVELMAP_H 22 #define LEVELMAP_H 23 24 class Levelmap 25 { 26 protected: 27 Uint32 m_version; 28 Uint32 m_size_x; 29 Uint32 m_size_y; 30 const char* m_name; 31 const char* m_author; 32 Uint32 m_min_score; 33 Uint32 m_max_time; 34 std::vector< std::vector<Entity_Type> > m_map; 35 //bool m_error; 36 // Epimap m_epimap; 37 public: 38 Levelmap(const char* map_path); 39 Levelmap(); 40 void load_map(const char* map_path); 41 Uint32 get_min_score(); 42 Uint32 get_max_time(); 43 const char* get_name(); 44 const char* get_author(); 45 Uint32 get_size_x(); 46 Uint32 get_size_y(); 47 //bool error(); 48 std::vector< std::vector<Entity_Type> >& get_map(); 49 Entity_Type get_map_element(Uint32 x, Uint32 y); 50 51 }; 52 53 #endif //LEVELMAP_H 54 55