// 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 SUPERTUX_BACKGROUND_H
#define SUPERTUX_BACKGROUND_H
#include "video/surface.h"
#include "video/drawing_context.h"
-#include "special/game_object.h"
-#include "utils/lispreader.h"
+#include "game_object.h"
#include "serializable.h"
class DisplayManager;
+namespace lisp {
+class Lisp;
+}
+
class Background : public GameObject, public Serializable
{
public:
Background();
- Background(LispReader& reader);
+ Background(const lisp::Lisp& reader);
virtual ~Background();
- virtual void write(LispWriter& writer);
+ virtual void write(lisp::Writer& writer);
void set_image(const std::string& name, float bkgd_speed);
Color get_gradient_bottom() const
{ return gradient_bottom; }
- virtual void action(float elapsed_time);
+ virtual void update(float elapsed_time);
virtual void draw(DrawingContext& context);