X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fobject%2Fcoin.hpp;h=16d04c94e72648e235cd10393e27f20370b196f6;hb=5745d9670262c91e6cd35363fd0d2ec169e7c8a4;hp=e4f3d9b99f63e9f517ee7be460ee14392be0b2e1;hpb=5b7f9214cb929399f1a855ef5807018a9447d510;p=supertux.git diff --git a/src/object/coin.hpp b/src/object/coin.hpp index e4f3d9b99..16d04c94e 100644 --- a/src/object/coin.hpp +++ b/src/object/coin.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,35 +12,26 @@ // 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 __COIN_H__ #define __COIN_H__ -#include "moving_object.hpp" +#include "moving_sprite.hpp" #include "lisp/lisp.hpp" -class Sprite; - -class Coin : public MovingObject +class Coin : public MovingSprite { public: Coin(const Vector& pos); Coin(const lisp::Lisp& reader); - ~Coin(); HitResponse collision(GameObject& other, const CollisionHit& hit); - void update(float elapsed_time); - void draw(DrawingContext& context); void collect(); - -private: - Sprite* sprite; }; #endif -