Nymph Game Engine
Chaiscript based Game Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
map.h
Go to the documentation of this file.
1 #ifndef MAP_H
2 #define MAP_H
3 #include <tmxparser/Tmx.h>
4 
5 //= SCRIPTABLE
6 
7 namespace Game {
11  class Map {
12  private:
13  Tmx::Map* map_impl;
14  std::string path;
15  public:
16  Map() = delete;
17  virtual ~Map() { if(!map_impl) delete map_impl; }
23  Tmx::Map* getImpl() const noexcept;
24  //= BEGIN SCRIPTABLE
25 
31  Map(const std::string& path);
37  Map(const Map& map) = default;
43  std::string getPath() const noexcept;
51  Map& operator=(const Map& map) = default;
52  //= END SCRIPTABLE
53  };
54 }
55 
56 #endif
std::string getPath() const noexcept
Gets the path.
Definition: map.cpp:13
Class wrapper for Tmx::Map.
Definition: map.h:11
virtual ~Map()
Definition: map.h:17
Map()=delete
Tmx::Map * getImpl() const noexcept
Gets the implementation (the actual TMX map)
Definition: map.cpp:9