#include "scripting/functions.hpp"
#include "audio/sound_manager.hpp"
#include "math/random_generator.hpp"
#include "object/camera.hpp"
#include "object/player.hpp"
#include "physfs/ifile_stream.hpp"
#include "supertux/fadeout.hpp"
#include "supertux/game_session.hpp"
#include "supertux/gameconfig.hpp"
#include "supertux/globals.hpp"
#include "supertux/screen_manager.hpp"
#include "supertux/sector.hpp"
#include "supertux/shrinkfade.hpp"
#include "supertux/textscroller.hpp"
#include "supertux/tile.hpp"
#include "supertux/world.hpp"
#include "util/gettext.hpp"
#include "worldmap/tux.hpp"
#include "scripting/squirrel_util.hpp"
#include "scripting/time_scheduler.hpp"
Go to the source code of this file.
Namespaces | |
namespace | scripting |
Functions | |
SQInteger | scripting::display (HSQUIRRELVM vm) __custom("t.") |
Display the value of the argument. | |
void | scripting::print_stacktrace (HSQUIRRELVM vm) |
Displays contents of the current stack. | |
SQInteger | scripting::get_current_thread (HSQUIRRELVM vm) __custom("t") |
returns the currently running thread | |
void | scripting::wait (HSQUIRRELVM vm, float seconds) __suspend |
Suspend the script execution for the specified number of seconds. | |
void | scripting::wait_for_screenswitch (HSQUIRRELVM vm) __suspend |
Suspend the script execution until the current screen has been changed. | |
void | scripting::exit_screen () |
Exits the currently running screen (force exit from worldmap or scrolling text for example). | |
void | scripting::fadeout_screen (float seconds) |
Does a fadeout for the specified number of seconds before next screenchange. | |
void | scripting::shrink_screen (float dest_x, float dest_y, float seconds) |
Does a shrinking fade towards the destposition for the specified number of seconds before next screenchange. | |
void | scripting::abort_screenfade () |
Aborts any kind of previous screen fade; the screenchange will happen anyway. | |
std::string | scripting::translate (const std::string &text) |
Translate a text into the users language (by looking it up in the .po files). | |
void | scripting::display_text_file (const std::string &filename) |
Display a text file and scrolls it over the screen (on next screenswitch). | |
void | scripting::load_worldmap (const std::string &filename) |
Load and display a worldmap (on next screenswitch). | |
void | scripting::load_level (const std::string &filename) |
Load and display a level (on next screenswitch). | |
void | scripting::import (HSQUIRRELVM v, const std::string &filename) |
Load a script file and executes it. | |
void | scripting::debug_collrects (bool enable) |
enable/disable drawing of collision rectangles | |
void | scripting::debug_show_fps (bool enable) |
enable/disable drawing of fps | |
void | scripting::debug_draw_solids_only (bool enable) |
enable/disable drawing of non-solid layers | |
void | scripting::debug_draw_editor_images (bool enable) |
enable/disable drawing of editor images | |
void | scripting::debug_worldmap_ghost (bool enable) |
enable/disable worldmap ghost mode | |
void | scripting::save_state () |
Save world state to savegame. | |
void | scripting::update_worldmap () |
Update worldmap from worldmap state (state.world variable). | |
bool | scripting::validate_sector_player () |
void | scripting::play_music (const std::string &musicfile) |
Changes music to musicfile. | |
void | scripting::play_sound (const std::string &soundfile) |
Plays a soundfile. | |
void | scripting::grease () |
speeds Tux up | |
void | scripting::invincible () |
makes Tux invincible for 10000 units of time | |
void | scripting::ghost () |
makes Tux a ghost, i.e. | |
void | scripting::mortal () |
recall Tux's invincibility and ghost status | |
void | scripting::restart () |
reinitialise and respawn Tux at the beginning of the current level | |
void | scripting::whereami () |
print Tux's current coordinates in a level | |
void | scripting::gotoend () |
move Tux near the end of the level | |
void | scripting::camera () |
show the camera's coordinates | |
void | scripting::set_gamma (float gamma) |
adjust gamma | |
void | scripting::quit () |
exit the game | |
int | scripting::rand () |
Returns a random integer. | |
void | scripting::set_game_speed (float speed) |
Set the game_speed. | |
void | scripting::record_demo (const std::string &filename) |
Record a demo to the given file. | |
void | scripting::play_demo (const std::string &filename) |
Play back a demo from the given file. |