X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fobject%2Fendsequence_walkleft.cpp;h=268db70427e10ebd24b0863ac582dcd4477bd465;hb=a97a839d6e0dad2acfa327ae320bba41183cdd55;hp=bf871054c1fc7cef9fb3827964b486ae036fa182;hpb=fea3446f05e1e7673607b835c269d3e8d1929ab3;p=supertux.git diff --git a/src/object/endsequence_walkleft.cpp b/src/object/endsequence_walkleft.cpp index bf871054c..268db7042 100644 --- a/src/object/endsequence_walkleft.cpp +++ b/src/object/endsequence_walkleft.cpp @@ -1,12 +1,10 @@ -// $Id$ -// // SuperTux - End Sequence: Tux walks right // 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,17 +12,18 @@ // 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 . -#include -#include "endsequence_walkleft.hpp" -#include "sector.hpp" -#include "mainloop.hpp" +#include "object/endsequence_walkleft.hpp" #include "object/player.hpp" +#include "supertux/globals.hpp" +#include "supertux/screen_manager.hpp" +#include "supertux/sector.hpp" -EndSequenceWalkLeft::EndSequenceWalkLeft() -: EndSequence() +EndSequenceWalkLeft::EndSequenceWalkLeft() : + EndSequence(), + last_x_pos(), + endsequence_timer() { } @@ -42,7 +41,7 @@ EndSequenceWalkLeft::starting() { EndSequence::starting(); last_x_pos = -1; - endsequence_timer.start(7.3f * main_loop->get_speed()); + endsequence_timer.start(7.3f * ScreenManager::current()->get_speed()); } void @@ -68,3 +67,5 @@ EndSequenceWalkLeft::stopping() { EndSequence::stopping(); } + +/* EOF */