lev_script.h File Reference

#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 Documentation

#define ALL_DNGNS_DESTROYED   0x001

Definition at line 225 of file lev_script.h.

Referenced by script_cmd_verify_condit().

#define BATTLES_LOST   0x00c

Definition at line 236 of file lev_script.h.

Referenced by script_cmd_verify_condit().

#define BATTLES_WON   0x00b

Definition at line 235 of file lev_script.h.

Referenced by script_cmd_verify_condit().

#define BREAK_IN   0x014

Definition at line 244 of file lev_script.h.

Referenced by script_cmd_verify_condit().

#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

Definition at line 237 of file lev_script.h.

Referenced by script_cmd_verify_condit().

#define CRTRS_SCAVNG_GAINED   0x002

Definition at line 226 of file lev_script.h.

Referenced by script_cmd_verify_condit().

#define CRTRS_SCAVNG_LOST   0x003

Definition at line 227 of file lev_script.h.

Referenced by script_cmd_verify_condit().

#define DNGN_DESTROYED   0x006

Definition at line 230 of file lev_script.h.

Referenced by script_cmd_verify_condit().

#define DOORS_DESTROYED   0x004

Definition at line 228 of file lev_script.h.

Referenced by script_cmd_verify_condit().

#define ERR_SCRIPTPARAM_NARGS   -2

#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

Definition at line 245 of file lev_script.h.

Referenced by script_cmd_verify_condit().

#define GOLD_POTS_STOLEN   0x007

Definition at line 231 of file lev_script.h.

Referenced by script_cmd_verify_condit().

#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

Definition at line 246 of file lev_script.h.

Referenced by script_cmd_verify_condit().

#define OBJCTV_ACTNPT   0x001

Definition at line 258 of file lev_script.h.

Referenced by script_cmd_verify_party().

#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

Definition at line 256 of file lev_script.h.

Referenced by script_cmd_verify_party().

#define OBJCTV_DUNGEON   0x002

Definition at line 257 of file lev_script.h.

Referenced by script_cmd_verify_party().

#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

Definition at line 234 of file lev_script.h.

Referenced by script_cmd_verify_condit().

#define SPELLS_STOLEN   0x009

Definition at line 233 of file lev_script.h.

Referenced by script_cmd_verify_condit().

#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

Definition at line 232 of file lev_script.h.

Referenced by script_cmd_verify_condit().

#define TOTAL_AREA   0x00f

Definition at line 239 of file lev_script.h.

Referenced by script_cmd_verify_condit().

#define TOTAL_CREATRS   0x012

Definition at line 242 of file lev_script.h.

Referenced by script_cmd_verify_condit().

#define TOTAL_CREATRS_LEFT   0x00e

Definition at line 238 of file lev_script.h.

Referenced by script_cmd_verify_condit().

#define TOTAL_DOORS   0x010

Definition at line 240 of file lev_script.h.

Referenced by script_cmd_verify_condit().

#define TOTAL_GOLD_MINED   0x005

Definition at line 229 of file lev_script.h.

Referenced by script_cmd_verify_condit().

#define TOTAL_IMPS   0x013

Definition at line 243 of file lev_script.h.

Referenced by script_cmd_verify_condit().

#define TOTAL_RESEARCH   0x011

Definition at line 241 of file lev_script.h.

Referenced by script_cmd_verify_condit().


Typedef Documentation

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.


Enumeration Type Documentation

enum cmd_groups

Enumerator:
CMD_UNKNOWN 
CMD_CONDIT 
CMD_PARTY 
CMD_AVAIL 
CMD_CUSTOBJ 
CMD_SETUP 
CMD_TRIGER 
CMD_CRTRADJ 
CMD_COMMNT 
CMD_OBSOLT 
CMD_PAROBJ 
CMD_FLAG 
CMD_TIMER 
CMD_DOOR 
CMD_TRAP 
CMD_SPELL 
CMD_VARIBL 
CMD_OPERATR 
CMD_CREATR 
CMD_ROOM 
CMD_COMP 
CMD_PLAYER 
CMD_SPECIAL 
CMD_OBJTYPE 
CMD_ORIENT 
CMD_ADIKTED 

Definition at line 29 of file lev_script.h.

Enumerator:
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.

Enumerator:
ROOM_AVAIL 
CREATR_AVAIL 
MAGIC_AVAIL 
TRAP_AVAIL 
DOOR_AVAIL 

Definition at line 98 of file lev_script.h.

Enumerator:
EMPTYLN 
CMNT_REM 

Definition at line 196 of file lev_script.h.

