X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fscripting%2Fdisplay_effect.hpp;h=7ba55d26e95f0bf6fe59f64a4741d6cda010d1b1;hb=0b73428a8a9e9563cb196e4b13167de3ec5f6b02;hp=3365b09116a6e56745e6379d282b5e4b196d9433;hpb=fea3446f05e1e7673607b835c269d3e8d1929ab3;p=supertux.git diff --git a/src/scripting/display_effect.hpp b/src/scripting/display_effect.hpp index 3365b0911..7ba55d26e 100644 --- a/src/scripting/display_effect.hpp +++ b/src/scripting/display_effect.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,41 +12,41 @@ // 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 __SCRIPTING_DISPLAY_EFFECT_H__ -#define __SCRIPTING_DISPLAY_EFFECT_H__ +#ifndef HEADER_SUPERTUX_SCRIPTING_DISPLAY_EFFECT_HPP +#define HEADER_SUPERTUX_SCRIPTING_DISPLAY_EFFECT_HPP -namespace Scripting -{ +namespace scripting { class DisplayEffect { public: #ifndef SCRIPTING_API - virtual ~DisplayEffect() - {} + virtual ~DisplayEffect() + {} #endif - /// fade display to black - virtual void fade_out(float fadetime) = 0; - /// fade display from black to normal - virtual void fade_in(float fadetime) = 0; - /// set display black (or back to normal) - virtual void set_black(bool enabled) = 0; - /// check if display is set to black - virtual bool is_black() = 0; - /// set black borders for cutscenes - virtual void sixteen_to_nine(float fadetime) = 0; - /// deactivate borders - virtual void four_to_three(float fadetime) = 0; - - // fade display until just a small visible circle is left - // (like what happens in some cartoons at the end) - // void shrink_fade(Vector goal, float radius, float fadetime); + /// fade display to black + virtual void fade_out(float fadetime) = 0; + /// fade display from black to normal + virtual void fade_in(float fadetime) = 0; + /// set display black (or back to normal) + virtual void set_black(bool enabled) = 0; + /// check if display is set to black + virtual bool is_black() = 0; + /// set black borders for cutscenes + virtual void sixteen_to_nine(float fadetime) = 0; + /// deactivate borders + virtual void four_to_three(float fadetime) = 0; + + // fade display until just a small visible circle is left + // (like what happens in some cartoons at the end) + // void shrink_fade(Vector goal, float radius, float fadetime); }; } #endif + +/* EOF */