4 // Copyright (C) 2000 Bill Kendrick <bill@newbreedsoftware.com>
5 // Copyright (C) 2004 Tobias Glaesser <tobi.web@gmx.de>
7 // This program is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU General Public License
9 // as published by the Free Software Foundation; either version 2
10 // of the License, or (at your option) any later version.
12 // This program is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU General Public License for more details.
17 // You should have received a copy of the GNU General Public License
18 // along with this program; if not, write to the Free Software
19 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21 #ifndef SUPERTUX_GAMEOBJS_H
22 #define SUPERTUX_GAMEOBJS_H
24 #include "video/surface.hpp"
27 #include "game_object.hpp"
28 #include "moving_object.hpp"
29 #include "serializable.hpp"
30 #include "video/color.hpp"
32 /* Bounciness of distros: */
38 class BouncyCoin : public GameObject
41 BouncyCoin(const Vector& pos);
43 virtual void update(float elapsed_time);
44 virtual void draw(DrawingContext& context);
52 class BrokenBrick : public GameObject
55 BrokenBrick(Sprite* sprite, const Vector& pos, const Vector& movement);
58 virtual void update(float elapsed_time);
59 virtual void draw(DrawingContext& context);
68 class FloatingText : public GameObject
71 FloatingText(const Vector& pos, const std::string& text_);
72 FloatingText(const Vector& pos, int s); // use this for score, for instance
74 virtual void update(float elapsed_time);
75 virtual void draw(DrawingContext& context);
83 class SmokeCloud : public GameObject
86 SmokeCloud(const Vector& pos);
89 virtual void update(float elapsed_time);
90 virtual void draw(DrawingContext& context);
100 /* Local Variables: */