Enumerator:
COND_IF 
IF_AVAILABLE 
IF_ACTNPT 
COND_ENDIF 

Definition at line 70 of file lev_script.h.

Enumerator:
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.

Enumerator:
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.

Enumerator:
OBJTYPE_CREATURE 
OBJTYPE_ROOM 
OBJTYPE_SPELL 

Definition at line 216 of file lev_script.h.

Enumerator:
OBSOLT_PRINT 
CREATE_TEXT 

Definition at line 204 of file lev_script.h.

Enumerator:
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.

Enumerator:
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.

Enumerator:
SPEC_RANDOM 
SPEC_NUMBER 

Definition at line 210 of file lev_script.h.

Enumerator:
RESET_ACTNPT 
NEXT_CMD_REUSABLE 
SET_FLAG 
SET_TIMER 
GAME_LOSE 
GAME_WIN 
SET_MUSIC 

Definition at line 158 of file lev_script.h.

Enumerator:
AVAIL_NO 
AVAIL_RESEARCH 
AVAIL_INSTANT 

Definition at line 324 of file lev_script.h.


Function Documentation

DLLIMPORT short add_graffiti_to_script ( char ***  lines,
int *  lines_count,
struct LEVEL lvl 
)

Definition at line 5078 of file lev_script.c.

Referenced by write_adi_script().

DLLIMPORT short add_stats_to_script ( char ***  lines,
int *  lines_count,
struct LEVEL lvl 
)

Definition at line 5021 of file lev_script.c.

Referenced by write_adi_script().

int adikted_cmd_arrsize (  ) 

Definition at line 4224 of file lev_script.c.

int adikted_cmd_index ( const char *  cmdtext  ) 

Definition at line 4229 of file lev_script.c.

Referenced by recognize_script_word_group_and_idx().

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  ) 

Definition at line 4359 of file lev_script.c.

Referenced by recognize_script_word_group_and_idx().

DLLIMPORT const char* avail_cmd_text ( int  cmdidx  ) 

Definition at line 4373 of file lev_script.c.

Referenced by script_cmd_text().

int commnt_cmd_arrsize (  ) 

Definition at line 4845 of file lev_script.c.

int commnt_cmd_index ( const char *  cmdtext  ) 

Definition at line 4850 of file lev_script.c.

Referenced by recognize_script_word_group_and_idx().

DLLIMPORT const char* commnt_cmd_text ( int  cmdidx  ) 

Definition at line 4865 of file lev_script.c.

Referenced by script_cmd_text().

int comp_plyr_cmd_arrsize (  ) 

Definition at line 4380 of file lev_script.c.

int comp_plyr_cmd_index ( const char *  cmdtext  ) 

Definition at line 4385 of file lev_script.c.

Referenced by recognize_script_word_group_and_idx().

DLLIMPORT const char* comp_plyr_cmd_text ( int  cmdidx  ) 

Definition at line 4399 of file lev_script.c.

Referenced by script_cmd_text().

int condit_cmd_arrsize (  ) 

Definition at line 4250 of file lev_script.c.

int condit_cmd_index ( const char *  cmdtext  ) 

Definition at line 4255 of file lev_script.c.

Referenced by recognize_script_word_group_and_idx().

DLLIMPORT const char* condit_cmd_text ( int  cmdidx  ) 

Definition at line 4269 of file lev_script.c.

Referenced by script_cmd_text().

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  ) 

DLLIMPORT const char* creatures_cmd_text ( int  cmdidx  ) 

Definition at line 4451 of file lev_script.c.

Referenced by script_cmd_text().

int crtradj_cmd_arrsize (  ) 

Definition at line 4793 of file lev_script.c.

int crtradj_cmd_index ( const char *  cmdtext  ) 

Definition at line 4798 of file lev_script.c.

Referenced by recognize_script_word_group_and_idx().

DLLIMPORT const char* crtradj_cmd_text ( int  cmdidx  ) 

Definition at line 4812 of file lev_script.c.

Referenced by script_cmd_text().

int custobj_cmd_arrsize (  ) 

Definition at line 4715 of file lev_script.c.

int custobj_cmd_index ( const char *  cmdtext  ) 

Definition at line 4720 of file lev_script.c.

Referenced by recognize_script_word_group_and_idx().

DLLIMPORT const char* custobj_cmd_text ( int  cmdidx  ) 

Definition at line 4734 of file lev_script.c.

Referenced by script_cmd_text().

DLLIMPORT short decompose_script ( struct DK_SCRIPT script,
const struct SCRIPT_OPTIONS optns 
)

Definition at line 3004 of file lev_script.c.

