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.38 by root, Sat Mar 18 01:32:53 2006 UTC vs.
Revision 1.39 by root, Tue Mar 21 02:08:02 2006 UTC

42#else 42#else
43#define MODULEAPI 43#define MODULEAPI
44#endif 44#endif
45 45
46#include <plugin_common.h> 46#include <plugin_common.h>
47#include <sounds.h>
47 48
48#include <stdarg.h> 49#include <stdarg.h>
49 50
50#include "perlxsi.c" 51#include "perlxsi.c"
51 52
1057 const_iv (SK_SUMMONING) 1058 const_iv (SK_SUMMONING)
1058 const_iv (SK_PYROMANCY) 1059 const_iv (SK_PYROMANCY)
1059 const_iv (SK_EVOCATION) 1060 const_iv (SK_EVOCATION)
1060 const_iv (SK_SORCERY) 1061 const_iv (SK_SORCERY)
1061 const_iv (SK_TWO_HANDED_WEAPON) 1062 const_iv (SK_TWO_HANDED_WEAPON)
1063
1064 const_iv (SOUND_NEW_PLAYER)
1065 const_iv (SOUND_FIRE_ARROW)
1066 const_iv (SOUND_LEARN_SPELL)
1067 const_iv (SOUND_FUMBLE_SPELL)
1068 const_iv (SOUND_WAND_POOF)
1069 const_iv (SOUND_OPEN_DOOR)
1070 const_iv (SOUND_PUSH_PLAYER)
1071 const_iv (SOUND_PLAYER_HITS1)
1072 const_iv (SOUND_PLAYER_HITS2)
1073 const_iv (SOUND_PLAYER_HITS3)
1074 const_iv (SOUND_PLAYER_HITS4)
1075 const_iv (SOUND_PLAYER_IS_HIT1)
1076 const_iv (SOUND_PLAYER_IS_HIT2)
1077 const_iv (SOUND_PLAYER_IS_HIT3)
1078 const_iv (SOUND_PLAYER_KILLS)
1079 const_iv (SOUND_PET_IS_KILLED)
1080 const_iv (SOUND_PLAYER_DIES)
1081 const_iv (SOUND_OB_EVAPORATE)
1082 const_iv (SOUND_OB_EXPLODE)
1083 const_iv (SOUND_CLOCK)
1084 const_iv (SOUND_TURN_HANDLE)
1085 const_iv (SOUND_FALL_HOLE)
1086 const_iv (SOUND_DRINK_POISON)
1087 const_iv (SOUND_CAST_SPELL_0)
1062 }; 1088 };
1063 1089
1064 for (civ = const_iv + sizeof (const_iv) / sizeof (const_iv [0]); civ-- > const_iv; ) 1090 for (civ = const_iv + sizeof (const_iv) / sizeof (const_iv [0]); civ-- > const_iv; )
1065 newCONSTSUB (stash, (char *)civ->name, newSViv (civ->iv)); 1091 newCONSTSUB (stash, (char *)civ->name, newSViv (civ->iv));
1066 1092
1437 1463
1438void cf_object_set_key (object *op, char *keyname, char *value) 1464void cf_object_set_key (object *op, char *keyname, char *value)
1439 1465
1440object *cf_create_object_by_name (const char *name) 1466object *cf_create_object_by_name (const char *name)
1441 1467
1468void change_exp (object *op, double exp, const char *skill_name = 0, int flag = 0)
1469
1470void player_lvl_adj (object *who, object *skill = 0)
1471
1472
1442MODULE = cf PACKAGE = cf::object PREFIX = cf_ 1473MODULE = cf PACKAGE = cf::object PREFIX = cf_
1443 1474
1444void cf_fix_object (object *pl) 1475void cf_fix_object (object *pl)
1445 ALIAS: fix = 0 1476 ALIAS: fix = 0
1446 1477
1530 1561
1531void cf_player_set_party (object *op, partylist *party) 1562void cf_player_set_party (object *op, partylist *party)
1532 1563
1533void change_skill (object *op, double exp, char *skill_name = 0, int flag = 0) 1564void change_skill (object *op, double exp, char *skill_name = 0, int flag = 0)
1534 1565
1535
1536MODULE = cf PACKAGE = cf::object::map PREFIX = cf_ 1566MODULE = cf PACKAGE = cf::object::map PREFIX = cf_
1537 1567
1538MODULE = cf PACKAGE = cf::player PREFIX = cf_player_ 1568MODULE = cf PACKAGE = cf::player PREFIX = cf_player_
1539 1569
1540player *cf_player_find (char *name) 1570player *cf_player_find (char *name)
1541 PROTOTYPE: $ 1571 PROTOTYPE: $
1542 1572
1543void cf_player_move (player *pl, int dir) 1573void cf_player_move (player *pl, int dir)
1544 1574
1545void MapNewmapCmd (player *pl) 1575void MapNewmapCmd (player *pl)
1576
1577void play_sound_player_only (player *pl, int soundnum, int x = 0, int y = 0);
1546 1578
1547# nonstandard 1579# nonstandard
1548object *ob (player *pl) 1580object *ob (player *pl)
1549 CODE: 1581 CODE:
1550 RETVAL = pl->ob; 1582 RETVAL = pl->ob;
1624 int unused_type; 1656 int unused_type;
1625 RETVAL = map_get_map (&unused_type, 0, width, height); 1657 RETVAL = map_get_map (&unused_type, 0, width, height);
1626} 1658}
1627 OUTPUT: 1659 OUTPUT:
1628 RETVAL 1660 RETVAL
1661
1662void delete_map (mapstruct *map)
1663
1664void clean_tmp_map (mapstruct *map)
1665
1666void play_sound_map (mapstruct *map, int x, int y, int sound_num)
1629 1667
1630mapstruct *cf_map_get_map (char *name) 1668mapstruct *cf_map_get_map (char *name)
1631 PROTOTYPE: $ 1669 PROTOTYPE: $
1632 ALIAS: map = 0 1670 ALIAS: map = 0
1633 1671

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines