X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fbadguy%2Fjumpy.hpp;h=b0f9e3ebd173724fa835963fde150b3e099d466f;hb=7a6f00e27bdc0aac2107506c3b00cbf0bf1cccc5;hp=96360c625a6663bcaf9dceef0a3c8a5801f0a115;hpb=5b7f9214cb929399f1a855ef5807018a9447d510;p=supertux.git diff --git a/src/badguy/jumpy.hpp b/src/badguy/jumpy.hpp index 96360c625..b0f9e3ebd 100644 --- a/src/badguy/jumpy.hpp +++ b/src/badguy/jumpy.hpp @@ -1,7 +1,7 @@ // $Id$ -// +// // SuperTux -// Copyright (C) 2005 Matthias Braun +// Copyright (C) 2006 Matthias Braun // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License @@ -12,11 +12,11 @@ // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. -// +// // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -// 02111-1307, USA. +// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + #ifndef __JUMPY_H__ #define __JUMPY_H__ @@ -27,12 +27,17 @@ class Jumpy : public BadGuy public: Jumpy(const lisp::Lisp& reader); - HitResponse collision_solid(GameObject& other, const CollisionHit& hit); + void collision_solid(const CollisionHit& hit); HitResponse collision_badguy(BadGuy& other, const CollisionHit& hit); void write(lisp::Writer& writer); void active_update(float); + void freeze(); + bool is_freezable() const; + + virtual Jumpy* clone() const { return new Jumpy(*this); } + private: HitResponse hit(const CollisionHit& hit); Vector pos_groundhit; @@ -40,4 +45,3 @@ private: }; #endif -