Referenced by load_txt().

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 
)

Definition at line 2853 of file lev_script.c.

Referenced by txt_verify().

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  ) 

DLLIMPORT const char* door_cmd_text ( int  cmdidx  ) 

Definition at line 4569 of file lev_script.c.

Referenced by script_cmd_text().

DLLIMPORT short execute_adikted_command ( struct LEVEL lvl,
struct DK_SCRIPT_COMMAND cmd,
char *  err_msg 
)

Definition at line 548 of file lev_script.c.

Referenced by execute_script_line().

DLLIMPORT short execute_script_line ( struct LEVEL lvl,
char *  line,
char *  err_msg 
)

Definition at line 2962 of file lev_script.c.

Referenced by script_load_and_execute().

int flag_cmd_arrsize (  ) 

Definition at line 4276 of file lev_script.c.

int flag_cmd_index ( const char *  cmdtext  ) 

DLLIMPORT const char* flag_cmd_text ( int  cmdidx  ) 

Definition at line 4295 of file lev_script.c.

Referenced by script_cmd_text().

int font_cmd_arrsize (  ) 

Definition at line 4898 of file lev_script.c.

int font_cmd_index ( const char *  cmdtext  ) 

Definition at line 4903 of file lev_script.c.

Referenced by execute_adikted_command().

DLLIMPORT const char* font_cmd_text ( int  cmdidx  ) 

Definition at line 4917 of file lev_script.c.

Referenced by add_graffiti_to_script().

DLLIMPORT char* get_font_longname ( unsigned short  font  ) 

Returns font name string for given font index.

Parameters:
font Font index.
Returns:
Returns font name string.

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.

Parameters:
orient Previous orientation constant.
Returns:
Returns next 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 
)

Definition at line 4037 of file lev_script.c.

Referenced by recompose_script_command().

int objtype_cmd_arrsize (  ) 

Definition at line 4637 of file lev_script.c.

int objtype_cmd_index ( const char *  cmdtext  ) 

DLLIMPORT const char* objtype_cmd_text ( int  cmdidx  ) 

Definition at line 4656 of file lev_script.c.

Referenced by script_cmd_text().

int obsolt_cmd_arrsize (  ) 

Definition at line 4819 of file lev_script.c.

int obsolt_cmd_index ( const char *  cmdtext  ) 

Definition at line 4824 of file lev_script.c.

Referenced by recognize_script_word_group_and_idx().

DLLIMPORT const char* obsolt_cmd_text ( int  cmdidx  ) 

Definition at line 4838 of file lev_script.c.

Referenced by script_cmd_text().

int operator_cmd_arrsize (  ) 

Definition at line 4611 of file lev_script.c.

int operator_cmd_index ( const char *  cmdtext  ) 

DLLIMPORT const char* operator_cmd_text ( int  cmdidx  ) 

Definition at line 4630 of file lev_script.c.

Referenced by script_cmd_text().

int orient_cmd_arrsize (  ) 

Definition at line 4872 of file lev_script.c.

int orient_cmd_index ( const char *  cmdtext  ) 

Definition at line 4877 of file lev_script.c.

Referenced by execute_adikted_command().

DLLIMPORT const char* orient_cmd_text ( int  cmdidx  ) 

Definition at line 4891 of file lev_script.c.

Referenced by add_graffiti_to_script().

int party_cmd_arrsize (  ) 

Definition at line 4328 of file lev_script.c.

int party_cmd_index ( const char *  cmdtext  ) 

Definition at line 4333 of file lev_script.c.

Referenced by recognize_script_word_group_and_idx().

DLLIMPORT const char* party_cmd_text ( int  cmdidx  ) 

Definition at line 4347 of file lev_script.c.

Referenced by script_cmd_text().

int party_objectv_cmd_arrsize (  ) 

Definition at line 4302 of file lev_script.c.

int party_objectv_cmd_index ( const char *  cmdtext  ) 

DLLIMPORT const char* party_objectv_cmd_text ( int  cmdidx  ) 

Definition at line 4321 of file lev_script.c.

Referenced by script_cmd_text().

int players_cmd_arrsize (  ) 

Definition at line 4406 of file lev_script.c.

int players_cmd_index ( const char *  cmdtext  ) 

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 
)

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 
)

Definition at line 4081 of file lev_script.c.

Referenced by recompose_script().

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 
)

Definition at line 4144 of file lev_script.c.

Referenced by recompose_script_command().

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  ) 

DLLIMPORT const char* room_cmd_text ( int  cmdidx  ) 

Definition at line 4477 of file lev_script.c.

