X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Fscripting%2Ffunctions.hpp;h=4793cdbfa22f98740f914d2c8c334f8d3958edf0;hb=fc73efa7ff699fe3c9c237845b6f4fda0d999862;hp=eacb469f9a9f4e605966d7e392f76e96d5487b15;hpb=c0c4838b917943354c150d56ab970ca249267037;p=supertux.git diff --git a/src/scripting/functions.hpp b/src/scripting/functions.hpp index eacb469f9..4793cdbfa 100644 --- a/src/scripting/functions.hpp +++ b/src/scripting/functions.hpp @@ -1,7 +1,7 @@ -// $Id: main.cpp 3275 2006-04-09 00:32:34Z sommer $ -// +// $Id$ +// // SuperTux -// Copyright (C) 2005 Matthias Braun +// 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 @@ -12,11 +12,11 @@ // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // 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. +// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + #ifndef __FUNCTIONS_H__ #define __FUNCTIONS_H__ @@ -100,6 +100,65 @@ void add_key(int new_key); */ void debug_collrects(bool enable); +/** + * enable/disable drawing of fps + */ +void debug_draw_fps(bool enable); + +/** + * enable/disable drawing of non-solid layers + */ +void debug_draw_solids_only(bool enable); + +/** + * speeds Tux up + */ +void grease(); + +/** + * makes Tux invincible for 10000 units of time + */ +void invincible(); + +/** + * recall Tux's invincibility + */ +void mortal(); + +/** + * hurt Tux (kill when Small Tux, otherwise lose powerup or shrink) + */ +void shrink(); + +/** + * kill Tux + */ +void kill(); + +/** + * reinitialise and respawn Tux at the beginning of the current level + */ +void restart(); + +/** + * print Tux's current coordinates in a level + */ +void whereami(); + +/** + * move Tux near the end of the level + */ +void gotoend(); + +/** + * show the camera's coordinates + */ +void camera(); + +/** + * exit the game + */ +void quit(); } #endif