X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fobject%2Fcoin.h;h=949ebfc7d34caf44198d8b3571cb390904ba6014;hb=c0093d25093395cb62fc2526ab42be65a9f015b8;hp=a4157a4c4a5beff0140f2c31a21e29dc414e8da2;hpb=d46c78c842ab4090a3f46e560c891234167f124b;p=supertux.git diff --git a/src/object/coin.h b/src/object/coin.h index a4157a4c4..949ebfc7d 100644 --- a/src/object/coin.h +++ b/src/object/coin.h @@ -1,11 +1,30 @@ +// $Id$ +// +// SuperTux +// Copyright (C) 2005 Matthias Braun +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// 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. + #ifndef __COIN_H__ #define __COIN_H__ -#include "special/moving_object.h" +#include "moving_object.h" +#include "lisp/lisp.h" -namespace SuperTux { - class Sprite; -} +class Sprite; using namespace SuperTux; @@ -13,11 +32,14 @@ class Coin : public MovingObject { public: Coin(const Vector& pos); + Coin(const lisp::Lisp& reader); ~Coin(); - virtual HitResponse collision(GameObject& other, const CollisionHit& hit); - virtual void action(float elapsed_time); - virtual void draw(DrawingContext& context); + HitResponse collision(GameObject& other, const CollisionHit& hit); + void action(float elapsed_time); + void draw(DrawingContext& context); + + void collect(); private: Sprite* sprite;