ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/plugins/cfperl/cfperl.xs
(Generate patch)

Comparing deliantra/server/plugins/cfperl/cfperl.xs (file contents):
Revision 1.22 by root, Fri Feb 10 07:37:13 2006 UTC vs.
Revision 1.23 by root, Fri Feb 17 19:36:36 2006 UTC

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
1210void
1211set_attacktype (object *obj, U32 attacktype)
1212 CODE:
1213 obj->attacktype = attacktype;
1214
1215U32
1216get_attacktype (object *obj)
1217 ALIAS:
1218 attacktype = 0
1219 CODE:
1220 RETVAL = obj->attacktype;
1221 OUTPUT: RETVAL
1222
1223void
1224set_food (object *obj, int food)
1225 CODE:
1226 obj->stats.food = food;
1227
1228int
1229get_food (object *obj)
1230 ALIAS:
1231 food = 0
1232 CODE:
1233 RETVAL = obj->stats.food;
1234 OUTPUT: RETVAL
1235
1181void 1236void
1182inv (object *obj) 1237inv (object *obj)
1183 PROTOTYPE: $ 1238 PROTOTYPE: $
1184 PPCODE: 1239 PPCODE:
1185{ 1240{
1216 1271
1217int cf_object_pay_item (object *op, object *buyer) 1272int cf_object_pay_item (object *op, object *buyer)
1218 1273
1219int cf_object_pay_amount (object *op, double amount) 1274int cf_object_pay_amount (object *op, double amount)
1220 1275
1221int cf_object_cast_spell (object *caster, object *ctoo, int dir, object *sp_, char *flags) 1276int cf_object_cast_spell (object *caster, object *ctoo, int dir, object *spell_ob, char *stringarg = 0)
1222 1277
1223int cf_object_cast_ability (object *caster, object *ctoo, int dir, object *sp_, char *flags) 1278int cf_object_cast_ability (object *caster, object *ctoo, int dir, object *sp_, char *stringarg = 0)
1224 1279
1225void cf_object_learn_spell (object *op, object *sp) 1280void cf_object_learn_spell (object *op, object *sp)
1226 1281
1227void cf_object_forget_spell (object *op, object *sp) 1282void cf_object_forget_spell (object *op, object *sp)
1228 1283
1264char *cf_object_get_key (object *op, char *keyname) 1319char *cf_object_get_key (object *op, char *keyname)
1265 ALIAS: key = 0 1320 ALIAS: key = 0
1266 1321
1267void cf_object_set_key (object *op, char *keyname, char *value) 1322void cf_object_set_key (object *op, char *keyname, char *value)
1268 1323
1324object *cf_create_object_by_name (const char *name)
1325
1269MODULE = cf PACKAGE = cf::object PREFIX = cf_ 1326MODULE = cf PACKAGE = cf::object PREFIX = cf_
1270 1327
1271void cf_fix_object (object *pl) 1328void cf_fix_object (object *pl)
1272 ALIAS: fix = 0 1329 ALIAS: fix = 0
1273 1330
1274object *cf_insert_ob_in_ob (object *ob, object *where) 1331object *cf_insert_ob_in_ob (object *ob, object *where)
1275 1332
1276object *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
1336object *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
1286object *insert_ob_in_map_at (object *ob, mapstruct *where, object_ornull *orig, int flag, int x, int y) 1343object *insert_ob_in_map_at (object *ob, mapstruct *where, object_ornull *orig, int flag, int x, int y)
1287 PROTOTYPE: $$$$$$ 1344 PROTOTYPE: $$$$$$

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines