X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fobject%2Fbicycle_platform.hpp;h=569b16a68983735a99324a77e90414e488bd4535;hb=78ac7aef674f518549f96160c6354b589553f952;hp=2dcd7790ad24d18f5983fb51b66c610cf7142107;hpb=fea3446f05e1e7673607b835c269d3e8d1929ab3;p=supertux.git diff --git a/src/object/bicycle_platform.hpp b/src/object/bicycle_platform.hpp index 2dcd7790a..569b16a68 100644 --- a/src/object/bicycle_platform.hpp +++ b/src/object/bicycle_platform.hpp @@ -1,12 +1,10 @@ -// $Id$ -// // SuperTux - BicyclePlatform // Copyright (C) 2007 Christoph Sommer // -// 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,18 +12,12 @@ // 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 __BICYCLE_PLATFORM_H__ -#define __BICYCLE_PLATFORM_H__ +#ifndef HEADER_SUPERTUX_OBJECT_BICYCLE_PLATFORM_HPP +#define HEADER_SUPERTUX_OBJECT_BICYCLE_PLATFORM_HPP -#include -#include -#include #include "object/moving_sprite.hpp" -#include "object/path.hpp" -#include "object/path_walker.hpp" /** * Used to construct a pair of bicycle platforms: If one is pushed down, the other one rises @@ -33,7 +25,7 @@ class BicyclePlatform : public MovingSprite { public: - BicyclePlatform(const lisp::Lisp& reader); + BicyclePlatform(const Reader& reader); BicyclePlatform(BicyclePlatform* master); virtual ~BicyclePlatform(); @@ -50,6 +42,11 @@ protected: std::set contacts; /**< objects that are currently pushing on the platform */ float momentum; /** angular momentum in rad per second per second*/ +private: + BicyclePlatform(const BicyclePlatform&); + BicyclePlatform& operator=(const BicyclePlatform&); }; #endif + +/* EOF */