| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
#include "types.h" |
| 7 |
|
| 8 |
#ifdef GLK |
| 9 |
#include "glk.h" |
| 10 |
|
| 11 |
strid_t open_glk_file(glui32 usage, glui32 mode, const char *filename); |
| 12 |
glui32 glk_get_bin_line_stream(strid_t file_stream, char *buffer, glui32 max_length); |
| 13 |
int convert_to_utf32 (unsigned char *text); |
| 14 |
void convert_to_utf8(glui32 *text, int len); |
| 15 |
glui32 parse_utf8(unsigned char *buf, glui32 buflen, glui32 *out, glui32 outlen); |
| 16 |
#else |
| 17 |
void update_parameters(void); |
| 18 |
#endif |
| 19 |
|
| 20 |
void default_footer(void); |
| 21 |
void default_header(void); |
| 22 |
int logic_test(int first); |
| 23 |
int str_test(int first); |
| 24 |
int first_available(int list_number); |
| 25 |
int validate(const char *string); |
| 26 |
int scope(int index, const char *expected, int restricted); |
| 27 |
int object_element_resolve(const char *testString); |
| 28 |
int execute(const char *funcname); |
| 29 |
int object_resolve(const char *object_string); |
| 30 |
int random_number(void); |
| 31 |
void log_access(const char *message); |
| 32 |
void log_error(const char *message, int console); |
| 33 |
int parent_of(int parent, int child, int restricted); |
| 34 |
int grand_of(int child, int objs_only); |
| 35 |
int check_light(int where); |
| 36 |
int find_route(int fromRoom, int toRoom, int known); |
| 37 |
void undoing(void); |
| 38 |
void create_paths(char *full_path); |
| 39 |
int get_key(void); |
| 40 |
char get_character(const char *message); |
| 41 |
int get_yes_or_no(void); |
| 42 |
void get_string(char *string_buffer); |
| 43 |
int get_number(int insist, int low, int high); |
| 44 |
int save_interaction(const char *filename); |
| 45 |
int restore_interaction(const char *filename); |
| 46 |
void jacl_encrypt (char *string); |
| 47 |
void jacl_decrypt (char *string); |
| 48 |
void log_message(const char *message, int console); |
| 49 |
void preparse(void); |
| 50 |
void inspect(int object_num); |
| 51 |
long value_of(const char *value, int run_time); |
| 52 |
long attribute_resolve(const char *attribute); |
| 53 |
long user_attribute_resolve(const char *name); |
| 54 |
struct integer_type *integer_resolve(const char *name); |
| 55 |
struct integer_type *integer_resolve_indexed(const char *name, int index); |
| 56 |
struct function_type *function_resolve(const char *name); |
| 57 |
struct string_type *string_resolve(const char *name); |
| 58 |
struct string_type *string_resolve_indexed(const char *name, int index); |
| 59 |
struct string_type *cstring_resolve(const char *name); |
| 60 |
struct string_type *cstring_resolve_indexed(const char *name, int index); |
| 61 |
struct cinteger_type *cinteger_resolve(const char *name); |
| 62 |
struct cinteger_type *cinteger_resolve_indexed(const char *name, int index); |
| 63 |
char* object_names(int object_index, char *names_buffer); |
| 64 |
const char* arg_text_of(const char *string); |
| 65 |
const char* arg_text_of_word(int wordnumber); |
| 66 |
const char* var_text_of_word(int wordnumber); |
| 67 |
const char* text_of(const char *string); |
| 68 |
const char* text_of_word(int wordnumber); |
| 69 |
int* container_resolve(const char *container_name); |
| 70 |
void eachturn(void); |
| 71 |
int get_here(void); |
| 72 |
char* stripwhite(char *string); |
| 73 |
void command_encapsulate(void); |
| 74 |
void encapsulate(void); |
| 75 |
void jacl_truncate(void); |
| 76 |
void parser(void); |
| 77 |
void look_around(void); |
| 78 |
char* plain_output(int index, int capital); |
| 79 |
char* sub_output(int index, int capital); |
| 80 |
char* obj_output(int index, int capital); |
| 81 |
char* that_output(int index, int capital); |
| 82 |
char* sentence_output(int index, int capital); |
| 83 |
char* isnt_output(int index); |
| 84 |
char* is_output(int index); |
| 85 |
char* it_output(int index); |
| 86 |
char* doesnt_output(int index); |
| 87 |
char* does_output(int index); |
| 88 |
char* list_output(int index, int capital); |
| 89 |
char* long_output(int index); |
| 90 |
void terminate(int code); |
| 91 |
#ifdef GLK |
| 92 |
void push_stack(glsi32 file_pointer); |
| 93 |
#else |
| 94 |
void push_stack(long file_pointer); |
| 95 |
#endif |
| 96 |
void write_text(const char *string_buffer); |
| 97 |
void status_line(void); |
| 98 |
void newline(void); |
| 99 |
#ifdef GLK |
| 100 |
int save_game(frefid_t saveref); |
| 101 |
int restore_game(frefid_t saveref, int warn); |
| 102 |
#else |
| 103 |
int save_game(const char *filename); |
| 104 |
int restore_game(const char *filename, int warn); |
| 105 |
#endif |
| 106 |
void add_cstring(const char *name, const char *value); |
| 107 |
void clear_cstring(const char *name); |
| 108 |
void add_cinteger(const char *name, int value); |
| 109 |
void clear_cinteger(const char *name); |
| 110 |
void restart_game(void); |
| 111 |
void read_gamefile(void); |
| 112 |
void unkvalerr(int line, int wordno); |
| 113 |
void totalerrs(int errors); |
| 114 |
void unkatterr(int line, int wordno); |
| 115 |
void unkfunrun(const char *name); |
| 116 |
void nofnamerr(int line); |
| 117 |
void nongloberr(int line); |
| 118 |
void unkkeyerr(int line, int wordno); |
| 119 |
void maxatterr(int line, int wordno); |
| 120 |
void unkattrun(int wordno); |
| 121 |
void badptrrun(const char *name, int value); |
| 122 |
void badplrrun(int value); |
| 123 |
void badparrun(void); |
| 124 |
void notintrun(void); |
| 125 |
void noproprun(void); |
| 126 |
void noproperr(int line); |
| 127 |
void noobjerr(int line); |
| 128 |
void unkobjerr(int line, int wordno); |
| 129 |
void unkobjrun(int wordno); |
| 130 |
void unkdirrun(int wordno); |
| 131 |
void unkscorun(const char *scope); |
| 132 |
void unkstrrun(const char *variable); |
| 133 |
void unkvarrun(const char *variable); |
| 134 |
void outofmem(void); |
| 135 |
void no_it(void); |
| 136 |
void clrscrn(void); |
| 137 |
void more(const char* message); |
| 138 |
int jpp(void); |
| 139 |
char* strip_return(char *string); |
| 140 |
char** command_completion(char* text, int start, int end); |
| 141 |
void jacl_sleep(unsigned int mseconds); |