Committed gnomino's iceflower patch. Also added placeholder graphics (selfmade, PD...
[supertux.git] / src / badguy / sspiky.cpp
index c81ea1d..ad80b8d 100644 (file)
@@ -106,4 +106,18 @@ SSpiky::active_update(float elapsed_time) {
   }
 }
 
+void
+SSpiky::freeze()
+{
+  WalkingBadguy::freeze();
+  sprite->set_action(dir == LEFT ? "iced-left" : "iced-right");
+  state = SSPIKY_WALKING; // if we get hit while sleeping, wake up :)
+}
+
+bool
+SSpiky::is_freezable() const
+{
+  return true;
+}
+
 IMPLEMENT_FACTORY(SSpiky, "sspiky")