Renamed namespaces to all lowercase
[supertux.git] / src / object / platform.cpp
index 8ac0624..2575edc 100644 (file)
 #include "supertux/sector.hpp"
 #include "util/reader.hpp"
 
-Platform::Platform(const Reader& reader)
-  : MovingSprite(reader, Vector(0,0), LAYER_OBJECTS, COLGROUP_STATIC), 
-    speed(Vector(0,0)), 
-    automatic(false), player_contact(false), last_player_contact(false)
+Platform::Platform(const Reader& reader) :
+  MovingSprite(reader, Vector(0,0), LAYER_OBJECTS, COLGROUP_STATIC), 
+  path(),
+  walker(),
+  speed(Vector(0,0)), 
+  automatic(false), 
+  player_contact(false), 
+  last_player_contact(false)
 {
   bool running = true;
   reader.get("name", name);
@@ -129,7 +133,7 @@ void
 Platform::expose(HSQUIRRELVM vm, SQInteger table_idx)
 {
   if (name.empty()) return;
-  Scripting::Platform* interface = new Scripting::Platform(this);
+  scripting::Platform* interface = new scripting::Platform(this);
   expose_object(vm, table_idx, interface, name, true);
 }
 
@@ -137,7 +141,7 @@ void
 Platform::unexpose(HSQUIRRELVM vm, SQInteger table_idx)
 {
   if (name.empty()) return;
-  Scripting::unexpose_object(vm, table_idx, name);
+  scripting::unexpose_object(vm, table_idx, name);
 }
 
 IMPLEMENT_FACTORY(Platform, "platform");