X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fobject%2Fgradient.hpp;h=aab61be057462408ee1e2afb44ad39a7b89705b5;hb=78ac7aef674f518549f96160c6354b589553f952;hp=6feba31804d2c90c9c3256988c7e0d129752b332;hpb=a113d3bd1feddd510e3b2852b0d42522735eee40;p=supertux.git diff --git a/src/object/gradient.hpp b/src/object/gradient.hpp index 6feba3180..aab61be05 100644 --- a/src/object/gradient.hpp +++ b/src/object/gradient.hpp @@ -1,12 +1,10 @@ -// $Id$ -// // SuperTux // 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 -// as published by the Free Software Foundation; either version 2 -// of the License, or (at your option) any later version. +// 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 3 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 @@ -14,33 +12,24 @@ // 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. +// along with this program. If not, see . -#ifndef SUPERTUX_GRADIENT_H -#define SUPERTUX_GRADIENT_H +#ifndef HEADER_SUPERTUX_OBJECT_GRADIENT_HPP +#define HEADER_SUPERTUX_OBJECT_GRADIENT_HPP -#include -#include "video/surface.hpp" +#include "supertux/game_object.hpp" +#include "util/reader_fwd.hpp" #include "video/drawing_context.hpp" -#include "game_object.hpp" -#include "serializable.hpp" class DisplayManager; -namespace lisp { -class Lisp; -} - -class Gradient : public GameObject, public Serializable +class Gradient : public GameObject { public: Gradient(); - Gradient(const lisp::Lisp& reader); + Gradient(const Reader& reader); virtual ~Gradient(); - virtual void write(lisp::Writer& writer); - void set_gradient(Color top, Color bottom); Color get_gradient_top() const @@ -55,7 +44,10 @@ public: private: int layer; - Color gradient_top, gradient_bottom; + Color gradient_top; + Color gradient_bottom; }; #endif /*SUPERTUX_BACKGROUND_H*/ + +/* EOF */