#include <spiky.hpp>
Inherits WalkingBadguy.
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 |
Definition at line 22 of file spiky.hpp.
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 }
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] |