… | |
… | |
999 | |
999 | |
1000 | char * |
1000 | char * |
1001 | cf_get_maps_directory (char *path) |
1001 | cf_get_maps_directory (char *path) |
1002 | ALIAS: maps_directory = 0 |
1002 | ALIAS: maps_directory = 0 |
1003 | |
1003 | |
|
|
1004 | int |
|
|
1005 | cf_find_animation (char *text) |
|
|
1006 | |
1004 | MODULE = cf PACKAGE = cf::object PREFIX = cf_object_ |
1007 | MODULE = cf PACKAGE = cf::object PREFIX = cf_object_ |
1005 | |
1008 | |
1006 | PROTOTYPES: DISABLE |
1009 | PROTOTYPES: DISABLE |
1007 | |
1010 | |
1008 | SV * |
1011 | SV * |
1009 | cf_object_get_property (object *obj, int type, int idx) |
1012 | get_property (object *obj, int type, int idx) |
1010 | CODE: |
1013 | CODE: |
1011 | RETVAL = newSVcfapi (type, cf_object_get_property (obj, idx)); |
1014 | RETVAL = newSVcfapi (type, cf_object_get_property (obj, idx)); |
1012 | OUTPUT: |
1015 | OUTPUT: |
1013 | RETVAL |
1016 | RETVAL |
|
|
1017 | |
|
|
1018 | SV * |
|
|
1019 | set_property (object *obj, int type, int idx, SV *newval) |
|
|
1020 | CODE: |
|
|
1021 | switch (type) |
|
|
1022 | { |
|
|
1023 | case CFAPI_INT: |
|
|
1024 | cf_object_set_int_property (obj, idx, SvIV (newval)); |
|
|
1025 | break; |
|
|
1026 | case CFAPI_LONG: |
|
|
1027 | cf_object_set_long_property (obj, idx, SvNV (newval)); |
|
|
1028 | break; |
|
|
1029 | case CFAPI_STRING: |
|
|
1030 | cf_object_set_string_property (obj, idx, SvPV_nolen (newval)); |
|
|
1031 | break; |
|
|
1032 | default: |
|
|
1033 | croak ("unhandled type '%d' in set_property '%d'", type, idx); |
|
|
1034 | } |
1014 | |
1035 | |
1015 | int cf_object_get_resistance (object *op, int rtype) |
1036 | int cf_object_get_resistance (object *op, int rtype) |
1016 | ALIAS: resistance = 0 |
1037 | ALIAS: resistance = 0 |
1017 | |
1038 | |
1018 | int cf_object_get_flag (object *op, int flag) |
1039 | int cf_object_get_flag (object *op, int flag) |
… | |
… | |
1122 | |
1143 | |
1123 | void cf_player_message (object *obj, char *txt, int flags = 0) |
1144 | void cf_player_message (object *obj, char *txt, int flags = 0) |
1124 | |
1145 | |
1125 | object *cf_player_send_inventory (object *op) |
1146 | object *cf_player_send_inventory (object *op) |
1126 | |
1147 | |
|
|
1148 | void cf_player_set_marked_item(object *op, object *ob) |
|
|
1149 | |
|
|
1150 | void cf_player_set_party(object *op, partylist *party) |
|
|
1151 | |
1127 | |
1152 | |
1128 | MODULE = cf PACKAGE = cf::object::map PREFIX = cf_ |
1153 | MODULE = cf PACKAGE = cf::object::map PREFIX = cf_ |
1129 | |
|
|
1130 | mapstruct *cf_map_get_map (char *name) |
|
|
1131 | ALIAS: map = 0 |
|
|
1132 | |
|
|
1133 | mapstruct *cf_map_get_first () |
|
|
1134 | ALIAS: first = 0 |
|
|
1135 | |
|
|
1136 | object *cf_map_insert_object_there (mapstruct *where, object *op, object *originator, int flags) |
|
|
1137 | |
|
|
1138 | object *cf_map_insert_object (mapstruct *where, object* op, int x, int y) |
|
|
1139 | |
|
|
1140 | object* cf_map_present_arch_by_name (mapstruct *map, const char* str, int nx, int ny) |
|
|
1141 | C_ARGS: str, map, nx, ny |
|
|
1142 | |
|
|
1143 | #int cf_map_get_flags (mapstruct* map, mapstruct** nmap, I16 x, I16 y, I16 *nx, I16 *ny) |
|
|
1144 | |
|
|
1145 | |
1154 | |
1146 | MODULE = cf PACKAGE = cf::player PREFIX = cf_ |
1155 | MODULE = cf PACKAGE = cf::player PREFIX = cf_ |
1147 | |
1156 | |
1148 | player *cf_player_find (char *name) |
1157 | player *cf_player_find (char *name) |
1149 | |
1158 | |
… | |
… | |
1157 | CODE: |
1166 | CODE: |
1158 | RETVAL = newSVcfapi (type, cf_map_get_property (obj, idx)); |
1167 | RETVAL = newSVcfapi (type, cf_map_get_property (obj, idx)); |
1159 | OUTPUT: |
1168 | OUTPUT: |
1160 | RETVAL |
1169 | RETVAL |
1161 | |
1170 | |
|
|
1171 | SV * |
|
|
1172 | set_property (mapstruct *obj, int type, int idx, SV *newval) |
|
|
1173 | CODE: |
|
|
1174 | switch (type) |
|
|
1175 | { |
|
|
1176 | case CFAPI_INT: |
|
|
1177 | cf_map_set_int_property (obj, idx, SvIV (newval)); |
|
|
1178 | break; |
|
|
1179 | default: |
|
|
1180 | croak ("unhandled type '%d' in set_property '%d'", type, idx); |
|
|
1181 | } |
|
|
1182 | |
|
|
1183 | mapstruct *cf_map_get_map (char *name) |
|
|
1184 | ALIAS: map = 0 |
|
|
1185 | |
|
|
1186 | mapstruct *cf_map_get_first () |
|
|
1187 | ALIAS: first = 0 |
|
|
1188 | |
|
|
1189 | object *cf_map_insert_object_there (mapstruct *where, object *op, object *originator, int flags) |
|
|
1190 | |
|
|
1191 | object *cf_map_insert_object (mapstruct *where, object* op, int x, int y) |
|
|
1192 | |
|
|
1193 | object* cf_map_present_arch_by_name (mapstruct *map, const char* str, int nx, int ny) |
|
|
1194 | C_ARGS: str, map, nx, ny |
|
|
1195 | |
|
|
1196 | #int cf_map_get_flags (mapstruct* map, mapstruct** nmap, I16 x, I16 y, I16 *nx, I16 *ny) |
|
|
1197 | |
|
|
1198 | |
1162 | |
1199 | |
1163 | MODULE = cf PACKAGE = cf::arch PREFIX = cf_archetype_ |
1200 | MODULE = cf PACKAGE = cf::arch PREFIX = cf_archetype_ |
1164 | |
1201 | |
1165 | archetype*cf_archetype_get_first() |
1202 | archetype*cf_archetype_get_first() |
1166 | ALIAS: first = 0 |
1203 | ALIAS: first = 0 |