let miniswig create code to create squirrel object instances
[supertux.git] / src / badguy / spike.cpp
index e012d25..eded3f9 100644 (file)
@@ -17,8 +17,9 @@
 //  along with this program; if not, write to the Free Software
 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 //  02111-1307, USA.
+#include <config.h>
 
-#include "spike.h"
+#include "spike.hpp"
 
 Spike::Spike(const Vector& pos, Direction dir)
 {
@@ -27,6 +28,7 @@ Spike::Spike(const Vector& pos, Direction dir)
   bbox.set_pos(Vector(0, 0));
   bbox.set_size(32, 32);
   set_direction(dir);
+  countMe = false;
 }
 
 Spike::Spike(const lisp::Lisp& reader)
@@ -38,6 +40,7 @@ Spike::Spike(const lisp::Lisp& reader)
   int idir = 0;
   reader.get("direction", idir);
   set_direction((Direction) idir);
+  countMe = false;
 }
 
 void
@@ -79,7 +82,7 @@ Spike::kill_fall()
 }
 
 void
-Spike::active_action(float )
+Spike::active_update(float )
 {
 }