Allow creation of Tilemap and Door objects by feeding them with info.
[supertux.git] / src / door.cpp
index 9a14c82..95d9807 100644 (file)
@@ -47,6 +47,19 @@ Door::Door(LispReader& reader)
   animation_timer.init(true);
 }
 
+Door::Door(int x, int y)
+{
+area.x = x;
+area.y = y;
+area.width = 32;
+area.height = 64;
+
+animation_timer.init(true);
+door_activated = false;
+
+animation_timer.init(true);
+}
+
 void
 Door::write(LispWriter& writer)
 {