X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fscripting%2Ffunctions.hpp;h=cd139c25c897a2f5f33eacbf29e5f50d93ea1279;hb=1240eda3ac57e6607b206e3c9cf7feb65c3be620;hp=4496c13794a8ea73abc8a375ae25a78094ebd19d;hpb=833262574362dd0bc62a6bc5765edfa9f257f55c;p=supertux.git diff --git a/src/scripting/functions.hpp b/src/scripting/functions.hpp index 4496c1379..cd139c25c 100644 --- a/src/scripting/functions.hpp +++ b/src/scripting/functions.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,20 +12,20 @@ // 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 __FUNCTIONS_H__ -#define __FUNCTIONS_H__ +#ifndef HEADER_SUPERTUX_SCRIPTING_FUNCTIONS_HPP +#define HEADER_SUPERTUX_SCRIPTING_FUNCTIONS_HPP #ifndef SCRIPTING_API +#include +#include + #define __suspend #define __custom(x) -#include #endif -namespace Scripting -{ +namespace scripting { /** * Display the value of the argument. This is useful for inspecting tables. @@ -110,11 +108,6 @@ void import(HSQUIRRELVM v, const std::string& filename); void save_state(); /** - * Update worldmap from worldmap state (state.world variable) - */ -void update_worldmap(); - -/** * enable/disable drawing of collision rectangles */ void debug_collrects(bool enable); @@ -130,6 +123,11 @@ void debug_show_fps(bool enable); void debug_draw_solids_only(bool enable); /** + * enable/disable drawing of editor images + */ +void debug_draw_editor_images(bool enable); + +/** * enable/disable worldmap ghost mode */ void debug_worldmap_ghost(bool enable); @@ -214,6 +212,8 @@ void record_demo(const std::string& filename); */ void play_demo(const std::string& filename); -} +} // namespace scripting #endif + +/* EOF */