#include "globals.h"
Go to the source code of this file.
Data Structures | |
struct | DK_SCRIPT_COMMAND |
struct | SCRIPT_VERIFY_DATA |
Defines | |
#define | ALL_DNGNS_DESTROYED 0x001 |
#define | CRTRS_SCAVNG_GAINED 0x002 |
#define | CRTRS_SCAVNG_LOST 0x003 |
#define | DOORS_DESTROYED 0x004 |
#define | TOTAL_GOLD_MINED 0x005 |
#define | DNGN_DESTROYED 0x006 |
#define | GOLD_POTS_STOLEN 0x007 |
#define | TIMES_BROKEN_INTO 0x008 |
#define | SPELLS_STOLEN 0x009 |
#define | ROOMS_DESTROYED 0x00a |
#define | BATTLES_WON 0x00b |
#define | BATTLES_LOST 0x00c |
#define | CREATRS_ANNOYED 0x00d |
#define | TOTAL_CREATRS_LEFT 0x00e |
#define | TOTAL_AREA 0x00f |
#define | TOTAL_DOORS 0x010 |
#define | TOTAL_RESEARCH 0x011 |
#define | TOTAL_CREATRS 0x012 |
#define | TOTAL_IMPS 0x013 |
#define | BREAK_IN 0x014 |
#define | GAME_TURN 0x015 |
#define | MONEY 0x016 |
#define | OBJCTV_DEFEND_PARTY 0x00a |
#define | OBJCTV_ATTACK_ROOMS 0x009 |
#define | OBJCTV_ATTACK_DNHEART 0x008 |
#define | OBJCTV_ENEMIES 0x007 |
#define | OBJCTV_STEAL_SPELLS 0x006 |
#define | OBJCTV_STEAL_GOLD 0x005 |
#define | OBJCTV_APPROP_DUNG 0x004 |
#define | OBJCTV_DNHEART 0x003 |
#define | OBJCTV_DUNGEON 0x002 |
#define | OBJCTV_ACTNPT 0x001 |
#define | FLAG7 0x007 |
#define | FLAG6 0x006 |
#define | FLAG5 0x005 |
#define | FLAG4 0x004 |
#define | FLAG3 0x003 |
#define | FLAG2 0x002 |
#define | FLAG1 0x001 |
#define | FLAG0 0x000 |
#define | TIMER7 0x007 |
#define | TIMER6 0x006 |
#define | TIMER5 0x005 |
#define | TIMER4 0x004 |
#define | TIMER3 0x003 |
#define | TIMER2 0x002 |
#define | TIMER1 0x001 |
#define | TIMER0 0x000 |
#define | OPER_EQU 0x001 |
#define | OPER_NEQ 0x002 |
#define | OPER_LESS 0x003 |
#define | OPER_GRTR 0x004 |
#define | OPER_LESSEQ 0x005 |
#define | OPER_GRTREQ 0x006 |
#define | COMP_SELL_TRAPSDOORS 0x001 |
#define | COMP_ATTACK_MAGIC 0x002 |
#define | COMP_WAIT_FOR_BRIDGE 0x003 |
#define | COMP_MAGIC_SPEED_UP 0x004 |
#define | COMP_DIG_TO_NEUTRAL 0x005 |
#define | COMP_SLAP_IMPS 0x006 |
#define | COMP_MOVE_CREATRS_TODEFENS 0x007 |
#define | COMP_MOVE_CREATRS_TOPOS 0x008 |
#define | COMP_MOVE_CREATRS_TOROOM 0x009 |
#define | COMP_PICKUP_FOR_ATTACK 0x00a |
#define | COMP_MAGIC_CALLARMS 0x00b |
#define | COMP_DIG_TOATTACK 0x00c |
#define | COMP_DIG_TOGOLD 0x00d |
#define | COMP_DIG_TOENTRNCE 0x00e |
#define | COMP_PLACE_ROOM 0x00f |
#define | COMP_CHECK_ROOM_DUG 0x010 |
#define | COMP_DIG_ROOM 0x011 |
#define | COMP_DIG_ROOM_PASSAGE 0x012 |
#define | MAX_PARTYS 16 |
#define | ERR_SCRIPTPARAM_WHOLE -9 |
#define | ERR_SCRIPTPARAM_NARGS -2 |
Typedefs | |
typedef int(* | func_cmd_index )(const char *cmdtext) |
typedef const char *(* | func_cmd_text )(int cmdidx) |
Enumerations | |
enum | cmd_groups { CMD_UNKNOWN = 0x000, CMD_CONDIT = 0x001, CMD_PARTY = 0x002, CMD_AVAIL = 0x003, CMD_CUSTOBJ = 0x004, CMD_SETUP = 0x005, CMD_TRIGER = 0x006, CMD_CRTRADJ = 0x007, CMD_COMMNT = 0x008, CMD_OBSOLT = 0x009, CMD_PAROBJ = 0x010, CMD_FLAG = 0x012, CMD_TIMER = 0x013, CMD_DOOR = 0x014, CMD_TRAP = 0x015, CMD_SPELL = 0x016, CMD_VARIBL = 0x017, CMD_OPERATR = 0x018, CMD_CREATR = 0x019, CMD_ROOM = 0x01a, CMD_COMP = 0x01b, CMD_PLAYER = 0x01c, CMD_SPECIAL = 0x01d, CMD_OBJTYPE = 0x01e, CMD_ORIENT = 0x0fe, CMD_ADIKTED = 0x0ff } |
enum | cmnds_condit { COND_IF = 0x001, IF_AVAILABLE = 0x002, IF_ACTNPT = 0x003, COND_ENDIF = 0x004 } |
enum | cmnds_party { CREATE_PARTY = 0x001, ADD_TUNNELER_TOLEV = 0x002, ADD_TO_PARTY = 0x003, ADD_PARTY_TOLEV = 0x004, ADD_CREATR_TOLEV = 0x005, ADD_TUNNELLER_PARTY_TOLEV = 0x006 } |
enum | cmnds_avail { ROOM_AVAIL = 0x001, CREATR_AVAIL = 0x002, MAGIC_AVAIL = 0x003, TRAP_AVAIL = 0x004, DOOR_AVAIL = 0x005 } |
enum | cmnds_custobj { DISPLAY_OBJECTV = 0x001, DISPLAY_OBJECTV_WPOS = 0x002, DISPLAY_INFO = 0x003, DISPLAY_INFO_WPOS = 0x004, BONUS_LEV_TIME = 0x005, TUTORIAL_FLASH_BTN = 0x006, QUICK_OBJECTV = 0x007, QUICK_INFO = 0x008 } |
enum | cmnds_setup { SET_GEN_SPEED = 0x001, START_MONEY = 0x002, RESEARCH = 0x003, COMP_PLAYER = 0x004, ALLY_PLAYERS = 0x005, SET_HATE = 0x006, SET_COMPUTER_GLOBALS = 0x007, SET_COMPUTER_CHECKS = 0x008, SET_COMPUTER_EVENT = 0x009, SET_COMPUTER_PROCESS = 0x00a, MAX_CREATURES = 0x00b } |
enum | cmnds_triger { RESET_ACTNPT = 0x001, NEXT_CMD_REUSABLE = 0x002, SET_FLAG = 0x003, SET_TIMER = 0x004, GAME_LOSE = 0x005, GAME_WIN = 0x006, SET_MUSIC = 0x007 } |
enum | cmnds_crtradj { DEAD_CREATURES_RET_TO_POOL = 0x001, ADD_CREATR_TO_POOL = 0x002, SET_CREATR_MAX_LEVEL = 0x003, SET_CREATR_STRENGTH = 0x004, SET_CREATR_HEALTH = 0x005, SET_CREATR_ARMOUR = 0x006, SET_CREATR_FEAR = 0x007, CREATR_SWAP = 0x008 } |
enum | cmnds_comnt { EMPTYLN = 0x001, CMNT_REM = 0x002 } |
enum | cmnds_obsolt { OBSOLT_PRINT = 0x001, CREATE_TEXT = 0x002 } |
enum | cmnds_special { SPEC_RANDOM = 0x001, SPEC_NUMBER = 0x002 } |
enum | cmnds_objtypes { OBJTYPE_CREATURE = 0x001, OBJTYPE_ROOM = 0x003, OBJTYPE_SPELL = 0x004 } |
enum | cmnds_adikted { CUSTOM_COLUMN = 0x001, DEFINE_GRAFFITI = 0x002, LEVEL_TIMESTAMP = 0x003, USER_CMNDS_COUNT = 0x004, LEVEL_VERSION = 0x005, LEVEL_NAME = 0x006, LEVEL_DESC = 0x007, LEVEL_AUTHORS = 0x008 } |
enum | object_available { AVAIL_NO = 0x000, AVAIL_RESEARCH = 0x001, AVAIL_INSTANT = 0x002 } |
Functions | |
DLLIMPORT short | decompose_script (struct DK_SCRIPT *script, const struct SCRIPT_OPTIONS *optns) |
DLLIMPORT short | recompose_script (struct DK_SCRIPT *script, const struct SCRIPT_OPTIONS *optns) |
DLLIMPORT short | recompute_script_levels (struct DK_SCRIPT *script) |
DLLIMPORT short | decompose_script_command (struct DK_SCRIPT_COMMAND *cmd, const char *text, const struct SCRIPT_OPTIONS *optns) |
DLLIMPORT char * | recompose_script_command (const struct DK_SCRIPT_COMMAND *cmd, const struct SCRIPT_OPTIONS *optns) |
short | renew_cmd_param (const struct DK_SCRIPT_COMMAND *cmd, const unsigned int param_idx, const struct SCRIPT_OPTIONS *optns) |
int | recognize_script_word_group_and_idx (int *index, const char *wordtxt, const short is_parameter) |
DLLIMPORT short | script_decomposed_to_params_cmd (struct DK_SCRIPT_PARAMETERS *par, struct DK_SCRIPT_COMMAND *cmd, const struct SCRIPT_OPTIONS *optns) |
DLLIMPORT short | script_decomposed_to_params (struct DK_SCRIPT *script, const struct SCRIPT_OPTIONS *optns) |
DLLIMPORT short | script_params_to_decomposed (struct DK_SCRIPT *script, const struct SCRIPT_OPTIONS *optns) |
DLLIMPORT short | execute_script_line (struct LEVEL *lvl, char *line, char *err_msg) |
DLLIMPORT short | add_stats_to_script (char ***lines, int *lines_count, struct LEVEL *lvl) |
DLLIMPORT short | add_graffiti_to_script (char ***lines, int *lines_count, struct LEVEL *lvl) |
DLLIMPORT short | dkscript_verify (const struct LEVEL *lvl, char *err_msg, int *err_line, int *err_param) |
DLLIMPORT short | txt_verify (const struct LEVEL *lvl, char *err_msg, struct IPOINT_2D *errpt) |
DLLIMPORT void | text_file_free (char **lines, int lines_count) |
DLLIMPORT int | text_file_line_add (char ***lines, int *lines_count, char *text) |
DLLIMPORT int | text_file_linecp_add (char ***lines, int *lines_count, char *text) |
int | adikted_cmd_arrsize () |
int | adikted_cmd_index (const char *cmdtext) |
DLLIMPORT const char * | adikted_cmd_text (int cmdidx) |
int | orient_cmd_arrsize () |
int | orient_cmd_index (const char *cmdtext) |
DLLIMPORT const char * | orient_cmd_text (int cmdidx) |
DLLIMPORT unsigned short | get_orientation_next (unsigned short orient) |
Returns orientation constant after the given one. | |
int | font_cmd_arrsize () |
int | font_cmd_index (const char *cmdtext) |
DLLIMPORT const char * | font_cmd_text (int cmdidx) |
int | condit_cmd_arrsize () |
int | condit_cmd_index (const char *cmdtext) |
DLLIMPORT const char * | condit_cmd_text (int cmdidx) |
int | party_cmd_arrsize () |
int | party_cmd_index (const char *cmdtext) |
DLLIMPORT const char * | party_cmd_text (int cmdidx) |
int | avail_cmd_arrsize () |
int | avail_cmd_index (const char *cmdtext) |
DLLIMPORT const char * | avail_cmd_text (int cmdidx) |
int | custobj_cmd_arrsize () |
int | custobj_cmd_index (const char *cmdtext) |
DLLIMPORT const char * | custobj_cmd_text (int cmdidx) |
int | setup_cmd_arrsize () |
int | setup_cmd_index (const char *cmdtext) |
DLLIMPORT const char * | setup_cmd_text (int cmdidx) |
int | triger_cmd_arrsize () |
int | triger_cmd_index (const char *cmdtext) |
DLLIMPORT const char * | triger_cmd_text (int cmdidx) |
int | crtradj_cmd_arrsize () |
int | crtradj_cmd_index (const char *cmdtext) |
DLLIMPORT const char * | crtradj_cmd_text (int cmdidx) |
int | obsolt_cmd_arrsize () |
int | obsolt_cmd_index (const char *cmdtext) |
DLLIMPORT const char * | obsolt_cmd_text (int cmdidx) |
int | commnt_cmd_arrsize () |
int | commnt_cmd_index (const char *cmdtext) |
DLLIMPORT const char * | commnt_cmd_text (int cmdidx) |
int | special_cmd_arrsize () |
int | special_cmd_index (const char *cmdtext) |
DLLIMPORT const char * | special_cmd_text (int cmdidx, const char *param) |
int | comp_plyr_cmd_arrsize () |
int | comp_plyr_cmd_index (const char *cmdtext) |
DLLIMPORT const char * | comp_plyr_cmd_text (int cmdidx) |
int | players_cmd_arrsize () |
int | players_cmd_index (const char *cmdtext) |
DLLIMPORT const char * | players_cmd_text (int cmdidx) |
int | creatures_cmd_arrsize () |
int | creatures_cmd_index (const char *cmdtext) |
DLLIMPORT const char * | creatures_cmd_text (int cmdidx) |
int | room_cmd_arrsize () |
int | room_cmd_index (const char *cmdtext) |
DLLIMPORT const char * | room_cmd_text (int cmdidx) |
int | spell_cmd_arrsize () |
int | spell_cmd_index (const char *cmdtext) |
DLLIMPORT const char * | spell_cmd_text (int cmdidx) |
DLLIMPORT const char * | spell_cmd_fullname (int cmdidx) |
int | trap_cmd_arrsize () |
int | trap_cmd_index (const char *cmdtext) |
DLLIMPORT const char * | trap_cmd_text (int cmdidx) |
DLLIMPORT const char * | trap_cmd_fullname (int cmdidx) |
int | door_cmd_arrsize () |
int | door_cmd_index (const char *cmdtext) |
DLLIMPORT const char * | door_cmd_text (int cmdidx) |
DLLIMPORT const char * | door_cmd_fullname (int cmdidx) |
int | objtype_cmd_arrsize () |
int | objtype_cmd_index (const char *cmdtext) |
DLLIMPORT const char * | objtype_cmd_text (int cmdidx) |
int | operator_cmd_arrsize () |
int | operator_cmd_index (const char *cmdtext) |
DLLIMPORT const char * | operator_cmd_text (int cmdidx) |
int | variabl_cmd_arrsize () |
int | variabl_cmd_index (const char *cmdtext) |
DLLIMPORT const char * | variabl_cmd_text (int cmdidx) |
int | timer_cmd_arrsize () |
int | timer_cmd_index (const char *cmdtext) |
DLLIMPORT const char * | timer_cmd_text (int cmdidx) |
int | flag_cmd_arrsize () |
int | flag_cmd_index (const char *cmdtext) |
DLLIMPORT const char * | flag_cmd_text (int cmdidx) |
int | party_objectv_cmd_arrsize () |
int | party_objectv_cmd_index (const char *cmdtext) |
DLLIMPORT const char * | party_objectv_cmd_text (int cmdidx) |
DLLIMPORT short | script_command_param_add (struct DK_SCRIPT_COMMAND *cmd, char *param) |
DLLIMPORT void | script_command_clear (struct DK_SCRIPT_COMMAND *cmd) |
DLLIMPORT struct DK_SCRIPT_COMMAND * | script_command_create (void) |
DLLIMPORT void | script_command_renew (struct DK_SCRIPT_COMMAND **cmd) |
DLLIMPORT void | script_command_free (struct DK_SCRIPT_COMMAND *cmd) |
DLLIMPORT char * | get_orientation_shortname (unsigned short orient) |
DLLIMPORT char * | get_font_longname (unsigned short font) |
Returns font name string for given font index. | |
DLLIMPORT short | script_param_to_int (int *val, const char *param) |
DLLIMPORT short | script_param_to_ulong (unsigned long *val, const char *param) |
DLLIMPORT const char * | script_cmd_text (const int group, const int cmdidx, const char *prev_val) |
DLLIMPORT short | is_no_bracket_command (int group, int cmdidx) |
DLLIMPORT char * | script_strword (const char *str, const short whole_rest) |
DLLIMPORT short | script_strword_pos (char const **ptr, unsigned int *ptr_len, const char *str, const short whole_rest) |
DLLIMPORT short | execute_adikted_command (struct LEVEL *lvl, struct DK_SCRIPT_COMMAND *cmd, char *err_msg) |
#define ALL_DNGNS_DESTROYED 0x001 |
#define BATTLES_LOST 0x00c |
#define BATTLES_WON 0x00b |
#define BREAK_IN 0x014 |
#define COMP_ATTACK_MAGIC 0x002 |
Definition at line 289 of file lev_script.h.
#define COMP_CHECK_ROOM_DUG 0x010 |
Definition at line 303 of file lev_script.h.
#define COMP_DIG_ROOM 0x011 |
Definition at line 304 of file lev_script.h.
#define COMP_DIG_ROOM_PASSAGE 0x012 |
Definition at line 305 of file lev_script.h.
#define COMP_DIG_TO_NEUTRAL 0x005 |
Definition at line 292 of file lev_script.h.
#define COMP_DIG_TOATTACK 0x00c |
Definition at line 299 of file lev_script.h.
#define COMP_DIG_TOENTRNCE 0x00e |
Definition at line 301 of file lev_script.h.
#define COMP_DIG_TOGOLD 0x00d |
Definition at line 300 of file lev_script.h.
#define COMP_MAGIC_CALLARMS 0x00b |
Definition at line 298 of file lev_script.h.
#define COMP_MAGIC_SPEED_UP 0x004 |
Definition at line 291 of file lev_script.h.
#define COMP_MOVE_CREATRS_TODEFENS 0x007 |
Definition at line 294 of file lev_script.h.
#define COMP_MOVE_CREATRS_TOPOS 0x008 |
Definition at line 295 of file lev_script.h.
#define COMP_MOVE_CREATRS_TOROOM 0x009 |
Definition at line 296 of file lev_script.h.
#define COMP_PICKUP_FOR_ATTACK 0x00a |
Definition at line 297 of file lev_script.h.
#define COMP_PLACE_ROOM 0x00f |
Definition at line 302 of file lev_script.h.
#define COMP_SELL_TRAPSDOORS 0x001 |
Definition at line 288 of file lev_script.h.
#define COMP_SLAP_IMPS 0x006 |
Definition at line 293 of file lev_script.h.
#define COMP_WAIT_FOR_BRIDGE 0x003 |
Definition at line 290 of file lev_script.h.
#define CREATRS_ANNOYED 0x00d |
#define CRTRS_SCAVNG_GAINED 0x002 |
#define CRTRS_SCAVNG_LOST 0x003 |
#define DNGN_DESTROYED 0x006 |
#define DOORS_DESTROYED 0x004 |
#define ERR_SCRIPTPARAM_NARGS -2 |
Definition at line 310 of file lev_script.h.
Referenced by script_cmd_verify_avail(), script_cmd_verify_condit(), script_cmd_verify_crtradj(), script_cmd_verify_custobj(), script_cmd_verify_obsol(), script_cmd_verify_party(), script_cmd_verify_setup(), and script_cmd_verify_triger().
#define ERR_SCRIPTPARAM_WHOLE -9 |
Definition at line 309 of file lev_script.h.
Referenced by script_cmd_verify_setup(), and txt_verify().
#define FLAG0 0x000 |
Definition at line 267 of file lev_script.h.
#define FLAG1 0x001 |
Definition at line 266 of file lev_script.h.
#define FLAG2 0x002 |
Definition at line 265 of file lev_script.h.
#define FLAG3 0x003 |
Definition at line 264 of file lev_script.h.
#define FLAG4 0x004 |
Definition at line 263 of file lev_script.h.
#define FLAG5 0x005 |
Definition at line 262 of file lev_script.h.
#define FLAG6 0x006 |
Definition at line 261 of file lev_script.h.
#define FLAG7 0x007 |
Definition at line 260 of file lev_script.h.
#define GAME_TURN 0x015 |
#define GOLD_POTS_STOLEN 0x007 |
#define MAX_PARTYS 16 |
Definition at line 307 of file lev_script.h.
Referenced by dkscript_verify(), and script_cmd_verify_arg_party_name().
#define MONEY 0x016 |
#define OBJCTV_ACTNPT 0x001 |
#define OBJCTV_APPROP_DUNG 0x004 |
Definition at line 255 of file lev_script.h.
Referenced by script_cmd_verify_arg_party_objectv(), and script_cmd_verify_party().
#define OBJCTV_ATTACK_DNHEART 0x008 |
Definition at line 250 of file lev_script.h.
#define OBJCTV_ATTACK_ROOMS 0x009 |
Definition at line 249 of file lev_script.h.
#define OBJCTV_DEFEND_PARTY 0x00a |
Definition at line 248 of file lev_script.h.
#define OBJCTV_DNHEART 0x003 |
#define OBJCTV_DUNGEON 0x002 |
#define OBJCTV_ENEMIES 0x007 |
Definition at line 251 of file lev_script.h.
#define OBJCTV_STEAL_GOLD 0x005 |
Definition at line 253 of file lev_script.h.
#define OBJCTV_STEAL_SPELLS 0x006 |
Definition at line 252 of file lev_script.h.
#define OPER_EQU 0x001 |
Definition at line 278 of file lev_script.h.
#define OPER_GRTR 0x004 |
Definition at line 281 of file lev_script.h.
#define OPER_GRTREQ 0x006 |
Definition at line 283 of file lev_script.h.
#define OPER_LESS 0x003 |
Definition at line 280 of file lev_script.h.
#define OPER_LESSEQ 0x005 |
Definition at line 282 of file lev_script.h.
#define OPER_NEQ 0x002 |
Definition at line 279 of file lev_script.h.
#define ROOMS_DESTROYED 0x00a |
#define SPELLS_STOLEN 0x009 |
#define TIMER0 0x000 |
Definition at line 276 of file lev_script.h.
#define TIMER1 0x001 |
Definition at line 275 of file lev_script.h.
#define TIMER2 0x002 |
Definition at line 274 of file lev_script.h.
#define TIMER3 0x003 |
Definition at line 273 of file lev_script.h.
#define TIMER4 0x004 |
Definition at line 272 of file lev_script.h.
#define TIMER5 0x005 |
Definition at line 271 of file lev_script.h.
#define TIMER6 0x006 |
Definition at line 270 of file lev_script.h.
#define TIMER7 0x007 |
Definition at line 269 of file lev_script.h.
#define TIMES_BROKEN_INTO 0x008 |
#define TOTAL_AREA 0x00f |
#define TOTAL_CREATRS 0x012 |
#define TOTAL_CREATRS_LEFT 0x00e |
#define TOTAL_DOORS 0x010 |
#define TOTAL_GOLD_MINED 0x005 |
#define TOTAL_IMPS 0x013 |
#define TOTAL_RESEARCH 0x011 |
typedef int(* func_cmd_index)(const char *cmdtext) |
Definition at line 356 of file lev_script.h.
typedef const char*(* func_cmd_text)(int cmdidx) |
Definition at line 357 of file lev_script.h.
enum cmd_groups |
Definition at line 29 of file lev_script.h.
enum cmnds_adikted |
CUSTOM_COLUMN | |
DEFINE_GRAFFITI | |
LEVEL_TIMESTAMP | |
USER_CMNDS_COUNT | |
LEVEL_VERSION | |
LEVEL_NAME | |
LEVEL_DESC | |
LEVEL_AUTHORS |
Definition at line 313 of file lev_script.h.
enum cmnds_avail |
Definition at line 98 of file lev_script.h.
enum cmnds_comnt |
enum cmnds_condit |
enum cmnds_crtradj |
DEAD_CREATURES_RET_TO_POOL | |
ADD_CREATR_TO_POOL | |
SET_CREATR_MAX_LEVEL | |
SET_CREATR_STRENGTH | |
SET_CREATR_HEALTH | |
SET_CREATR_ARMOUR | |
SET_CREATR_FEAR | |
CREATR_SWAP |
Definition at line 176 of file lev_script.h.
enum cmnds_custobj |
DISPLAY_OBJECTV | |
DISPLAY_OBJECTV_WPOS | |
DISPLAY_INFO | |
DISPLAY_INFO_WPOS | |
BONUS_LEV_TIME | |
TUTORIAL_FLASH_BTN | |
QUICK_OBJECTV | |
QUICK_INFO |
Definition at line 112 of file lev_script.h.
enum cmnds_objtypes |
Definition at line 216 of file lev_script.h.
enum cmnds_obsolt |
enum cmnds_party |
CREATE_PARTY | |
ADD_TUNNELER_TOLEV | |
ADD_TO_PARTY | |
ADD_PARTY_TOLEV | |
ADD_CREATR_TOLEV | |
ADD_TUNNELLER_PARTY_TOLEV |
Definition at line 82 of file lev_script.h.
enum cmnds_setup |
SET_GEN_SPEED | |
START_MONEY | |
RESEARCH | |
COMP_PLAYER | |
ALLY_PLAYERS | |
SET_HATE | |
SET_COMPUTER_GLOBALS | |
SET_COMPUTER_CHECKS | |
SET_COMPUTER_EVENT | |
SET_COMPUTER_PROCESS | |
MAX_CREATURES |
Definition at line 132 of file lev_script.h.
enum cmnds_special |
enum cmnds_triger |
Definition at line 158 of file lev_script.h.
enum object_available |
DLLIMPORT short add_graffiti_to_script | ( | char *** | lines, | |
int * | lines_count, | |||
struct LEVEL * | lvl | |||
) |
DLLIMPORT short add_stats_to_script | ( | char *** | lines, | |
int * | lines_count, | |||
struct LEVEL * | lvl | |||
) |
int adikted_cmd_arrsize | ( | ) |
Definition at line 4224 of file lev_script.c.
int adikted_cmd_index | ( | const char * | cmdtext | ) |
DLLIMPORT const char* adikted_cmd_text | ( | int | cmdidx | ) |
Definition at line 4243 of file lev_script.c.
Referenced by add_stats_to_script(), execute_adikted_command(), and script_cmd_text().
int avail_cmd_arrsize | ( | ) |
Definition at line 4354 of file lev_script.c.
int avail_cmd_index | ( | const char * | cmdtext | ) |
DLLIMPORT const char* avail_cmd_text | ( | int | cmdidx | ) |
int commnt_cmd_arrsize | ( | ) |
Definition at line 4845 of file lev_script.c.
int commnt_cmd_index | ( | const char * | cmdtext | ) |
DLLIMPORT const char* commnt_cmd_text | ( | int | cmdidx | ) |
int comp_plyr_cmd_arrsize | ( | ) |
Definition at line 4380 of file lev_script.c.
int comp_plyr_cmd_index | ( | const char * | cmdtext | ) |
DLLIMPORT const char* comp_plyr_cmd_text | ( | int | cmdidx | ) |
int condit_cmd_arrsize | ( | ) |
Definition at line 4250 of file lev_script.c.
int condit_cmd_index | ( | const char * | cmdtext | ) |
DLLIMPORT const char* condit_cmd_text | ( | int | cmdidx | ) |
int creatures_cmd_arrsize | ( | ) |
Definition at line 4432 of file lev_script.c.
Referenced by level_clear_script_param(), level_init(), and write_nfo().
int creatures_cmd_index | ( | const char * | cmdtext | ) |
Definition at line 4437 of file lev_script.c.
Referenced by recognize_script_word_group_and_idx(), script_cmd_verify_arg_conditvar(), script_cmd_verify_arg_creatr(), script_decomposed_to_params_cmd_avail(), and script_decomposed_to_params_cmd_crtradj().
DLLIMPORT const char* creatures_cmd_text | ( | int | cmdidx | ) |
int crtradj_cmd_arrsize | ( | ) |
Definition at line 4793 of file lev_script.c.
int crtradj_cmd_index | ( | const char * | cmdtext | ) |
DLLIMPORT const char* crtradj_cmd_text | ( | int | cmdidx | ) |
int custobj_cmd_arrsize | ( | ) |
Definition at line 4715 of file lev_script.c.
int custobj_cmd_index | ( | const char * | cmdtext | ) |
DLLIMPORT const char* custobj_cmd_text | ( | int | cmdidx | ) |
DLLIMPORT short decompose_script | ( | struct DK_SCRIPT * | script, | |
const struct SCRIPT_OPTIONS * | optns | |||
) |
DLLIMPORT short decompose_script_command | ( | struct DK_SCRIPT_COMMAND * | cmd, | |
const char * | text, | |||
const struct SCRIPT_OPTIONS * | optns | |||
) |
Definition at line 3985 of file lev_script.c.
Referenced by decompose_script(), and execute_script_line().
DLLIMPORT short dkscript_verify | ( | const struct LEVEL * | lvl, | |
char * | err_msg, | |||
int * | err_line, | |||
int * | err_param | |||
) |
int door_cmd_arrsize | ( | ) |
Definition at line 4550 of file lev_script.c.
Referenced by level_clear_script_param(), and level_init().
DLLIMPORT const char* door_cmd_fullname | ( | int | cmdidx | ) |
Definition at line 4576 of file lev_script.c.
int door_cmd_index | ( | const char * | cmdtext | ) |
Definition at line 4555 of file lev_script.c.
Referenced by recognize_script_word_group_and_idx(), script_cmd_verify_arg_conditvar(), script_cmd_verify_avail(), and script_decomposed_to_params_cmd_avail().
DLLIMPORT const char* door_cmd_text | ( | int | cmdidx | ) |
DLLIMPORT short execute_adikted_command | ( | struct LEVEL * | lvl, | |
struct DK_SCRIPT_COMMAND * | cmd, | |||
char * | err_msg | |||
) |
DLLIMPORT short execute_script_line | ( | struct LEVEL * | lvl, | |
char * | line, | |||
char * | err_msg | |||
) |
int flag_cmd_arrsize | ( | ) |
Definition at line 4276 of file lev_script.c.
int flag_cmd_index | ( | const char * | cmdtext | ) |
Definition at line 4281 of file lev_script.c.
Referenced by recognize_script_word_group_and_idx(), script_cmd_verify_arg_conditvar(), and script_cmd_verify_triger().
DLLIMPORT const char* flag_cmd_text | ( | int | cmdidx | ) |
int font_cmd_arrsize | ( | ) |
Definition at line 4898 of file lev_script.c.
int font_cmd_index | ( | const char * | cmdtext | ) |
DLLIMPORT const char* font_cmd_text | ( | int | cmdidx | ) |
DLLIMPORT char* get_font_longname | ( | unsigned short | font | ) |
Returns font name string for given font index.
font | Font index. |
Definition at line 5173 of file lev_script.c.
DLLIMPORT unsigned short get_orientation_next | ( | unsigned short | orient | ) |
Returns orientation constant after the given one.
orient | Previous orientation constant. |
Definition at line 5156 of file lev_script.c.
DLLIMPORT char* get_orientation_shortname | ( | unsigned short | orient | ) |
Definition at line 5142 of file lev_script.c.
DLLIMPORT short is_no_bracket_command | ( | int | group, | |
int | cmdidx | |||
) |
int objtype_cmd_arrsize | ( | ) |
Definition at line 4637 of file lev_script.c.
int objtype_cmd_index | ( | const char * | cmdtext | ) |
Definition at line 4642 of file lev_script.c.
Referenced by recognize_script_word_group_and_idx(), script_cmd_verify_setup(), and script_decomposed_to_params_cmd_setup().
DLLIMPORT const char* objtype_cmd_text | ( | int | cmdidx | ) |
int obsolt_cmd_arrsize | ( | ) |
Definition at line 4819 of file lev_script.c.
int obsolt_cmd_index | ( | const char * | cmdtext | ) |
DLLIMPORT const char* obsolt_cmd_text | ( | int | cmdidx | ) |
int operator_cmd_arrsize | ( | ) |
Definition at line 4611 of file lev_script.c.
int operator_cmd_index | ( | const char * | cmdtext | ) |
Definition at line 4616 of file lev_script.c.
Referenced by recognize_script_word_group_and_idx(), script_cmd_verify_arg_operator(), and script_decomposed_to_params_cmd_condit().
DLLIMPORT const char* operator_cmd_text | ( | int | cmdidx | ) |
int orient_cmd_arrsize | ( | ) |
Definition at line 4872 of file lev_script.c.
int orient_cmd_index | ( | const char * | cmdtext | ) |
DLLIMPORT const char* orient_cmd_text | ( | int | cmdidx | ) |
int party_cmd_arrsize | ( | ) |
Definition at line 4328 of file lev_script.c.
int party_cmd_index | ( | const char * | cmdtext | ) |
DLLIMPORT const char* party_cmd_text | ( | int | cmdidx | ) |
int party_objectv_cmd_arrsize | ( | ) |
Definition at line 4302 of file lev_script.c.
int party_objectv_cmd_index | ( | const char * | cmdtext | ) |
Definition at line 4307 of file lev_script.c.
Referenced by recognize_script_word_group_and_idx(), and script_cmd_verify_arg_party_objectv().
DLLIMPORT const char* party_objectv_cmd_text | ( | int | cmdidx | ) |
int players_cmd_arrsize | ( | ) |
Definition at line 4406 of file lev_script.c.
int players_cmd_index | ( | const char * | cmdtext | ) |
Definition at line 4411 of file lev_script.c.
Referenced by recognize_script_word_group_and_idx(), script_cmd_verify_arg_actnpt(), script_cmd_verify_arg_btnparam(), script_cmd_verify_avail(), script_cmd_verify_condit(), script_cmd_verify_crtradj(), script_cmd_verify_custobj(), script_cmd_verify_party(), script_cmd_verify_setup(), script_cmd_verify_triger(), script_decomposed_to_params_cmd_avail(), script_decomposed_to_params_cmd_condit(), script_decomposed_to_params_cmd_crtradj(), and script_decomposed_to_params_cmd_setup().
DLLIMPORT const char* players_cmd_text | ( | int | cmdidx | ) |
Definition at line 4425 of file lev_script.c.
Referenced by script_cmd_text(), and script_cmd_verify_setup().
int recognize_script_word_group_and_idx | ( | int * | index, | |
const char * | wordtxt, | |||
const short | is_parameter | |||
) |
Definition at line 3829 of file lev_script.c.
Referenced by decompose_script_command(), renew_cmd_param(), and script_decomposed_to_params_cmd_condit().
DLLIMPORT short recompose_script | ( | struct DK_SCRIPT * | script, | |
const struct SCRIPT_OPTIONS * | optns | |||
) |
Definition at line 3021 of file lev_script.c.
DLLIMPORT char* recompose_script_command | ( | const struct DK_SCRIPT_COMMAND * | cmd, | |
const struct SCRIPT_OPTIONS * | optns | |||
) |
DLLIMPORT short recompute_script_levels | ( | struct DK_SCRIPT * | script | ) |
Definition at line 3038 of file lev_script.c.
short renew_cmd_param | ( | const struct DK_SCRIPT_COMMAND * | cmd, | |
const unsigned int | param_idx, | |||
const struct SCRIPT_OPTIONS * | optns | |||
) |
int room_cmd_arrsize | ( | ) |
Definition at line 4458 of file lev_script.c.
Referenced by level_clear_script_param(), and level_init().
int room_cmd_index | ( | const char * | cmdtext | ) |
Definition at line 4463 of file lev_script.c.
Referenced by recognize_script_word_group_and_idx(), script_cmd_verify_arg_conditvar(), script_cmd_verify_avail(), script_cmd_verify_setup(), and script_decomposed_to_params_cmd_avail().
DLLIMPORT const char* room_cmd_text | ( | int | cmdidx | ) |
DLLIMPORT const char* script_cmd_text | ( | const int | group, | |
const int | cmdidx, | |||
const char * | prev_val | |||
) |
Definition at line 4163 of file lev_script.c.
Referenced by recompose_script_command(), renew_cmd_param(), and script_cmd_verify_argcount().
DLLIMPORT void script_command_clear | ( | struct DK_SCRIPT_COMMAND * | cmd | ) |
Definition at line 4937 of file lev_script.c.
Referenced by execute_script_line(), script_command_create(), and script_command_renew().
DLLIMPORT struct DK_SCRIPT_COMMAND* script_command_create | ( | void | ) | [read] |
DLLIMPORT void script_command_free | ( | struct DK_SCRIPT_COMMAND * | cmd | ) |
DLLIMPORT short script_command_param_add | ( | struct DK_SCRIPT_COMMAND * | cmd, | |
char * | param | |||
) |
DLLIMPORT void script_command_renew | ( | struct DK_SCRIPT_COMMAND ** | cmd | ) |
DLLIMPORT short script_decomposed_to_params | ( | struct DK_SCRIPT * | script, | |
const struct SCRIPT_OPTIONS * | optns | |||
) |
DLLIMPORT short script_decomposed_to_params_cmd | ( | struct DK_SCRIPT_PARAMETERS * | par, | |
struct DK_SCRIPT_COMMAND * | cmd, | |||
const struct SCRIPT_OPTIONS * | optns | |||
) |
DLLIMPORT short script_param_to_int | ( | int * | val, | |
const char * | param | |||
) |
Definition at line 517 of file lev_script.c.
Referenced by execute_adikted_command(), script_cmd_verify_arg_actnpt(), script_cmd_verify_arg_btnparam(), script_cmd_verify_arg_experience(), script_cmd_verify_arg_gameturn(), script_cmd_verify_arg_goldamnt(), script_cmd_verify_arg_limparam(), script_cmd_verify_arg_ncrtrs(), script_cmd_verify_arg_unsg_int(), script_decomposed_to_params_cmd_avail(), script_decomposed_to_params_cmd_condit(), script_decomposed_to_params_cmd_crtradj(), script_decomposed_to_params_cmd_setup(), and special_cmd_index().
DLLIMPORT short script_param_to_ulong | ( | unsigned long * | val, | |
const char * | param | |||
) |
DLLIMPORT short script_params_to_decomposed | ( | struct DK_SCRIPT * | script, | |
const struct SCRIPT_OPTIONS * | optns | |||
) |
Definition at line 3721 of file lev_script.c.
DLLIMPORT char* script_strword | ( | const char * | str, | |
const short | whole_rest | |||
) |
DLLIMPORT short script_strword_pos | ( | char const ** | ptr, | |
unsigned int * | ptr_len, | |||
const char * | str, | |||
const short | whole_rest | |||
) |
int setup_cmd_arrsize | ( | ) |
Definition at line 4741 of file lev_script.c.
int setup_cmd_index | ( | const char * | cmdtext | ) |
DLLIMPORT const char* setup_cmd_text | ( | int | cmdidx | ) |
int special_cmd_arrsize | ( | ) |
Definition at line 4583 of file lev_script.c.
int special_cmd_index | ( | const char * | cmdtext | ) |
DLLIMPORT const char* special_cmd_text | ( | int | cmdidx, | |
const char * | param | |||
) |
int spell_cmd_arrsize | ( | ) |
Definition at line 4484 of file lev_script.c.
Referenced by level_clear_script_param(), and level_init().
DLLIMPORT const char* spell_cmd_fullname | ( | int | cmdidx | ) |
Definition at line 4510 of file lev_script.c.
int spell_cmd_index | ( | const char * | cmdtext | ) |
Definition at line 4489 of file lev_script.c.
Referenced by recognize_script_word_group_and_idx(), script_cmd_verify_arg_conditvar(), script_cmd_verify_avail(), script_cmd_verify_setup(), and script_decomposed_to_params_cmd_avail().
DLLIMPORT const char* spell_cmd_text | ( | int | cmdidx | ) |
DLLIMPORT void text_file_free | ( | char ** | lines, | |
int | lines_count | |||
) |
Definition at line 4977 of file lev_script.c.
Referenced by write_adi_script(), write_lif(), and write_nfo().
DLLIMPORT int text_file_line_add | ( | char *** | lines, | |
int * | lines_count, | |||
char * | text | |||
) |
Definition at line 4989 of file lev_script.c.
DLLIMPORT int text_file_linecp_add | ( | char *** | lines, | |
int * | lines_count, | |||
char * | text | |||
) |
Definition at line 5007 of file lev_script.c.
Referenced by add_custom_clms_to_script(), add_graffiti_to_script(), add_stats_to_script(), and write_nfo().
int timer_cmd_arrsize | ( | ) |
Definition at line 4689 of file lev_script.c.
int timer_cmd_index | ( | const char * | cmdtext | ) |
Definition at line 4694 of file lev_script.c.
Referenced by recognize_script_word_group_and_idx(), script_cmd_verify_arg_conditvar(), and script_cmd_verify_triger().
DLLIMPORT const char* timer_cmd_text | ( | int | cmdidx | ) |
int trap_cmd_arrsize | ( | ) |
Definition at line 4517 of file lev_script.c.
Referenced by level_clear_script_param(), and level_init().
DLLIMPORT const char* trap_cmd_fullname | ( | int | cmdidx | ) |
Definition at line 4543 of file lev_script.c.
int trap_cmd_index | ( | const char * | cmdtext | ) |
Definition at line 4522 of file lev_script.c.
Referenced by recognize_script_word_group_and_idx(), script_cmd_verify_arg_conditvar(), script_cmd_verify_avail(), and script_decomposed_to_params_cmd_avail().
DLLIMPORT const char* trap_cmd_text | ( | int | cmdidx | ) |
int triger_cmd_arrsize | ( | ) |
Definition at line 4767 of file lev_script.c.
int triger_cmd_index | ( | const char * | cmdtext | ) |
DLLIMPORT const char* triger_cmd_text | ( | int | cmdidx | ) |
int variabl_cmd_arrsize | ( | ) |
Definition at line 4663 of file lev_script.c.
int variabl_cmd_index | ( | const char * | cmdtext | ) |
Definition at line 4668 of file lev_script.c.
Referenced by recognize_script_word_group_and_idx(), and script_cmd_verify_arg_conditvar().
DLLIMPORT const char* variabl_cmd_text | ( | int | cmdidx | ) |