Open source remastering of the Freespace 2 engine
scripting.cpp File Reference
#include <stdio.h>
#include <stdarg.h>
#include "bmpman/bmpman.h"
#include "controlconfig/controlsconfig.h"
#include "freespace2/freespace.h"
#include "gamesequence/gamesequence.h"
#include "globalincs/systemvars.h"
#include "globalincs/version.h"
#include "hud/hud.h"
#include "io/key.h"
#include "mission/missioncampaign.h"
#include "parse/parselo.h"
#include "parse/scripting.h"
#include "ship/ship.h"
#include "weapon/beam.h"
#include "weapon/weapon.h"

Go to the source code of this file.


void script_hook_init (script_hook *hook)
bool script_hook_valid (script_hook *hook)
void script_parse_table (const char *filename)
void script_init ()
int ade_set_object_with_breed (lua_State *L, int obj_idx)
int script_parse_condition ()
flag_def_listscript_parse_action ()
void scripting_state_init ()
void scripting_state_close ()
void scripting_state_do_frame (float frametime)


script_state Script_system ("FS2_Open Scripting")
bool Output_scripting_meta = false
script_hook Script_splashhook
script_hook Script_simulationhook
script_hook Script_hudhook
script_hook Script_globalhook
script_hook Script_gameinithook
flag_def_list Script_conditions []
int Num_script_conditions = sizeof(Script_conditions)/sizeof(flag_def_list)
flag_def_list Script_actions []
int Num_script_actions = sizeof(Script_actions)/sizeof(flag_def_list)
int scripting_state_inited = 0
char Game_current_mission_filename []

Function Documentation

int ade_set_object_with_breed ( lua_State *  L,
int  obj_idx 

Definition at line 15770 of file lua.cpp.

void script_hook_init ( script_hook hook)

Definition at line 97 of file scripting.cpp.

bool script_hook_valid ( script_hook hook)

Definition at line 107 of file scripting.cpp.

void script_init ( )

Definition at line 188 of file scripting.cpp.

flag_def_list* script_parse_action ( )

Definition at line 1326 of file scripting.cpp.

int script_parse_condition ( )

Definition at line 1314 of file scripting.cpp.

void script_parse_table ( const char *  filename)

Definition at line 112 of file scripting.cpp.

void scripting_state_close ( )

Definition at line 1436 of file scripting.cpp.

void scripting_state_do_frame ( float  frametime)

Definition at line 1446 of file scripting.cpp.

void scripting_state_init ( )

Definition at line 1425 of file scripting.cpp.

Variable Documentation

char Game_current_mission_filename[]

Definition at line 26 of file fredstubs.cpp.

int Num_script_actions = sizeof(Script_actions)/sizeof(flag_def_list)

Definition at line 91 of file scripting.cpp.

int Num_script_conditions = sizeof(Script_conditions)/sizeof(flag_def_list)

Definition at line 46 of file scripting.cpp.

bool Output_scripting_meta = false

Definition at line 21 of file scripting.cpp.

flag_def_list Script_actions[]

Definition at line 48 of file scripting.cpp.

flag_def_list Script_conditions[]
Initial value:
{"State", CHC_STATE, 0},
{"Campaign", CHC_CAMPAIGN, 0},
{"Mission", CHC_MISSION, 0},
{"Object Type", CHC_OBJECTTYPE, 0},
{"Ship", CHC_SHIP, 0},
{"Ship class", CHC_SHIPCLASS, 0},
{"Ship type", CHC_SHIPTYPE, 0},
{"Weapon class",CHC_WEAPONCLASS, 0},
{"KeyPress", CHC_KEYPRESS, 0},
{"Action", CHC_ACTION, 0},
{"Version", CHC_VERSION, 0},
{"Application", CHC_APPLICATION, 0}
Definition: scripting.h:34
#define CHC_SHIP
Definition: scripting.h:29
Definition: scripting.h:30
Definition: scripting.h:39
Definition: scripting.h:36
Definition: scripting.h:31
Definition: scripting.h:28
#define CHC_STATE
Definition: scripting.h:32
Definition: scripting.h:35
Definition: scripting.h:38
Definition: scripting.h:33
#define CHC_ACTION
Definition: scripting.h:37

Definition at line 30 of file scripting.cpp.

script_hook Script_gameinithook

Definition at line 28 of file scripting.cpp.

script_hook Script_globalhook

Definition at line 27 of file scripting.cpp.

script_hook Script_hudhook

Definition at line 26 of file scripting.cpp.

script_hook Script_simulationhook

Definition at line 25 of file scripting.cpp.

script_hook Script_splashhook

Definition at line 24 of file scripting.cpp.

script_state Script_system("FS2_Open Scripting")
int scripting_state_inited = 0

Definition at line 92 of file scripting.cpp.