X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fbadguy%2Fangrystone.hpp;h=1a46e0c728b0efda138012706a5351b460217b09;hb=2d1bc69993923150eb701d3cacb917ab4e23d5ef;hp=b658ca806bdf5995525cf3beb7455dcfeb06c360;hpb=07ddaed2a657e4d2a3d038fed223fc5827159caf;p=supertux.git diff --git a/src/badguy/angrystone.hpp b/src/badguy/angrystone.hpp index b658ca806..1a46e0c72 100644 --- a/src/badguy/angrystone.hpp +++ b/src/badguy/angrystone.hpp @@ -1,7 +1,7 @@ // $Id$ // // AngryStone - A spiked block that charges towards the player -// Copyright (C) 2006 Christoph Sommer +// Copyright (C) 2006 Christoph Sommer // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License @@ -28,13 +28,14 @@ class AngryStone : public BadGuy public: AngryStone(const lisp::Lisp& reader); - void activate(); void write(lisp::Writer& writer); - HitResponse collision_solid(GameObject& other, const CollisionHit& hit); + void collision_solid(const CollisionHit& hit); HitResponse collision_badguy(BadGuy& badguy, const CollisionHit& hit); void active_update(float elapsed_time); void kill_fall(); + virtual AngryStone* clone() const { return new AngryStone(*this); } + protected: Vector attackDirection; /**< 1-normalized vector of current attack direction */ Vector oldWallDirection; /**< if wall was hit during last attack: 1-normalized vector of last attack direction, (0,0) otherwise */ @@ -48,7 +49,7 @@ protected: RECOVERING }; AngryStoneState state; - + }; #endif