X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fobject%2Fcoin.h;h=3befd26b386273778ae1d488c276e09147c79a24;hb=d8496f30a608d6827fefdfe33234acb6f4d8f0fe;hp=a4157a4c4a5beff0140f2c31a21e29dc414e8da2;hpb=d46c78c842ab4090a3f46e560c891234167f124b;p=supertux.git diff --git a/src/object/coin.h b/src/object/coin.h index a4157a4c4..3befd26b3 100644 --- a/src/object/coin.h +++ b/src/object/coin.h @@ -1,23 +1,42 @@ +// $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; -} - -using namespace SuperTux; +class Sprite; 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;