Spiky Class Reference

#include <spiky.hpp>

Inherits WalkingBadguy.

List of all members.

Public Member Functions

 Spiky (const Reader &reader)
void freeze ()
 Called when hit by an ice bullet, and is_freezable() returns true.
bool is_freezable () const


Detailed Description

Definition at line 22 of file spiky.hpp.


Constructor & Destructor Documentation

Spiky::Spiky ( const Reader reader  ) 

Definition at line 22 of file spiky.cpp.

References WalkingBadguy::max_drop_height, and WalkingBadguy::walk_speed.

00023   : WalkingBadguy(reader, "images/creatures/spiky/spiky.sprite", "left", "right")
00024 {
00025   walk_speed = 80;
00026   max_drop_height = 600;
00027 }


Member Function Documentation

void Spiky::freeze (  )  [virtual]

Called when hit by an ice bullet, and is_freezable() returns true.

Reimplemented from WalkingBadguy.

Definition at line 30 of file spiky.cpp.

References BadGuy::dir, WalkingBadguy::freeze(), LEFT, and MovingSprite::sprite.

00031 {
00032   WalkingBadguy::freeze();
00033   sprite->set_action(dir == LEFT ? "iced-left" : "iced-right");
00034 }

bool Spiky::is_freezable (  )  const [virtual]

Reimplemented from BadGuy.

Definition at line 37 of file spiky.cpp.

00038 {
00039   return true;
00040 }


The documentation for this class was generated from the following files:
Generated on Mon Jun 9 03:38:36 2014 for SuperTux by  doxygen 1.5.1