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

Comparing deliantra/server/server/cfperl.xs (file contents):
Revision 1.204 by root, Mon Apr 30 04:25:30 2007 UTC vs.
Revision 1.206 by root, Mon May 7 06:01:48 2007 UTC

1134 const_iv (Map0Cmd) const_iv (Map1Cmd) const_iv (Map1aCmd) 1134 const_iv (Map0Cmd) const_iv (Map1Cmd) const_iv (Map1aCmd)
1135 1135
1136 const_iv (MAP_CLIENT_X) const_iv (MAP_CLIENT_Y) 1136 const_iv (MAP_CLIENT_X) const_iv (MAP_CLIENT_Y)
1137 1137
1138 const_iv (MAX_TIME) 1138 const_iv (MAX_TIME)
1139
1140 const_iv (NUM_BODY_LOCATIONS)
1141 const_iv (body_range) const_iv (body_shield) const_iv (body_combat)
1142 const_iv (body_arm) const_iv (body_torso) const_iv (body_head)
1143 const_iv (body_neck) const_iv (body_skill) const_iv (body_finger)
1144 const_iv (body_shoulder) const_iv (body_foot) const_iv (body_hand)
1145 const_iv (body_wrist) const_iv (body_waist)
1139 1146
1140 const_iv (PLAYER) const_iv (TRANSPORT) const_iv (ROD) const_iv (TREASURE) 1147 const_iv (PLAYER) const_iv (TRANSPORT) const_iv (ROD) const_iv (TREASURE)
1141 const_iv (POTION) const_iv (FOOD) const_iv (POISON) const_iv (BOOK) 1148 const_iv (POTION) const_iv (FOOD) const_iv (POISON) const_iv (BOOK)
1142 const_iv (CLOCK) const_iv (ARROW) const_iv (BOW) const_iv (WEAPON) 1149 const_iv (CLOCK) const_iv (ARROW) const_iv (BOW) const_iv (WEAPON)
1143 const_iv (ARMOUR) const_iv (PEDESTAL) const_iv (ALTAR) const_iv (LOCKED_DOOR) 1150 const_iv (ARMOUR) const_iv (PEDESTAL) const_iv (ALTAR) const_iv (LOCKED_DOOR)
1606object *actives (U32 index) 1613object *actives (U32 index)
1607 CODE: 1614 CODE:
1608 RETVAL = index < actives.size () ? actives [index] : 0; 1615 RETVAL = index < actives.size () ? actives [index] : 0;
1609 OUTPUT: RETVAL 1616 OUTPUT: RETVAL
1610 1617
1618const char *slot_save_name (U32 slot)
1619 ALIAS:
1620 slot_use_name = 1
1621 slot_nonuse_name = 2
1622 CODE:
1623{
1624 if (slot >= NUM_BODY_LOCATIONS)
1625 croak ("body slot index out of range");
1626
1627 switch (ix)
1628 {
1629 case 0: RETVAL = body_locations[slot].save_name; break;
1630 case 1: RETVAL = body_locations[slot].use_name; break;
1631 case 2: RETVAL = body_locations[slot].nonuse_name; break;
1632 }
1633}
1634 OUTPUT:
1635 RETVAL
1636
1611# missing properties 1637# missing properties
1612 1638
1613object *head (object *op) 1639object *head (object *op)
1614 PROTOTYPE: $ 1640 PROTOTYPE: $
1615 CODE: 1641 CODE:
1640int 1666int
1641num_animations (object *op) 1667num_animations (object *op)
1642 CODE: 1668 CODE:
1643 RETVAL = NUM_ANIMATIONS (op); 1669 RETVAL = NUM_ANIMATIONS (op);
1644 OUTPUT: RETVAL 1670 OUTPUT: RETVAL
1671
1672int slot_info (object *op, UV slot, int value = 0)
1673 ALIAS:
1674 slot_used = 1
1675 CODE:
1676{
1677 if (slot >= NUM_BODY_LOCATIONS)
1678 croak ("body slot index out of range");
1679
1680 RETVAL = ix ? op->slot[slot].info : op->slot[slot].used;
1681
1682 if (items > 2)
1683 if (ix)
1684 op->slot[slot].info = value;
1685 else
1686 op->slot[slot].used = value;
1687}
1688 OUTPUT:
1689 RETVAL
1645 1690
1646object *find_best_object_match (object *op, utf8_string match) 1691object *find_best_object_match (object *op, utf8_string match)
1647 1692
1648object *find_marked_object (object *op) 1693object *find_marked_object (object *op)
1649 1694

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines