… | |
… | |
749 | const_iv (ST_BD_BUILD) |
749 | const_iv (ST_BD_BUILD) |
750 | const_iv (ST_BD_REMOVE) |
750 | const_iv (ST_BD_REMOVE) |
751 | const_iv (ST_MAT_FLOOR) |
751 | const_iv (ST_MAT_FLOOR) |
752 | const_iv (ST_MAT_WALL) |
752 | const_iv (ST_MAT_WALL) |
753 | const_iv (ST_MAT_ITEM) |
753 | const_iv (ST_MAT_ITEM) |
|
|
754 | |
|
|
755 | const_iv (AT_PHYSICAL) |
|
|
756 | const_iv (AT_MAGIC) |
|
|
757 | const_iv (AT_FIRE) |
|
|
758 | const_iv (AT_ELECTRICITY) |
|
|
759 | const_iv (AT_COLD) |
|
|
760 | const_iv (AT_CONFUSION) |
|
|
761 | const_iv (AT_ACID) |
|
|
762 | const_iv (AT_DRAIN) |
|
|
763 | const_iv (AT_WEAPONMAGIC) |
|
|
764 | const_iv (AT_GHOSTHIT) |
|
|
765 | const_iv (AT_POISON) |
|
|
766 | const_iv (AT_SLOW) |
|
|
767 | const_iv (AT_PARALYZE) |
|
|
768 | const_iv (AT_TURN_UNDEAD) |
|
|
769 | const_iv (AT_FEAR) |
|
|
770 | const_iv (AT_CANCELLATION) |
|
|
771 | const_iv (AT_DEPLETE) |
|
|
772 | const_iv (AT_DEATH) |
|
|
773 | const_iv (AT_CHAOS) |
|
|
774 | const_iv (AT_COUNTERSPELL) |
|
|
775 | const_iv (AT_GODPOWER) |
|
|
776 | const_iv (AT_HOLYWORD) |
|
|
777 | const_iv (AT_BLIND) |
|
|
778 | const_iv (AT_INTERNAL) |
|
|
779 | const_iv (AT_LIFE_STEALING) |
|
|
780 | const_iv (AT_DISEASE) |
754 | |
781 | |
755 | const_iv (QUEST_IN_PROGRESS) |
782 | const_iv (QUEST_IN_PROGRESS) |
756 | const_iv (QUEST_DONE_QUEST) |
783 | const_iv (QUEST_DONE_QUEST) |
757 | const_iv (QUEST_DONE_TASK) |
784 | const_iv (QUEST_DONE_TASK) |
758 | const_iv (QUEST_START_QUEST) |
785 | const_iv (QUEST_START_QUEST) |
… | |
… | |
1176 | break; |
1203 | break; |
1177 | default: |
1204 | default: |
1178 | croak ("unhandled type '%d' in set_property '%d'", type, idx); |
1205 | croak ("unhandled type '%d' in set_property '%d'", type, idx); |
1179 | } |
1206 | } |
1180 | |
1207 | |
|
|
1208 | # missing properties |
|
|
1209 | |
|
|
1210 | void |
|
|
1211 | set_attacktype (object *obj, U32 attacktype) |
|
|
1212 | CODE: |
|
|
1213 | obj->attacktype = attacktype; |
|
|
1214 | |
|
|
1215 | U32 |
|
|
1216 | get_attacktype (object *obj) |
|
|
1217 | ALIAS: |
|
|
1218 | attacktype = 0 |
|
|
1219 | CODE: |
|
|
1220 | RETVAL = obj->attacktype; |
|
|
1221 | OUTPUT: RETVAL |
|
|
1222 | |
|
|
1223 | void |
|
|
1224 | set_food (object *obj, int food) |
|
|
1225 | CODE: |
|
|
1226 | obj->stats.food = food; |
|
|
1227 | |
|
|
1228 | int |
|
|
1229 | get_food (object *obj) |
|
|
1230 | ALIAS: |
|
|
1231 | food = 0 |
|
|
1232 | CODE: |
|
|
1233 | RETVAL = obj->stats.food; |
|
|
1234 | OUTPUT: RETVAL |
|
|
1235 | |
1181 | void |
1236 | void |
1182 | inv (object *obj) |
1237 | inv (object *obj) |
1183 | PROTOTYPE: $ |
1238 | PROTOTYPE: $ |
1184 | PPCODE: |
1239 | PPCODE: |
1185 | { |
1240 | { |
… | |
… | |
1216 | |
1271 | |
1217 | int cf_object_pay_item (object *op, object *buyer) |
1272 | int cf_object_pay_item (object *op, object *buyer) |
1218 | |
1273 | |
1219 | int cf_object_pay_amount (object *op, double amount) |
1274 | int cf_object_pay_amount (object *op, double amount) |
1220 | |
1275 | |
1221 | int cf_object_cast_spell (object *caster, object *ctoo, int dir, object *sp_, char *flags) |
1276 | int cf_object_cast_spell (object *caster, object *ctoo, int dir, object *spell_ob, char *stringarg = 0) |
1222 | |
1277 | |
1223 | int cf_object_cast_ability (object *caster, object *ctoo, int dir, object *sp_, char *flags) |
1278 | int cf_object_cast_ability (object *caster, object *ctoo, int dir, object *sp_, char *stringarg = 0) |
1224 | |
1279 | |
1225 | void cf_object_learn_spell (object *op, object *sp) |
1280 | void cf_object_learn_spell (object *op, object *sp) |
1226 | |
1281 | |
1227 | void cf_object_forget_spell (object *op, object *sp) |
1282 | void cf_object_forget_spell (object *op, object *sp) |
1228 | |
1283 | |
… | |
… | |
1264 | char *cf_object_get_key (object *op, char *keyname) |
1319 | char *cf_object_get_key (object *op, char *keyname) |
1265 | ALIAS: key = 0 |
1320 | ALIAS: key = 0 |
1266 | |
1321 | |
1267 | void cf_object_set_key (object *op, char *keyname, char *value) |
1322 | void cf_object_set_key (object *op, char *keyname, char *value) |
1268 | |
1323 | |
|
|
1324 | object *cf_create_object_by_name (const char *name) |
|
|
1325 | |
1269 | MODULE = cf PACKAGE = cf::object PREFIX = cf_ |
1326 | MODULE = cf PACKAGE = cf::object PREFIX = cf_ |
1270 | |
1327 | |
1271 | void cf_fix_object (object *pl) |
1328 | void cf_fix_object (object *pl) |
1272 | ALIAS: fix = 0 |
1329 | ALIAS: fix = 0 |
1273 | |
1330 | |
1274 | object *cf_insert_ob_in_ob (object *ob, object *where) |
1331 | object *cf_insert_ob_in_ob (object *ob, object *where) |
1275 | |
1332 | |
1276 | object *create_object_by_name (const char *name = 0) |
1333 | # no clean way to get an object from an archetype - stupid idiotic |
|
|
1334 | # dumb kludgy misdesigned plug-in api slowly gets on my nerves. |
|
|
1335 | |
|
|
1336 | object *new (const char *archetype = 0) |
1277 | PROTOTYPE: ;$ |
1337 | PROTOTYPE: ;$ |
1278 | ALIAS: |
|
|
1279 | create_object = 0 |
|
|
1280 | new = 0 |
|
|
1281 | CODE: |
1338 | CODE: |
1282 | RETVAL = name ? cf_create_object_by_name (name) : cf_create_object (); |
1339 | RETVAL = archetype ? get_archetype (archetype) : cf_create_object (); |
1283 | OUTPUT: |
1340 | OUTPUT: |
1284 | RETVAL |
1341 | RETVAL |
1285 | |
1342 | |
1286 | object *insert_ob_in_map_at (object *ob, mapstruct *where, object_ornull *orig, int flag, int x, int y) |
1343 | object *insert_ob_in_map_at (object *ob, mapstruct *where, object_ornull *orig, int flag, int x, int y) |
1287 | PROTOTYPE: $$$$$$ |
1344 | PROTOTYPE: $$$$$$ |