Allow creation of Tilemap and Door objects by feeding them with info.
[supertux.git] / src / tilemap.cpp
index a877dc9..b5f90b4 100644 (file)
@@ -83,6 +83,11 @@ TileMap::TileMap(LispReader& reader)
     throw std::runtime_error("wrong number of tiles in tilemap.");
 }
 
+TileMap::TileMap(int layer_, bool solid_, size_t width_, size_t height_)
+  : solid(solid_), speed(1), width(width_), height(height_), layer(layer_)
+{
+}
+
 TileMap::~TileMap()
 {
 }