Referenced by script_cmd_text().

DLLIMPORT const char* script_cmd_text ( const int  group,
const int  cmdidx,
const char *  prev_val 
)

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]

Definition at line 4927 of file lev_script.c.

Referenced by script_command_renew().

DLLIMPORT void script_command_free ( struct DK_SCRIPT_COMMAND cmd  ) 

Definition at line 4948 of file lev_script.c.

Referenced by execute_script_line().

DLLIMPORT short script_command_param_add ( struct DK_SCRIPT_COMMAND cmd,
char *  param 
)

Definition at line 4027 of file lev_script.c.

Referenced by decompose_script_command().

DLLIMPORT void script_command_renew ( struct DK_SCRIPT_COMMAND **  cmd  ) 

Definition at line 4961 of file lev_script.c.

Referenced by decompose_script().

DLLIMPORT short script_decomposed_to_params ( struct DK_SCRIPT script,
const struct SCRIPT_OPTIONS optns 
)

Definition at line 3705 of file lev_script.c.

Referenced by load_txt().

DLLIMPORT short script_decomposed_to_params_cmd ( struct DK_SCRIPT_PARAMETERS par,
struct DK_SCRIPT_COMMAND cmd,
const struct SCRIPT_OPTIONS optns 
)

Definition at line 3665 of file lev_script.c.

Referenced by script_decomposed_to_params().

DLLIMPORT short script_param_to_int ( int *  val,
const char *  param 
)

DLLIMPORT short script_param_to_ulong ( unsigned long *  val,
const char *  param 
)

Definition at line 531 of file lev_script.c.

Referenced by execute_adikted_command().

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 
)

Definition at line 3808 of file lev_script.c.

Referenced by decompose_script_command().

DLLIMPORT short script_strword_pos ( char const **  ptr,
unsigned int *  ptr_len,
const char *  str,
const short  whole_rest 
)

Definition at line 3728 of file lev_script.c.

Referenced by script_strword().

int setup_cmd_arrsize (  ) 

Definition at line 4741 of file lev_script.c.

int setup_cmd_index ( const char *  cmdtext  ) 

Definition at line 4746 of file lev_script.c.

Referenced by recognize_script_word_group_and_idx().

DLLIMPORT const char* setup_cmd_text ( int  cmdidx  ) 

Definition at line 4760 of file lev_script.c.

Referenced by script_cmd_text().

int special_cmd_arrsize (  ) 

Definition at line 4583 of file lev_script.c.

int special_cmd_index ( const char *  cmdtext  ) 

Definition at line 4588 of file lev_script.c.

Referenced by recognize_script_word_group_and_idx().

DLLIMPORT const char* special_cmd_text ( int  cmdidx,
const char *  param 
)

Definition at line 4599 of file lev_script.c.

Referenced by script_cmd_text().

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  ) 

DLLIMPORT const char* spell_cmd_text ( int  cmdidx  ) 

Definition at line 4503 of file lev_script.c.

Referenced by script_cmd_text().

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 
)

int timer_cmd_arrsize (  ) 

Definition at line 4689 of file lev_script.c.

int timer_cmd_index ( const char *  cmdtext  ) 

DLLIMPORT const char* timer_cmd_text ( int  cmdidx  ) 

Definition at line 4708 of file lev_script.c.

Referenced by script_cmd_text().

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  ) 

DLLIMPORT const char* trap_cmd_text ( int  cmdidx  ) 

Definition at line 4536 of file lev_script.c.

Referenced by script_cmd_text().

int triger_cmd_arrsize (  ) 

Definition at line 4767 of file lev_script.c.

int triger_cmd_index ( const char *  cmdtext  ) 

Definition at line 4772 of file lev_script.c.

Referenced by recognize_script_word_group_and_idx().

DLLIMPORT const char* triger_cmd_text ( int  cmdidx  ) 

Definition at line 4786 of file lev_script.c.

Referenced by script_cmd_text().

DLLIMPORT short txt_verify ( const struct LEVEL lvl,
char *  err_msg,
struct IPOINT_2D errpt 
)

Definition at line 2836 of file lev_script.c.

Referenced by level_verify().

int variabl_cmd_arrsize (  ) 

Definition at line 4663 of file lev_script.c.

int variabl_cmd_index ( const char *  cmdtext  ) 

DLLIMPORT const char* variabl_cmd_text ( int  cmdidx  ) 

Definition at line 4682 of file lev_script.c.

Referenced by script_cmd_text().


Generated on Tue Sep 2 18:51:50 2008 for libAdikted by  doxygen 1.5.6