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.3 by root, Fri Feb 3 16:26:15 2006 UTC vs.
Revision 1.4 by root, Fri Feb 3 17:19:13 2006 UTC

999 999
1000char * 1000char *
1001cf_get_maps_directory (char *path) 1001cf_get_maps_directory (char *path)
1002 ALIAS: maps_directory = 0 1002 ALIAS: maps_directory = 0
1003 1003
1004int
1005cf_find_animation (char *text)
1006
1004MODULE = cf PACKAGE = cf::object PREFIX = cf_object_ 1007MODULE = cf PACKAGE = cf::object PREFIX = cf_object_
1005 1008
1006PROTOTYPES: DISABLE 1009PROTOTYPES: DISABLE
1007 1010
1008SV * 1011SV *
1009cf_object_get_property (object *obj, int type, int idx) 1012get_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
1018SV *
1019set_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
1015int cf_object_get_resistance (object *op, int rtype) 1036int cf_object_get_resistance (object *op, int rtype)
1016 ALIAS: resistance = 0 1037 ALIAS: resistance = 0
1017 1038
1018int cf_object_get_flag (object *op, int flag) 1039int cf_object_get_flag (object *op, int flag)
1122 1143
1123void cf_player_message (object *obj, char *txt, int flags = 0) 1144void cf_player_message (object *obj, char *txt, int flags = 0)
1124 1145
1125object *cf_player_send_inventory (object *op) 1146object *cf_player_send_inventory (object *op)
1126 1147
1148void cf_player_set_marked_item(object *op, object *ob)
1149
1150void cf_player_set_party(object *op, partylist *party)
1151
1127 1152
1128MODULE = cf PACKAGE = cf::object::map PREFIX = cf_ 1153MODULE = cf PACKAGE = cf::object::map PREFIX = cf_
1129
1130mapstruct *cf_map_get_map (char *name)
1131 ALIAS: map = 0
1132
1133mapstruct *cf_map_get_first ()
1134 ALIAS: first = 0
1135
1136object *cf_map_insert_object_there (mapstruct *where, object *op, object *originator, int flags)
1137
1138object *cf_map_insert_object (mapstruct *where, object* op, int x, int y)
1139
1140object* 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
1146MODULE = cf PACKAGE = cf::player PREFIX = cf_ 1155MODULE = cf PACKAGE = cf::player PREFIX = cf_
1147 1156
1148player *cf_player_find (char *name) 1157player *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
1171SV *
1172set_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
1183mapstruct *cf_map_get_map (char *name)
1184 ALIAS: map = 0
1185
1186mapstruct *cf_map_get_first ()
1187 ALIAS: first = 0
1188
1189object *cf_map_insert_object_there (mapstruct *where, object *op, object *originator, int flags)
1190
1191object *cf_map_insert_object (mapstruct *where, object* op, int x, int y)
1192
1193object* 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
1163MODULE = cf PACKAGE = cf::arch PREFIX = cf_archetype_ 1200MODULE = cf PACKAGE = cf::arch PREFIX = cf_archetype_
1164 1201
1165archetype*cf_archetype_get_first() 1202archetype*cf_archetype_get_first()
1166 ALIAS: first = 0 1203 ALIAS: first = 0

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines