| 1 | // SuperTux |
|---|---|
| 2 | // Copyright (C) 2015 Ingo Ruhnke <grumbel@gmail.com> |
| 3 | // |
| 4 | // This program is free software: you can redistribute it and/or modify |
| 5 | // it under the terms of the GNU General Public License as published by |
| 6 | // the Free Software Foundation, either version 3 of the License, or |
| 7 | // (at your option) any later version. |
| 8 | // |
| 9 | // This program is distributed in the hope that it will be useful, |
| 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | // GNU General Public License for more details. |
| 13 | // |
| 14 | // You should have received a copy of the GNU General Public License |
| 15 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 16 | |
| 17 | #include "scripting/display_effect.hpp" |
| 18 | |
| 19 | #include "object/display_effect.hpp" |
| 20 | |
| 21 | namespace scripting { |
| 22 | |
| 23 | void |
| 24 | DisplayEffect::fade_out(float fadetime) |
| 25 | { |
| 26 | SCRIPT_GUARD_VOID; |
| 27 | object.fade_out(fadetime); |
| 28 | } |
| 29 | |
| 30 | void |
| 31 | DisplayEffect::fade_in(float fadetime) |
| 32 | { |
| 33 | SCRIPT_GUARD_VOID; |
| 34 | object.fade_in(fadetime); |
| 35 | } |
| 36 | |
| 37 | void |
| 38 | DisplayEffect::set_black(bool enabled) |
| 39 | { |
| 40 | SCRIPT_GUARD_VOID; |
| 41 | object.set_black(enabled); |
| 42 | } |
| 43 | |
| 44 | bool |
| 45 | DisplayEffect::is_black() const |
| 46 | { |
| 47 | SCRIPT_GUARD_DEFAULT; |
| 48 | return object.is_black(); |
| 49 | } |
| 50 | |
| 51 | void |
| 52 | DisplayEffect::sixteen_to_nine(float fadetime) |
| 53 | { |
| 54 | SCRIPT_GUARD_VOID; |
| 55 | object.sixteen_to_nine(fadetime); |
| 56 | } |
| 57 | |
| 58 | void |
| 59 | DisplayEffect::four_to_three(float fadetime) |
| 60 | { |
| 61 | SCRIPT_GUARD_VOID; |
| 62 | object.four_to_three(fadetime); |
| 63 | } |
| 64 | |
| 65 | } // namespace scripting |
| 66 | |
| 67 | /* EOF */ |
| 68 |