// $Id: angrystone.cpp 2979 2006-01-10 00:00:04Z matzebraun $
//
-// SuperTux
-// Copyright (C) 2005 Matthias Braun <matze@braunis.de>
+// AngryStone - A spiked block that charges towards the player
+// Copyright (C) 2006 Christoph Sommer <supertux@2006.expires.deltadevelopment.de>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
return CONTINUE;
}
+void
+AngryStone::kill_fall()
+{
+ //prevents AngryStone from getting killed by other enemies or the player
+}
+
HitResponse
AngryStone::collision_badguy(BadGuy& badguy, const CollisionHit& )
{
// $Id: angrystone.hpp 2642 2005-06-26 13:38:53Z matzebraun $
//
-// SuperTux
-// Copyright (C) 2005 Matthias Braun <matze@braunis.de>
+// AngryStone - A spiked block that charges towards the player
+// Copyright (C) 2006 Christoph Sommer <supertux@2006.expires.deltadevelopment.de>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
HitResponse collision_solid(GameObject& other, const CollisionHit& hit);
HitResponse collision_badguy(BadGuy& badguy, const CollisionHit& hit);
void active_update(float elapsed_time);
+ void kill_fall();
protected:
Vector attackDirection; /**< 1-normalized vector of current attack direction */