Simutrans-Squirrel-API OTRP v63_4
Loading...
Searching...
No Matches
api_skeleton.cc File Reference

Go to the source code of this file.

Functions

void start ()
void start (int pl_num)
void resume_game ()
void resume_game (int pl_num)
void step ()
void new_month ()
void new_year ()
string get_map_file ()
string get_about_text (integer pl)
string get_rule_text (integer pl)
string get_goal_text (integer pl)
string get_info_text (integer pl)
string get_result_text (integer pl)
string get_debug_text (integer pl)
string get_api_version ()
integer is_scenario_completed (integer pl)
bool is_tool_allowed (integer pl, integer tool_id, way_types wt)
string is_work_allowed_here (integer pl, integer tool_id, coord3d pos)
string is_schedule_allowed (integer pl, schedule_x schedule)
string is_convoy_allowed (integer pl, convoy_x convoy, depot_x depot)
string jump_to_link_executed (coord3d pos)
bool init (player_x pl)
bool exit (player_x pl)
string work (player_x pl, coord3d pos, int keys)
string do_work (player_x pl, coord3d start, coord3d end, int keys)
void mark_tiles (player_x pl, coord3d start, coord3d end, int keys)
bool mark_tile (coord3d pos)
integer is_valid_pos (player_x pl, coord3d pos, coord3d start)

Detailed Description

Documents the necessary functions to be implemented by a script

Definition in file api_skeleton.cc.