Crossfire Server, Trunk
plugin_common.cpp
Go to the documentation of this file.
1 /*****************************************************************************/
2 /* Crossfire Plugin Interface Common Parts */
3 /* Version: 2.0beta8 (also known as "Alexander") */
4 /* Contact: yann.chachkoff@myrealbox.com */
5 /*****************************************************************************/
6 /* The CPICP are the various functions of the server that can be used by all */
7 /* plugins. It is recommended that plugins do not call the server-provided */
8 /* functions directly, but instead use the wrappers provided here by the */
9 /* CPICP interface. By doing so, various validity checks can be performed */
10 /* by CPICP, protecting the server from potential nasty effects of passing */
11 /* it wrong parameter values. */
12 /*****************************************************************************/
13 /* That code is placed under the GNU General Public Licence (GPL) */
14 /* (C)2001-2005 by Chachkoff Yann (Feel free to deliver your complaints) */
15 /*****************************************************************************/
16 /* CrossFire, A Multiplayer game for X-windows */
17 /* */
18 /* Copyright (C) 2000 Mark Wedel */
19 /* Copyright (C) 1992 Frank Tore Johansen */
20 /* */
21 /* This program is free software; you can redistribute it and/or modify */
22 /* it under the terms of the GNU General Public License as published by */
23 /* the Free Software Foundation; either version 2 of the License, or */
24 /* (at your option) any later version. */
25 /* */
26 /* This program is distributed in the hope that it will be useful, */
27 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
28 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
29 /* GNU General Public License for more details. */
30 /* */
31 /* You should have received a copy of the GNU General Public License */
32 /* along with this program; if not, write to the Free Software */
33 /* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
34 /* */
35 /*****************************************************************************/
36 
37 #include <assert.h>
38 #include <string.h>
39 
40 #include "plugin_common.h"
41 
56 
137 
138 #define GET_HOOK(x, y, z) { \
139  getHooks(&z, 1, y, &x); \
140  if (z != CFAPI_FUNC) { \
141  printf("unable to find hook %s!\n", y); \
142  return 0; \
143  } \
144 }
145 
146 int cf_init_plugin(f_plug_api getHooks) {
147  int z;
148 
149  GET_HOOK(cfapiSystem_strdup_local, "cfapi_system_strdup_local", z);
150  GET_HOOK(cfapiSystem_add_string, "cfapi_system_add_string", z);
151  GET_HOOK(cfapiSystem_register_global_event, "cfapi_system_register_global_event", z);
152  GET_HOOK(cfapiSystem_remove_string, "cfapi_system_remove_string", z);
153  GET_HOOK(cfapiSystem_directory, "cfapi_system_directory", z);
154  GET_HOOK(cfapiSystem_unregister_global_event, "cfapi_system_unregister_global_event", z);
155  GET_HOOK(cfapiSystem_find_animation, "cfapi_system_find_animation", z);
156  GET_HOOK(cfapiSystem_find_face, "cfapi_system_find_face", z);
157  GET_HOOK(cfapiSystem_re_cmp, "cfapi_system_re_cmp", z);
158  GET_HOOK(cfapiObject_get_property, "cfapi_object_get_property", z);
159  GET_HOOK(cfapiObject_set_property, "cfapi_object_set_property", z);
160  GET_HOOK(cfapiObject_apply, "cfapi_object_apply", z);
161  GET_HOOK(cfapiObject_identify, "cfapi_object_identify", z);
162  GET_HOOK(cfapiObject_describe, "cfapi_object_describe", z);
163  GET_HOOK(cfapiObject_drain, "cfapi_object_drain", z);
164  GET_HOOK(cfapiObject_fix, "cfapi_object_fix", z);
165  GET_HOOK(cfapiObject_give_skill, "cfapi_object_give_skill", z);
166  GET_HOOK(cfapiObject_transmute, "cfapi_object_transmute", z);
167  GET_HOOK(cfapiObject_remove, "cfapi_object_remove", z);
168  GET_HOOK(cfapiObject_delete, "cfapi_object_delete", z);
169  GET_HOOK(cfapiObject_clone, "cfapi_object_clone", z);
170  GET_HOOK(cfapiObject_create, "cfapi_object_create", z);
171  GET_HOOK(cfapiObject_insert, "cfapi_object_insert", z);
172  GET_HOOK(cfapiObject_split, "cfapi_object_split", z);
173  GET_HOOK(cfapiObject_merge, "cfapi_object_merge", z);
174  GET_HOOK(cfapiObject_distance, "cfapi_object_distance", z);
175  GET_HOOK(cfapiObject_update, "cfapi_object_update", z);
176  GET_HOOK(cfapiObject_clear, "cfapi_object_clear", z);
177  GET_HOOK(cfapiObject_reset, "cfapi_object_reset", z);
178  GET_HOOK(cfapiObject_activate_rune, "cfapi_object_spring_trap", z);
179  GET_HOOK(cfapiObject_check_trigger, "cfapi_object_check_trigger", z);
180  GET_HOOK(cfapiObject_query_money, "cfapi_object_query_money", z);
181  GET_HOOK(cfapiObject_cast, "cfapi_object_cast", z);
182  GET_HOOK(cfapiObject_learn_spell, "cfapi_object_learn_spell", z);
183  GET_HOOK(cfapiObject_forget_spell, "cfapi_object_forget_spell", z);
184  GET_HOOK(cfapiObject_check_spell, "cfapi_object_check_spell", z);
185  GET_HOOK(cfapiObject_pay_amount, "cfapi_object_pay_amount", z);
186  GET_HOOK(cfapiObject_pay_item, "cfapi_object_pay_item", z);
187  GET_HOOK(cfapiObject_transfer, "cfapi_object_transfer", z);
188  GET_HOOK(cfapiObject_find_archetype_inside, "cfapi_object_find_archetype_inside", z);
189  GET_HOOK(cfapiObject_remove, "cfapi_object_remove", z);
190  GET_HOOK(cfapiObject_delete, "cfapi_object_delete", z);
191  GET_HOOK(cfapiObject_out_of_map, "cfapi_map_out_of_map", z);
192  GET_HOOK(cfapiObject_drop, "cfapi_object_drop", z);
193  GET_HOOK(cfapiObject_change_abil, "cfapi_object_change_abil", z);
194  GET_HOOK(cfapiObject_say, "cfapi_object_say", z);
195  GET_HOOK(cfapiMap_create_path, "cfapi_map_create_path", z);
196  GET_HOOK(cfapiMap_get_property, "cfapi_map_get_property", z);
197  GET_HOOK(cfapiMap_set_property, "cfapi_map_set_property", z);
198  GET_HOOK(cfapiMap_get_map, "cfapi_map_get_map", z);
199  GET_HOOK(cfapiMap_message, "cfapi_map_message", z);
200  GET_HOOK(cfapiMap_get_object_at, "cfapi_map_get_object_at", z);
201  GET_HOOK(cfapiMap_find_by_archetype_name, "cfapi_map_find_by_archetype_name", z);
202  GET_HOOK(cfapiMap_change_light, "cfapi_map_change_light", z);
203  GET_HOOK(cfapiMap_has_been_loaded, "cfapi_map_has_been_loaded", z);
204  GET_HOOK(cfapiMap_trigger_connected, "cfapi_map_trigger_connected", z);
205  GET_HOOK(cfapiPlayer_find, "cfapi_player_find", z);
206  GET_HOOK(cfapiPlayer_message, "cfapi_player_message", z);
207  GET_HOOK(cfapiObject_teleport, "cfapi_object_teleport", z);
208  GET_HOOK(cfapiObject_pickup, "cfapi_object_pickup", z);
209  GET_HOOK(cfapiObject_get_key, "cfapi_object_get_key", z);
210  GET_HOOK(cfapiObject_set_key, "cfapi_object_set_key", z);
211  GET_HOOK(cfapiObject_move, "cfapi_object_move", z);
212  GET_HOOK(cfapiObject_apply_below, "cfapi_object_apply_below", z);
213  GET_HOOK(cfapiArchetype_get_property, "cfapi_archetype_get_property", z);
214  GET_HOOK(cfapiParty_get_property, "cfapi_party_get_property", z);
215  GET_HOOK(cfapiRegion_get_property, "cfapi_region_get_property", z);
216  GET_HOOK(cfapiPlayer_can_pay, "cfapi_player_can_pay", z);
217  GET_HOOK(cfapiSystem_log, "cfapi_log", z);
218  GET_HOOK(cfapiSystem_get_time, "cfapi_system_get_time", z);
219  GET_HOOK(cfapiSystem_timer_create, "cfapi_system_timer_create", z);
220  GET_HOOK(cfapiSystem_timer_destroy, "cfapi_system_timer_destroy", z);
221  GET_HOOK(cfapiFriendlylist_get_next, "cfapi_friendlylist_get_next", z);
222  GET_HOOK(cfapiSet_random_map_variable, "cfapi_set_random_map_variable", z);
223  GET_HOOK(cfapiGenerate_random_map, "cfapi_generate_random_map", z);
224  GET_HOOK(cfapiObject_change_exp, "cfapi_object_change_exp", z);
225  GET_HOOK(cfapiSystem_get_season_name, "cfapi_system_get_season_name", z);
226  GET_HOOK(cfapiSystem_get_month_name, "cfapi_system_get_month_name", z);
227  GET_HOOK(cfapiSystem_get_weekday_name, "cfapi_system_get_weekday_name", z);
228  GET_HOOK(cfapiSystem_get_periodofday_name, "cfapi_system_get_periodofday_name", z);
229  GET_HOOK(cfapiObject_user_event, "cfapi_object_user_event", z);
230  GET_HOOK(cfapiSystem_find_string, "cfapi_system_find_string", z);
231  GET_HOOK(cfapiCost_string_from_value, "cfapi_cost_string_from_value", z);
232  GET_HOOK(cfapiPlayer_quest, "cfapi_player_quest", z);
233  GET_HOOK(cfapiObject_remove_depletion, "cfapi_object_remove_depletion", z);
234  GET_HOOK(cfapiObject_find_by_arch_name, "cfapi_object_find_by_arch_name", z);
235  GET_HOOK(cfapiObject_find_by_name, "cfapi_object_find_by_name", z);
236  GET_HOOK(cfapiPlayer_knowledge, "cfapi_player_knowledge", z);
237  GET_HOOK(cfapiObject_perm_exp, "cfapi_object_perm_exp", z);
238  GET_HOOK(cfapiSystem_register_command, "cfapi_register_command", z);
239  GET_HOOK(cfapiSystem_unregister_command, "cfapi_unregister_command", z);
240  GET_HOOK(cfapiSystem_get_object_vector, "cfapi_get_object_vector", z);
241  GET_HOOK(cfapiSystem_get_map_vector, "cfapi_get_map_vector", z);
242  GET_HOOK(cfapiSystem_get_archetype_vector, "cfapi_get_archetype_vector", z);
243  GET_HOOK(cfapiSystem_get_party_vector, "cfapi_get_party_vector", z);
244  GET_HOOK(cfapiSystem_get_region_vector, "cfapi_get_region_vector", z);
245  return 1;
246 }
247 
248 /* Should get replaced by tons of more explicit wrappers */
249 /*void *cf_map_get_property(mapstruct *map, int propcode) {
250  int type;
251  return cfapiMap_get_property(&type, propcode, map);
252 }*/
253 
254 int cf_map_get_int_property(mapstruct *map, int property) {
255  int type, value;
256 
257  cfapiMap_get_property(&type, map, property, &value);
258  assert(type == CFAPI_INT);
259  return value;
260 }
261 
262 int cf_object_user_event(object *op, object *activator, object *third, const char *message, int fix) {
263  int type, value;
264 
266  assert(type == CFAPI_INT);
267  return value;
268 }
269 
271  int type;
272  sstring value;
273 
274  cfapiMap_get_property(&type, map, propcode, &value);
275  assert(type == CFAPI_SSTRING);
276  return value;
277 }
278 
280  int type;
281  mapstruct *value;
282 
283  cfapiMap_get_property(&type, map, propcode, &value);
284  assert(type == CFAPI_PMAP);
285  return value;
286 }
287 
289  int type;
290  region *value;
291 
292  cfapiMap_get_property(&type, map, propcode, &value);
293  assert(type == CFAPI_PREGION);
294  return value;
295 }
296 
297 /* Should get replaced by tons of more explicit wrappers */
298 void cf_map_set_int_property(mapstruct *map, int propcode, int value) {
299  int type;
300 
301  cfapiMap_set_property(&type, map, propcode, value);
302  assert(type == CFAPI_INT);
303 }
304 
305 void cf_map_set_string_property(mapstruct *map, int propcode, const char *value) {
306  int type;
307 
308  cfapiMap_set_property(&type, map, propcode, value);
309  assert(type == CFAPI_STRING);
310 }
311 
312 /* Should get replaced by tons of more explicit wrappers */
313 int16_t cf_object_get_resistance(object *op, int rtype) {
314  int type;
315  int16_t resist;
316 
318  assert(type == CFAPI_INT16);
319  return resist;
320 }
321 void cf_object_set_resistance(object *op, int rtype, int16_t value) {
322  int type;
323 
325  assert(type == CFAPI_INT16);
326 }
327 
328 /* Should get replaced by tons of more explicit wrappers */
329 void cf_object_set_int_property(object *op, int propcode, int value) {
330  int type;
331 
332  cfapiObject_set_property(&type, op, propcode, value);
333  assert(type == CFAPI_INT);
334 }
335 int cf_object_get_int_property(object *op, int propcode) {
336  int type, value;
337 
338  cfapiObject_get_property(&type, op, propcode, &value);
339  assert(type == CFAPI_INT);
340  return value;
341 }
342 long cf_object_get_long_property(object *op, long propcode) {
343  int type;
344  long value;
345 
346  cfapiObject_get_property(&type, op, propcode, &value);
347  assert(type == CFAPI_LONG);
348  return value;
349 }
350 void cf_object_set_movetype_property(object *op, int propcode, MoveType value) {
351  int type;
352 
353  /* note: MoveType can't be used through va_arg, so use MoveType * */
354  cfapiObject_set_property(&type, op, propcode, &value);
355  assert(type == CFAPI_MOVETYPE);
356 }
358  int type;
359  MoveType value;
360 
361  cfapiObject_get_property(&type, op, propcode, &value);
362  assert(type == CFAPI_MOVETYPE);
363  return value;
364 }
365 object *cf_object_get_object_property(object *op, int propcode) {
366  int type;
367  object *value;
368 
369  cfapiObject_get_property(&type, op, propcode, &value);
370  assert(type == CFAPI_POBJECT);
371  return value;
372 }
373 mapstruct *cf_object_get_map_property(object *op, int propcode) {
374  int type;
375  mapstruct *value;
376 
377  cfapiObject_get_property(&type, op, propcode, &value);
378  assert(type == CFAPI_PMAP);
379  return value;
380 }
381 int64_t cf_object_get_int64_property(object *op, int propcode) {
382  int type;
383  int64_t value;
384 
385  cfapiObject_get_property(&type, op, propcode, &value);
386  assert(type == CFAPI_SINT64);
387  return value;
388 }
389 /* Should get replaced by tons of more explicit wrappers */
390 void cf_object_set_long_property(object *op, int propcode, long value) {
391  int type;
392 
393  cfapiObject_set_property(&type, op, propcode, value);
394  assert(type == CFAPI_LONG);
395 }
396 void cf_object_set_float_property(object *op, int propcode, float value) {
397  int type;
398 
399  cfapiObject_set_property(&type, op, propcode, value);
400  assert(type == CFAPI_FLOAT);
401 }
402 void cf_object_set_int64_property(object *op, int propcode, int64_t value) {
403  int type;
404 
405  cfapiObject_set_property(&type, op, propcode, value);
406  assert(type == CFAPI_SINT64);
407 }
408 float cf_object_get_float_property(object *op, int propcode) {
409  int type;
410  float value;
411 
412  cfapiObject_get_property(&type, op, propcode, &value);
413  assert(type == CFAPI_FLOAT);
414  return value;
415 }
417  int type;
418  archetype *value;
419 
420  cfapiObject_get_property(&type, op, propcode, &value);
421  assert(type == CFAPI_PARCH);
422  return value;
423 }
425  int type;
426  partylist *value;
427 
428  cfapiObject_get_property(&type, op, propcode, &value);
429  assert(type == CFAPI_PPARTY);
430  return value;
431 }
432 double cf_object_get_double_property(object *op, int propcode) {
433  int type;
434  double value;
435 
436  cfapiObject_get_property(&type, op, propcode, &value);
437  assert(type == CFAPI_DOUBLE);
438  return value;
439 }
440 sstring cf_object_get_sstring_property(object *op, int propcode) {
441  int type;
442  sstring value;
443 
444  cfapiObject_get_property(&type, op, propcode, &value);
445  assert(type == CFAPI_SSTRING);
446  return value;
447 }
448 char *cf_object_get_string_property(object *op, int propcode, char *buf, int size) {
449  int type;
450 
451  cfapiObject_get_property(&type, op, propcode, buf, size);
452  assert(type == CFAPI_STRING);
453  return buf;
454 }
455 /* Should get replaced by tons of more explicit wrappers */
456 void cf_object_set_string_property(object *op, int propcode, const char *value) {
457  int type;
458 
459  /* use cf_object_set_face() for changing the face! */
460  assert(propcode != CFAPI_OBJECT_PROP_FACE);
461  /* use cf_object_set_animation() to change the animation */
462  assert(propcode != CFAPI_OBJECT_PROP_ANIMATION);
463 
464  cfapiObject_set_property(&type, op, propcode, value);
465  assert(type == CFAPI_STRING);
466 }
467 
474 int cf_object_set_face(object *op, const char *face) {
475  int type, ret;
477  assert(type == CFAPI_INT);
478  return ret;
479 }
486 int cf_object_set_animation(object *op, const char *animation) {
487  int type, ret;
489  assert(type == CFAPI_INT);
490  return ret;
491 }
492 
493 void cf_object_set_object_property(object *op, int propcode, object *value) {
494  int type;
495 
496  cfapiObject_set_property(&type, op, propcode, value);
497  assert(type == CFAPI_POBJECT);
498 }
499 
504 void cf_object_change_exp(object *op, int64_t exp, const char *skill_name, int flag) {
505  int type;
506 
507  cfapiObject_change_exp(&type, op, exp, skill_name && strlen(skill_name) > 0 ? skill_name : NULL, flag);
508  assert(type == CFAPI_NONE);
509 }
510 
515 int64_t cf_object_perm_exp(object *op) {
516  int type;
517  int64_t ret;
518 
519  cfapiObject_perm_exp(&type, op, &ret);
520  assert(type == CFAPI_SINT64);
521  return ret;
522 }
523 
524 int cf_player_move(player *pl, int dir) {
525  int type, ret;
526 
527  cfapiObject_move(&type, 1, pl, dir, &ret);
528  assert(type == CFAPI_INT);
529  return ret;
530 }
531 int cf_object_move(object *op, int dir, object*originator) {
532  int type, ret;
533 
534  cfapiObject_move(&type, 0, op, dir, originator, &ret);
535  assert(type == CFAPI_INT);
536  return ret;
537 }
542 int cf_object_apply(object *op, object *tmp, int aflag) {
543  int type, ret;
544 
545  cfapiObject_apply(&type, op, tmp, aflag, &ret);
546  return ret;
547 }
548 
553 void cf_object_apply_below(object *pl) {
554  int type;
555 
557 }
562 void cf_object_remove(object *op) {
563  int type;
564 
566 }
572  int type;
573 
575 }
579 object *cf_object_present_archname_inside(object *op, char *whatstr) {
580  int type;
581  object *value;
582 
584  assert(type == CFAPI_POBJECT);
585  return value;
586 }
587 
592 object *cf_object_find_by_arch_name(const object *who, const char *name) {
593  int type;
594  object *result;
595 
597  assert(type == CFAPI_POBJECT);
598  return result;
599 }
600 
605 object *cf_object_find_by_name(const object *who, const char *name) {
606  int type;
607  object *result;
608 
610  assert(type == CFAPI_POBJECT);
611  return result;
612 }
613 
618 int cf_object_transfer(object *op, int x, int y, int randomly, object *originator) {
619  int type, value;
620 
621  cfapiObject_transfer(&type, op, 0, x, y, randomly, originator, &value);
622  assert(type == CFAPI_INT);
623  return value;
624 }
625 
630 int cf_object_move_to(object *op, int x, int y) {
631  int type, value;
632 
633  cfapiObject_transfer(&type, op, 2, x, y, &value);
634  assert(type == CFAPI_INT);
635  return value;
636 }
637 
642 object *cf_object_change_map(object *op, mapstruct *m, object *originator, int flag, int x, int y) {
643  int type;
644  object *value;
645 
646  cfapiObject_transfer(&type, op, 1, m, originator, flag, x, y, &value);
647  assert(type == CFAPI_POBJECT);
648  return value;
649 }
650 
655 object *cf_map_get_object_at(mapstruct *m, int x, int y) {
656  int type;
657  object *value;
658 
660  assert(type == CFAPI_POBJECT);
661  return value;
662 }
667 void cf_map_message(mapstruct *m, const char *msg, int color) {
668  int type;
669 
671 }
672 
683 object *cf_object_clone(object *op, int clonetype) {
684  int type;
685  object *value;
686 
687  cfapiObject_clone(&type, op, clonetype, &value);
688  assert(type == CFAPI_POBJECT);
689  return value;
690 }
691 
692 
697 object *cf_object_split(object *orig_ob, uint32_t nr, char *err, size_t size) {
698  int type;
699  object *value;
700 
701  cfapiObject_split(&type, orig_ob, nr, err, size, &value);
702 
703  if (value == NULL)
704  {
705  assert(type == CFAPI_NONE);
706  }
707  else
708  {
709  assert(type == CFAPI_POBJECT);
710  }
711 
712  return value;
713 }
714 
715 
720 int cf_object_pay_item(object *op, object *pl) {
721  int type, value;
722 
724  assert(type == CFAPI_INT);
725  return value;
726 }
727 
732 int cf_object_pay_amount(object *pl, uint64_t to_pay) {
733  int type, value;
734 
735  cfapiObject_pay_amount(&type, pl, to_pay, &value);
736  assert(type == CFAPI_INT);
737  return value;
738 }
739 
744 int cf_object_cast_spell(object *op, object *caster, int dir, object *spell_ob, char *stringarg) {
745  int type, value;
746 
747  cfapiObject_cast(&type, op, caster, dir, spell_ob, stringarg, &value);
748  assert(type == CFAPI_INT);
749  return value;
750 }
751 
756 void cf_object_learn_spell(object *op, object *spell, int special_prayer) {
757  int type;
758 
759  cfapiObject_learn_spell(&type, op, spell, special_prayer);
760  assert(type == CFAPI_NONE);
761 }
762 
768 void cf_object_forget_spell(object *op, object *sp) {
769  int type;
770 
772 }
773 
778 object *cf_object_check_for_spell(object *op, const char *name) {
779  int type;
780  object *value;
781 
783  assert(type == CFAPI_POBJECT);
784  return value;
785 }
786 
787 void cf_player_message(object *op, const char *txt, int flags) {
788  int type;
789 
790  cfapiPlayer_message(&type, flags, 0, op, txt);
791  assert(type == CFAPI_NONE);
792 }
793 
799  int type, result;
800 
802  assert(type == CFAPI_INT);
803  return result;
804 }
805 
812 object *cf_identify(object *op) {
813  int type;
814  object *result;
815 
817  assert(type == CFAPI_POBJECT);
818  return result;
819 }
820 
825 player *cf_player_find(const char *plname) {
826  int type;
827  player *value;
828 
829  cfapiPlayer_find(&type, plname, &value);
830  assert(type == CFAPI_PPLAYER);
831  return value;
832 }
833 
834 char *cf_player_get_title(object *op, char *title, int size) {
835  int type;
836 
838  assert(type == CFAPI_STRING);
839  return title;
840 }
841 
842 void cf_player_set_title(object *op, const char *title) {
843  int type;
844 
846 }
847 
849  int type;
850  sstring value;
851 
853  assert(type == CFAPI_SSTRING);
854  return value;
855 }
856 
857 object *cf_player_get_marked_item(object *op) {
858  int type;
859  object *value;
860 
862  assert(type == CFAPI_POBJECT);
863  return value;
864 }
865 
866 void cf_player_set_marked_item(object *op, object *ob) {
867  int type;
868 
870 }
871 
874 }
875 
876 void cf_player_set_party(object *op, partylist *party) {
877  int type;
878 
880 }
881 
886 int cf_player_can_pay(object *pl) {
887  int type, value;
888 
890  assert(type == CFAPI_INT);
891  return value;
892 }
893 
900 int cf_player_knowledge_has(object *op, const char *knowledge) {
901  int type, value;
902 
904  assert(type == CFAPI_INT);
905  return value;
906 }
907 
913 void cf_player_knowledge_give(object *op, const char *knowledge) {
914  int type;
915 
917  assert(type == CFAPI_NONE);
918 }
919 
924 int cf_player_arrest(object *who) {
925  int type, value;
926  cfapiObject_move(&type, 2, who, &value);
927  assert(type == CFAPI_INT);
928  return value;
929 }
930 
935 mapstruct *cf_map_get_map(const char *name, int flags) {
936  int type;
937  mapstruct *ret;
938 
939  cfapiMap_get_map(&type, 1, name, flags, &ret);
940  assert(type == CFAPI_PMAP);
941  return ret;
942 }
943 
948 mapstruct *cf_get_empty_map(int sizex, int sizey) {
949  int type;
950  mapstruct *ret;
951 
952  cfapiMap_get_map(&type, 0, sizex, sizey, &ret);
953  assert(type == CFAPI_PMAP);
954  return ret;
955 }
956 
962  int type;
963  mapstruct *ret;
964 
966  assert(type == CFAPI_PMAP);
967  return ret;
968 }
969 
977 }
978 
983 int cf_object_query_money(const object *op) {
984  int type, value;
985 
987  assert(type == CFAPI_INT);
988  return value;
989 }
990 
994 void cf_cost_string_from_value(uint64_t cost, int largest_coin, char *buffer, int length) {
995  int type;
996 
997  cfapiCost_string_from_value(&type, cost, largest_coin, buffer, length);
998  assert(type == CFAPI_NONE);
999 }
1000 
1005 void cf_spring_trap(object *trap, object *victim) {
1006  int type;
1007 
1008  if (trap)
1010 }
1011 
1016 int cf_object_check_trigger(object *op, object *cause) {
1017  int type, value;
1018 
1019  cfapiObject_check_trigger(&type, op, cause, &value);
1020  assert(type == CFAPI_INT);
1021  return value;
1022 }
1023 
1028 void cf_map_trigger_connected(objectlink *ol, object *cause, int state) {
1029  int type;
1030 
1031  cfapiMap_trigger_connected(&type, ol, cause, state);
1032  assert(type == CFAPI_NONE);
1033 }
1034 
1035 int cf_object_out_of_map(object *op, int x, int y) {
1036  int type, value;
1037 
1038  cfapiObject_out_of_map(&type, op->map, x, y, &value);
1039  assert(type == CFAPI_INT);
1040  return value;
1041 }
1042 
1043 void cf_object_drop(object *op, object *author) {
1044  int type;
1045 
1047 }
1048 
1049 void cf_object_say(object *op, const char *msg) {
1050  int type, value;
1051 
1053  assert(type == CFAPI_INT);
1054 }
1055 
1056 object *cf_object_insert_object(object *op, object *container) {
1057  int type;
1058  object *value;
1059 
1060  cfapiObject_insert(&type, op, 3, container, &value);
1061  assert(type == CFAPI_POBJECT);
1062  return value;
1063 }
1064 
1069 char *cf_get_maps_directory(const char *name, char *buf, int size) {
1070  int type;
1071 
1072  cfapiMap_create_path(&type, 0, name, buf, size);
1073  assert(type == CFAPI_STRING);
1074  return buf;
1075 }
1076 
1081 object *cf_create_object(void) {
1082  int type;
1083  object *value;
1084 
1085  cfapiObject_create(&type, 0, &value);
1086  assert(type == CFAPI_POBJECT);
1087  return value;
1088 }
1089 
1093 object *cf_create_object_by_name(const char *name) {
1094  int type;
1095  object *value;
1096 
1098  assert(type == CFAPI_POBJECT);
1099  return value;
1100 }
1101 
1103  int type;
1104 
1106  assert(type == CFAPI_NONE);
1107 }
1108 
1110  int type;
1111 
1113  assert(type == CFAPI_NONE);
1114 }
1115 
1130 const char *cf_get_directory(int id) {
1131  int type;
1132  const char *ret;
1133 
1134  cfapiSystem_directory(&type, id, &ret);
1135  assert(type == CFAPI_STRING);
1136  return ret;
1137 }
1138 
1143 const char *cf_re_cmp(const char *str, const char *regexp) {
1144  int type;
1145  const char *result;
1146 
1147  cfapiSystem_re_cmp(&type, str, regexp, &result);
1148  assert(type == CFAPI_STRING);
1149  return result;
1150 }
1151 
1156 void cf_fix_object(object *op) {
1157  int type;
1158 
1159  if (op)
1160  cfapiObject_fix(&type, op);
1161 }
1162 
1167 sstring cf_add_string(const char *str) {
1168  int type;
1169  sstring ret;
1170 
1171  if (!str)
1172  return NULL;
1173  cfapiSystem_add_string(&type, str, &ret);
1174  assert(type == CFAPI_SSTRING);
1175  return ret;
1176 }
1177 
1183  int type;
1184 
1185  if (str)
1187 }
1188 
1190  int type;
1191  sstring ret;
1192 
1193  if (!str)
1194  return NULL;
1195 
1196  cfapiSystem_find_string(&type, str, &ret);
1197  assert(type == CFAPI_SSTRING);
1198  return ret;
1199 }
1200 
1201 char *cf_query_name(object *ob, char *name, int size) {
1202  int type;
1203 
1205  assert(type == CFAPI_STRING);
1206  return name;
1207 }
1208 
1210  int type;
1211  sstring value;
1212 
1214  assert(type == CFAPI_SSTRING);
1215  return value;
1216 }
1217 
1219  int type;
1220  sstring value;
1221 
1223  assert(type == CFAPI_SSTRING);
1224  return value;
1225 }
1226 
1227 void cf_object_set_weight(object *ob, int weight) {
1228  int type;
1229 
1231  assert(type == CFAPI_INT);
1232 }
1233 
1234 void cf_object_set_weight_limit(object *ob, int weight_limit) {
1235  int type;
1236 
1238  assert(type == CFAPI_INT);
1239 }
1240 
1241 int cf_object_get_weight(object *ob) {
1242  int type, weight;
1243 
1245  assert(type == CFAPI_INT);
1246  return weight;
1247 }
1248 
1250  int type, limit;
1251 
1253  assert(type == CFAPI_INT);
1254  return limit;
1255 }
1256 
1260 int cf_object_set_nrof(object *ob, int nrof) {
1261  int type;
1262 
1263  if (nrof < 0)
1264  return -1;
1265 
1267  return 0;
1268 }
1269 
1270 int cf_object_get_nrof(object *ob) {
1271  int type, nrof;
1272 
1274  return nrof;
1275 }
1276 
1277 int cf_object_get_flag(object *ob, int flag) {
1278  int type;
1279  int rv;
1280 
1282  if (rv != 0)
1283  return 1;
1284  else
1285  return 0;
1286 }
1287 
1288 void cf_object_set_flag(object *ob, int flag, int value) {
1289  int type;
1290 
1292 }
1293 
1298 object *cf_object_insert_in_ob(object *op, object *where) {
1299  int type;
1300  object *value;
1301 
1304  }
1305 
1307  assert(type == CFAPI_POBJECT);
1308  return value;
1309 }
1310 
1315 object *cf_map_insert_object_there(object *op, mapstruct *m, object *originator, int flag) {
1316  int type;
1317  object *value;
1318 
1319  cfapiObject_insert(&type, op, 1, m, originator, flag, &value);
1320  assert(type == CFAPI_POBJECT);
1321  return value;
1322 }
1323 
1329 object *cf_map_insert_object(mapstruct *where, object *op, int x, int y) {
1330  int type;
1331  object *value;
1332 
1333  cfapiObject_insert(&type, op, 0, where, NULL, 0 , x, y, &value);
1334  assert(type == CFAPI_POBJECT);
1335  return value;
1336 }
1337 
1351 object *cf_map_insert_object_around(mapstruct *where, object *op, int x, int y) {
1352  int type;
1353  object *value;
1354 
1355  cfapiObject_insert(&type, op, 2, where, NULL, 0 , x, y, &value);
1356  assert(type == CFAPI_POBJECT);
1357  return value;
1358 }
1359 
1360 int cf_object_teleport(object *op, mapstruct *map, int x, int y) {
1361  int type, value;
1362 
1364  assert(type == CFAPI_INT);
1365  return value;
1366 }
1367 
1371 object *cf_map_find_by_archetype_name(const char *str, mapstruct *map, int nx, int ny) {
1372  int type;
1373  object *value;
1374 
1376  assert(type == CFAPI_POBJECT);
1377  return value;
1378 }
1379 
1382 }
1383 
1386 }
1387 
1390 }
1391 
1394 }
1395 
1398 }
1399 
1402 }
1403 
1406 }
1407 
1410 }
1411 
1414 }
1415 
1420 int cf_map_change_light(mapstruct *m, int change) {
1421  int type, value;
1422 
1423  cfapiMap_change_light(&type, m, change, &value);
1424  assert(type == CFAPI_INT);
1425  return value;
1426 }
1427 
1428 void cf_object_update(object *op, int flags) {
1429  int type;
1430 
1432 }
1433 
1434 void cf_object_pickup(object *op, object *what) {
1435  int type;
1436 
1437  cfapiObject_pickup(&type, op, what);
1438  assert(type == CFAPI_NONE);
1439 }
1440 
1446 char *cf_strdup_local(const char *str) {
1447  int type;
1448  char *dup;
1449 
1450  if (str == NULL)
1451  return NULL;
1453  assert(type == CFAPI_STRING);
1454  return dup;
1455 }
1456 
1461 int cf_map_get_flags(mapstruct *oldmap, mapstruct **newmap, int16_t x, int16_t y, int16_t *nx, int16_t *ny) {
1462  int type, value;
1463 
1464  cfapiMap_get_property(&type, oldmap, CFAPI_MAP_PROP_FLAGS, newmap, x, y, nx, ny, &value);
1465  assert(type == CFAPI_INT);
1466  return value;
1467 }
1468 
1473 int cf_random_map_set_variable(RMParms *rp, const char *buf) {
1474  int type, ret;
1475 
1476  cfapiSet_random_map_variable(&type, rp, buf, &ret);
1477  assert(type == CFAPI_INT);
1478  return ret;
1479 }
1480 
1485 mapstruct *cf_random_map_generate(const char *OutFileName, RMParms *RP, char **use_layout, sstring reset_group) {
1486  int type;
1487  mapstruct *map;
1488 
1489  cfapiGenerate_random_map(&type, OutFileName, RP, use_layout, reset_group, &map);
1490  assert(type == CFAPI_PMAP);
1491  return map;
1492 }
1493 
1498 int cf_find_animation(const char *name) {
1499  int type, anim;
1500 
1502  assert(type == CFAPI_INT);
1503  return anim;
1504 }
1505 
1510 int cf_find_face(const char *name, int error) {
1511  int type, anim;
1512 
1514  assert(type == CFAPI_INT);
1515  return anim;
1516 }
1517 
1522 void cf_log(LogLevel logLevel, const char *format, ...) {
1523  int type;
1524  /* Copied from common/logger.c */
1525  char buf[20480]; /* This needs to be really really big - larger than any other buffer, since that buffer may
1526  need to be put in this one. */
1527  va_list ap;
1528 
1529  va_start(ap, format);
1530  buf[0] = '\0';
1531  vsprintf(buf, format, ap);
1532  va_end(ap);
1533 
1534  cfapiSystem_log(&type, (int)logLevel, buf);
1535  assert(type == CFAPI_NONE);
1536 }
1537 
1542 void cf_log_plain(LogLevel logLevel, const char *message) {
1543  int type;
1544 
1545  cfapiSystem_log(&type, logLevel, message);
1546  assert(type == CFAPI_NONE);
1547 }
1548 
1550  int type;
1551 
1552  cfapiSystem_get_time(&type, tod);
1553  assert(type == CFAPI_NONE);
1554 }
1555 
1556 const char *cf_get_season_name(int index) {
1557  int type;
1558  char *result;
1559 
1561  assert(type == CFAPI_STRING);
1562  return result;
1563 }
1564 
1565 const char *cf_get_month_name(int index) {
1566  int type;
1567  char *result;
1568 
1570  assert(type == CFAPI_STRING);
1571  return result;
1572 }
1573 
1574 const char *cf_get_weekday_name(int index) {
1575  int type;
1576  char *result;
1577 
1579  assert(type == CFAPI_STRING);
1580  return result;
1581 }
1582 
1583 const char *cf_get_periodofday_name(int index) {
1584  int type;
1585  char *result;
1586 
1588  assert(type == CFAPI_STRING);
1589  return result;
1590 }
1591 
1604 int cf_timer_create(object *ob, long delay, int mode) {
1605  int type, timer;
1606 
1607  cfapiSystem_timer_create(&type, ob, delay, mode, &timer);
1608  assert(type == CFAPI_INT);
1609  return timer;
1610 }
1611 
1620 int cf_timer_destroy(int id) {
1621  int type, code;
1622 
1623  cfapiSystem_timer_destroy(&type, id, &code);
1624  assert(type == CFAPI_INT);
1625  return code;
1626 }
1627 
1637 const char *cf_object_get_key(object *op, const char *keyname) {
1638  int type;
1639  const char *value;
1640 
1641  cfapiObject_get_key(&type, op, keyname, &value);
1642  assert(type == CFAPI_SSTRING);
1643  return value;
1644 }
1645 
1659 int cf_object_set_key(object *op, const char *keyname, const char *value, int add_key) {
1660  int type, ret;
1661 
1662  cfapiObject_set_key(&type, op, keyname, value, add_key, &ret);
1663  assert(type == CFAPI_INT);
1664  return ret;
1665 }
1666 
1671 int cf_object_change_abil(object *op, object *tmp) {
1672  int type, ret;
1673 
1674  cfapiObject_change_abil(&type, op, tmp, &ret);
1675  assert(type == CFAPI_INT);
1676  return ret;
1677 }
1678 
1679 /* Archetype-related functions */
1680 
1687  int type;
1688  archetype *value;
1689 
1691  assert(type == CFAPI_PARCH);
1692  return value;
1693 }
1694 
1703  int type;
1704  sstring name;
1705 
1707  assert(type == CFAPI_SSTRING);
1708  return name;
1709 }
1710 
1720  int type;
1721  archetype *value;
1722 
1724  assert(type == CFAPI_PARCH);
1725  return value;
1726 }
1727 
1736  int type;
1737  archetype *value;
1738 
1740  assert(type == CFAPI_PARCH);
1741  return value;
1742 }
1743 
1752  int type;
1753  archetype *value;
1754 
1756  assert(type == CFAPI_PARCH);
1757  return value;
1758 }
1759 
1768  int type;
1769  object *value;
1770 
1772  assert(type == CFAPI_POBJECT);
1773  return value;
1774 }
1775 
1776 /* Party-related functions */
1777 
1784  int type;
1785  partylist *value;
1786 
1788  assert(type == CFAPI_PPARTY);
1789  return value;
1790 }
1791 
1798 const char *cf_party_get_name(partylist *party) {
1799  int type;
1800  sstring value;
1801 
1803  assert(type == CFAPI_SSTRING);
1804  return value;
1805 }
1806 
1815  int type;
1816  partylist *value;
1817 
1819  assert(type == CFAPI_PPARTY);
1820  return value;
1821 }
1822 
1830 const char *cf_party_get_password(partylist *party) {
1831  int type;
1832  sstring value;
1833 
1835  assert(type == CFAPI_SSTRING);
1836  return value;
1837 }
1838 
1847  int type;
1848  player *value;
1849 
1851  assert(type == CFAPI_PPLAYER);
1852  return value;
1853 }
1854 
1865  int type;
1866  player *value;
1867 
1869  assert(type == CFAPI_PPLAYER);
1870  return value;
1871 }
1872 
1879  int type;
1880  region *value;
1881 
1883  assert(type == CFAPI_PREGION);
1884  return value;
1885 }
1886 
1894 const char *cf_region_get_name(region *reg) {
1895  int type;
1896  sstring value;
1897 
1899  assert(type == CFAPI_SSTRING);
1900  return value;
1901 }
1902 
1911  int type;
1912  region *value;
1913 
1915  assert(type == CFAPI_PREGION);
1916  return value;
1917 }
1918 
1927  int type;
1928  region *value;
1929 
1931  assert(type == CFAPI_PREGION);
1932  return value;
1933 }
1934 
1942 const char *cf_region_get_longname(region *reg) {
1943  int type;
1944  sstring value;
1945 
1947  assert(type == CFAPI_SSTRING);
1948  return value;
1949 }
1950 
1958 const char *cf_region_get_message(region *reg) {
1959  int type;
1960  sstring value;
1961 
1963  assert(type == CFAPI_SSTRING);
1964  return value;
1965 }
1966 
1975  int type, value;
1976 
1978  assert(type == CFAPI_INT);
1979  return value;
1980 }
1981 
1990  int type, value;
1991 
1993  assert(type == CFAPI_INT);
1994  return value;
1995 }
1996 
2004 const char *cf_region_get_jail_path(region *reg) {
2005  int type;
2006  sstring value;
2007 
2009  assert(type == CFAPI_SSTRING);
2010  return value;
2011 }
2012 
2013 /* Friendlylist functions. */
2014 
2021  int type;
2022  object *value;
2023 
2025  assert(type == CFAPI_POBJECT);
2026  return value;
2027 }
2028 
2036 object *cf_friendlylist_get_next(object *ob) {
2037  int type;
2038  object *value;
2039 
2041  assert(type == CFAPI_POBJECT);
2042  return value;
2043 }
2044 
2045 /* Quest-related functions */
2046 
2051 int cf_quest_get_player_state(object *pl, sstring quest_code) {
2052  int type, ret;
2053 
2054  cfapiPlayer_quest(&type, CFAPI_PLAYER_QUEST_GET_STATE, pl, quest_code, &ret);
2055  assert(type == CFAPI_INT);
2056 
2057  return ret;
2058 }
2059 
2064 void cf_quest_start(object *pl, sstring quest_code, int state) {
2065  int type;
2066 
2068  assert(type == CFAPI_NONE);
2069 }
2070 
2075 void cf_quest_set_player_state(object *pl, sstring quest_code, int state) {
2076  int type;
2077 
2079  assert(type == CFAPI_NONE);
2080 }
2081 
2086 int cf_quest_was_completed(object *pl, sstring quest_code) {
2087  int type, ret;
2088 
2090  assert(type == CFAPI_INT);
2091 
2092  return ret;
2093 }
2094 
2095 command_registration cf_system_register_command(const char *name, command_function func, uint8_t command_type, float time) {
2096  int type;
2098  cfapiSystem_register_command(&type, 1, name, func, command_type, time, &cr);
2099  assert(type == CFAPI_SINT64);
2100  return cr;
2101 }
2102 
2103 command_registration cf_system_register_command_extra(const char *name, const char *extra, command_function_extra func, uint8_t command_type, float time) {
2104  int type;
2106  cfapiSystem_register_command(&type, 2, name, extra, func, command_type, time, &cr);
2107  assert(type == CFAPI_SINT64);
2108  return cr;
2109 }
2110 
2112  int type;
2114 }
2115 
2116 void cf_system_get_object_vector(int property, std::vector<object *> *list) {
2117  int type;
2119  assert(type == CFAPI_OBJECT_VECTOR);
2120 }
2121 
2122 void cf_system_get_map_vector(int property, std::vector<mapstruct *> *list) {
2123  int type;
2124  cfapiSystem_get_map_vector(&type, property, list);
2125  assert(type == CFAPI_MAP_VECTOR);
2126 }
2127 
2128 void cf_system_get_archetype_vector(int property, std::vector<archetype *> *list) {
2129  int type;
2131  assert(type == CFAPI_ARCHETYPE_VECTOR);
2132 }
2133 
2134 void cf_system_get_party_vector(int property, std::vector<partylist *> *list) {
2135  int type;
2136  cfapiSystem_get_party_vector(&type, property, list);
2137  assert(type == CFAPI_PARTY_VECTOR);
2138 }
2139 
2140 void cf_system_get_region_vector(int property, std::vector<region *> *list) {
2141  int type;
2143  assert(type == CFAPI_REGION_VECTOR);
2144 }
cf_archetype_get_first
archetype * cf_archetype_get_first(void)
Definition: plugin_common.cpp:1686
cfapiSystem_strdup_local
static f_plug_api cfapiSystem_strdup_local
Definition: plugin_common.cpp:47
cf_log_plain
void cf_log_plain(LogLevel logLevel, const char *message)
Definition: plugin_common.cpp:1542
cf_player_knowledge_has
int cf_player_knowledge_has(object *op, const char *knowledge)
Definition: plugin_common.cpp:900
cfapiSystem_get_object_vector
static f_plug_api cfapiSystem_get_object_vector
Definition: plugin_common.cpp:132
cf_object_set_long_property
void cf_object_set_long_property(object *op, int propcode, long value)
Definition: plugin_common.cpp:390
cfapiSystem_find_string
static f_plug_api cfapiSystem_find_string
Definition: plugin_common.cpp:43
CFAPI_SSTRING
#define CFAPI_SSTRING
Definition: plugin.h:70
cf_system_register_command_extra
command_registration cf_system_register_command_extra(const char *name, const char *extra, command_function_extra func, uint8_t command_type, float time)
Definition: plugin_common.cpp:2103
cfapiSystem_get_party_vector
static f_plug_api cfapiSystem_get_party_vector
Definition: plugin_common.cpp:136
cf_party_get_first_player
player * cf_party_get_first_player(partylist *party)
Definition: plugin_common.cpp:1846
CFAPI_PPLAYER
#define CFAPI_PPLAYER
Definition: plugin.h:64
cfapiObject_pay_item
static f_plug_api cfapiObject_pay_item
Definition: plugin_common.cpp:85
CFAPI_POBJECT
#define CFAPI_POBJECT
Definition: plugin.h:58
cf_object_set_flag
void cf_object_set_flag(object *ob, int flag, int value)
Definition: plugin_common.cpp:1288
CFAPI_PARTY_VECTOR
#define CFAPI_PARTY_VECTOR
Definition: plugin.h:76
cf_get_maps_directory
char * cf_get_maps_directory(const char *name, char *buf, int size)
Definition: plugin_common.cpp:1069
CFAPI_OBJECT_VECTOR
#define CFAPI_OBJECT_VECTOR
Definition: plugin.h:72
cfapiObject_clear
static f_plug_api cfapiObject_clear
Definition: plugin_common.cpp:75
cfapiObject_find_by_arch_name
static f_plug_api cfapiObject_find_by_arch_name
Definition: plugin_common.cpp:88
cf_object_change_abil
int cf_object_change_abil(object *op, object *tmp)
Definition: plugin_common.cpp:1671
cf_system_get_archetype_vector
void cf_system_get_archetype_vector(int property, std::vector< archetype * > *list)
Definition: plugin_common.cpp:2128
cf_get_directory
const char * cf_get_directory(int id)
Definition: plugin_common.cpp:1130
cf_get_periodofday_name
const char * cf_get_periodofday_name(int index)
Definition: plugin_common.cpp:1583
cf_map_message
void cf_map_message(mapstruct *m, const char *msg, int color)
Definition: plugin_common.cpp:667
CFAPI_PARTY_PROP_NAME
#define CFAPI_PARTY_PROP_NAME
Definition: plugin.h:270
cf_player_find
player * cf_player_find(const char *plname)
Definition: plugin_common.cpp:825
cfapiSystem_find_animation
static f_plug_api cfapiSystem_find_animation
Definition: plugin_common.cpp:48
cf_player_set_marked_item
void cf_player_set_marked_item(object *op, object *ob)
Definition: plugin_common.cpp:866
CFAPI_MAP_PROP_RESET_TIME
#define CFAPI_MAP_PROP_RESET_TIME
Definition: plugin.h:250
CFAPI_MAP_PROP_RESET_TIMEOUT
#define CFAPI_MAP_PROP_RESET_TIMEOUT
Definition: plugin.h:251
CFAPI_REGION_PROP_LONGNAME
#define CFAPI_REGION_PROP_LONGNAME
Definition: plugin.h:278
cf_object_change_exp
void cf_object_change_exp(object *op, int64_t exp, const char *skill_name, int flag)
Definition: plugin_common.cpp:504
cf_object_update
void cf_object_update(object *op, int flags)
Definition: plugin_common.cpp:1428
CFAPI_NONE
#define CFAPI_NONE
Definition: plugin.h:53
player
Definition: player.h:105
cf_object_move
int cf_object_move(object *op, int dir, object *originator)
Definition: plugin_common.cpp:531
cf_log
void cf_log(LogLevel logLevel, const char *format,...)
Definition: plugin_common.cpp:1522
cf_archetype_get_clone
object * cf_archetype_get_clone(archetype *arch)
Definition: plugin_common.cpp:1767
cf_object_check_trigger
int cf_object_check_trigger(object *op, object *cause)
Definition: plugin_common.cpp:1016
diamondslots.x
x
Definition: diamondslots.py:15
cfapiMap_set_property
static f_plug_api cfapiMap_set_property
Definition: plugin_common.cpp:95
cfapiObject_remove_depletion
static f_plug_api cfapiObject_remove_depletion
Definition: plugin_common.cpp:127
CFAPI_REGION_PROP_NEXT
#define CFAPI_REGION_PROP_NEXT
Definition: plugin.h:276
archininventory.arch
arch
DIALOGCHECK MINARGS 1 MAXARGS 1
Definition: archininventory.py:16
cfapiSystem_unregister_command
static f_plug_api cfapiSystem_unregister_command
Definition: plugin_common.cpp:131
cf_party_get_next_player
player * cf_party_get_next_player(partylist *party, player *op)
Definition: plugin_common.cpp:1864
cfapiObject_get_key
static f_plug_api cfapiObject_get_key
Definition: plugin_common.cpp:108
CFAPI_MAP_PROP_NEXT
#define CFAPI_MAP_PROP_NEXT
Definition: plugin.h:260
cfapiMap_get_object_at
static f_plug_api cfapiMap_get_object_at
Definition: plugin_common.cpp:98
cfapiObject_apply
static f_plug_api cfapiObject_apply
Definition: plugin_common.cpp:59
cfapiObject_set_property
static f_plug_api cfapiObject_set_property
Definition: plugin_common.cpp:58
cfapiSystem_find_face
static f_plug_api cfapiSystem_find_face
Definition: plugin_common.cpp:49
cf_map_get_enter_x
int cf_map_get_enter_x(mapstruct *map)
Definition: plugin_common.cpp:1408
cf_player_knowledge_give
void cf_player_knowledge_give(object *op, const char *knowledge)
Definition: plugin_common.cpp:913
cf_object_get_int_property
int cf_object_get_int_property(object *op, int propcode)
Definition: plugin_common.cpp:335
cf_region_get_message
const char * cf_region_get_message(region *reg)
Definition: plugin_common.cpp:1958
cf_object_get_partylist_property
partylist * cf_object_get_partylist_property(object *op, int propcode)
Definition: plugin_common.cpp:424
cf_fix_object
void cf_fix_object(object *op)
Definition: plugin_common.cpp:1156
cfapiRegion_get_property
static f_plug_api cfapiRegion_get_property
Definition: plugin_common.cpp:114
cf_map_insert_object_there
object * cf_map_insert_object_there(object *op, mapstruct *m, object *originator, int flag)
Definition: plugin_common.cpp:1315
cf_object_get_key
const char * cf_object_get_key(object *op, const char *keyname)
Definition: plugin_common.cpp:1637
cf_object_get_msg
sstring cf_object_get_msg(object *ob)
Definition: plugin_common.cpp:1218
cf_map_insert_object_around
object * cf_map_insert_object_around(mapstruct *where, object *op, int x, int y)
Definition: plugin_common.cpp:1351
cf_object_set_weight_limit
void cf_object_set_weight_limit(object *ob, int weight_limit)
Definition: plugin_common.cpp:1234
guildoracle.list
list
Definition: guildoracle.py:87
cf_object_insert_in_ob
object * cf_object_insert_in_ob(object *op, object *where)
Definition: plugin_common.cpp:1298
cfapiMap_create_path
static f_plug_api cfapiMap_create_path
Definition: plugin_common.cpp:100
cf_region_get_first
region * cf_region_get_first(void)
Definition: plugin_common.cpp:1878
MoveType
unsigned char MoveType
Definition: define.h:417
guildjoin.ob
ob
Definition: guildjoin.py:42
timeofday_t
Definition: tod.h:38
cf_region_get_parent
region * cf_region_get_parent(region *reg)
Definition: plugin_common.cpp:1926
cfapiPlayer_knowledge
static f_plug_api cfapiPlayer_knowledge
Definition: plugin_common.cpp:128
cfapiObject_move
static f_plug_api cfapiObject_move
Definition: plugin_common.cpp:110
cf_system_unregister_command
void cf_system_unregister_command(command_registration command)
Definition: plugin_common.cpp:2111
cf_object_set_object_property
void cf_object_set_object_property(object *op, int propcode, object *value)
Definition: plugin_common.cpp:493
cfapiObject_set_key
static f_plug_api cfapiObject_set_key
Definition: plugin_common.cpp:109
CFAPI_PLAYER_PROP_MARKED_ITEM
#define CFAPI_PLAYER_PROP_MARKED_ITEM
Definition: plugin.h:231
cf_object_split
object * cf_object_split(object *orig_ob, uint32_t nr, char *err, size_t size)
Definition: plugin_common.cpp:697
giveknowledge.knowledge
knowledge
DIALOGCHECK MINARGS 1 MAXARGS 1
Definition: giveknowledge.py:15
cf_object_get_sstring_property
sstring cf_object_get_sstring_property(object *op, int propcode)
Definition: plugin_common.cpp:440
CFAPI_ARCH_PROP_NEXT
#define CFAPI_ARCH_PROP_NEXT
Definition: plugin.h:265
cfapiObject_pay_amount
static f_plug_api cfapiObject_pay_amount
Definition: plugin_common.cpp:84
cf_region_get_next
region * cf_region_get_next(region *reg)
Definition: plugin_common.cpp:1910
flags
static const flag_definition flags[]
Definition: gridarta-types-convert.cpp:101
cf_get_weekday_name
const char * cf_get_weekday_name(int index)
Definition: plugin_common.cpp:1574
cf_object_pay_item
int cf_object_pay_item(object *op, object *pl)
Definition: plugin_common.cpp:720
cf_object_perm_exp
int64_t cf_object_perm_exp(object *op)
Definition: plugin_common.cpp:515
cf_object_get_double_property
double cf_object_get_double_property(object *op, int propcode)
Definition: plugin_common.cpp:432
Ice.tmp
int tmp
Definition: Ice.py:207
cf_object_learn_spell
void cf_object_learn_spell(object *op, object *spell, int special_prayer)
Definition: plugin_common.cpp:756
CFAPI_OBJECT_PROP_FACE
#define CFAPI_OBJECT_PROP_FACE
Definition: plugin.h:217
CFAPI_REGION_PROP_PARENT
#define CFAPI_REGION_PROP_PARENT
Definition: plugin.h:277
cfapiPlayer_find
static f_plug_api cfapiPlayer_find
Definition: plugin_common.cpp:104
cfapiObject_insert
static f_plug_api cfapiObject_insert
Definition: plugin_common.cpp:70
CFAPI_PPARTY
#define CFAPI_PPARTY
Definition: plugin.h:65
cf_party_get_password
const char * cf_party_get_password(partylist *party)
Definition: plugin_common.cpp:1830
cfapiObject_fix
static f_plug_api cfapiObject_fix
Definition: plugin_common.cpp:63
cf_cost_string_from_value
void cf_cost_string_from_value(uint64_t cost, int largest_coin, char *buffer, int length)
Definition: plugin_common.cpp:994
CFAPI_REGION_PROP_JAIL_PATH
#define CFAPI_REGION_PROP_JAIL_PATH
Definition: plugin.h:282
CFAPI_MAP_PROP_WIDTH
#define CFAPI_MAP_PROP_WIDTH
Definition: plugin.h:255
cf_map_get_players
int cf_map_get_players(mapstruct *map)
Definition: plugin_common.cpp:1392
CFAPI_ARCH_PROP_NAME
#define CFAPI_ARCH_PROP_NAME
Definition: plugin.h:264
cf_map_insert_object
object * cf_map_insert_object(mapstruct *where, object *op, int x, int y)
Definition: plugin_common.cpp:1329
cf_map_set_string_property
void cf_map_set_string_property(mapstruct *map, int propcode, const char *value)
Definition: plugin_common.cpp:305
partylist
Definition: party.h:10
cf_party_get_next
partylist * cf_party_get_next(partylist *party)
Definition: plugin_common.cpp:1814
smoking_pipe.color
color
Definition: smoking_pipe.py:5
CFAPI_FLOAT
#define CFAPI_FLOAT
Definition: plugin.h:60
cf_object_set_movetype_property
void cf_object_set_movetype_property(object *op, int propcode, MoveType value)
Definition: plugin_common.cpp:350
cfapiSystem_get_region_vector
static f_plug_api cfapiSystem_get_region_vector
Definition: plugin_common.cpp:135
cf_system_register_command
command_registration cf_system_register_command(const char *name, command_function func, uint8_t command_type, float time)
Definition: plugin_common.cpp:2095
buf
StringBuffer * buf
Definition: readable.cpp:1565
cfapiSystem_remove_string
static f_plug_api cfapiSystem_remove_string
Definition: plugin_common.cpp:45
Moving_Fog.z
z
Definition: Moving_Fog.py:17
cfapiObject_apply_below
static f_plug_api cfapiObject_apply_below
Definition: plugin_common.cpp:111
RMParms
Definition: random_map.h:14
cfapiSystem_get_time
static f_plug_api cfapiSystem_get_time
Definition: plugin_common.cpp:51
CFAPI_MAP_PROP_ENTER_X
#define CFAPI_MAP_PROP_ENTER_X
Definition: plugin.h:257
cf_object_get_weight
int cf_object_get_weight(object *ob)
Definition: plugin_common.cpp:1241
cfapiSystem_get_weekday_name
static f_plug_api cfapiSystem_get_weekday_name
Definition: plugin_common.cpp:122
cfapiObject_describe
static f_plug_api cfapiObject_describe
Definition: plugin_common.cpp:61
cf_map_get_reset_time
int cf_map_get_reset_time(mapstruct *map)
Definition: plugin_common.cpp:1384
cfapiParty_get_property
static f_plug_api cfapiParty_get_property
Definition: plugin_common.cpp:113
m
static event_registration m
Definition: citylife.cpp:425
cf_player_arrest
int cf_player_arrest(object *who)
Definition: plugin_common.cpp:924
cfapiObject_distance
static f_plug_api cfapiObject_distance
Definition: plugin_common.cpp:73
cfapiObject_out_of_map
static f_plug_api cfapiObject_out_of_map
Definition: plugin_common.cpp:90
autojail.who
who
Definition: autojail.py:3
cf_player_get_marked_item
object * cf_player_get_marked_item(object *op)
Definition: plugin_common.cpp:857
cf_timer_destroy
int cf_timer_destroy(int id)
Definition: plugin_common.cpp:1620
cf_friendlylist_get_first
object * cf_friendlylist_get_first(void)
Definition: plugin_common.cpp:2020
CFAPI_ARCH_PROP_HEAD
#define CFAPI_ARCH_PROP_HEAD
Definition: plugin.h:266
disinfect.map
map
Definition: disinfect.py:4
cfapiSystem_re_cmp
static f_plug_api cfapiSystem_re_cmp
Definition: plugin_common.cpp:55
cfapiObject_get_property
static f_plug_api cfapiObject_get_property
Definition: plugin_common.cpp:57
CFAPI_PLAYER_PROP_PARTY
#define CFAPI_PLAYER_PROP_PARTY
Definition: plugin.h:232
cfapiSystem_timer_create
static f_plug_api cfapiSystem_timer_create
Definition: plugin_common.cpp:52
cfapiSystem_unregister_global_event
static f_plug_api cfapiSystem_unregister_global_event
Definition: plugin_common.cpp:46
cf_object_transfer
int cf_object_transfer(object *op, int x, int y, int randomly, object *originator)
Definition: plugin_common.cpp:618
diamondslots.activator
activator
Definition: diamondslots.py:10
cf_object_forget_spell
void cf_object_forget_spell(object *op, object *sp)
Definition: plugin_common.cpp:768
cf_random_map_generate
mapstruct * cf_random_map_generate(const char *OutFileName, RMParms *RP, char **use_layout, sstring reset_group)
Definition: plugin_common.cpp:1485
rotate-tower.result
bool result
Definition: rotate-tower.py:13
cf_archetype_get_next
archetype * cf_archetype_get_next(archetype *arch)
Definition: plugin_common.cpp:1719
cf_player_message
void cf_player_message(object *op, const char *txt, int flags)
Definition: plugin_common.cpp:787
cf_quest_start
void cf_quest_start(object *pl, sstring quest_code, int state)
Definition: plugin_common.cpp:2064
cfapiObject_pickup
static f_plug_api cfapiObject_pickup
Definition: plugin_common.cpp:107
cfapiObject_check_trigger
static f_plug_api cfapiObject_check_trigger
Definition: plugin_common.cpp:78
cf_map_get_object_at
object * cf_map_get_object_at(mapstruct *m, int x, int y)
Definition: plugin_common.cpp:655
CFAPI_REGION_PROP_JAIL_Y
#define CFAPI_REGION_PROP_JAIL_Y
Definition: plugin.h:281
cf_map_get_reset_timeout
int cf_map_get_reset_timeout(mapstruct *map)
Definition: plugin_common.cpp:1388
cfapiSystem_get_archetype_vector
static f_plug_api cfapiSystem_get_archetype_vector
Definition: plugin_common.cpp:134
f_plug_api
void(* f_plug_api)(int *type,...)
Definition: plugin.h:79
cf_object_get_resistance
int16_t cf_object_get_resistance(object *op, int rtype)
Definition: plugin_common.cpp:313
cf_map_change_light
int cf_map_change_light(mapstruct *m, int change)
Definition: plugin_common.cpp:1420
sword_of_souls.victim
victim
Definition: sword_of_souls.py:12
cf_identify
object * cf_identify(object *op)
Definition: plugin_common.cpp:812
cf_find_animation
int cf_find_animation(const char *name)
Definition: plugin_common.cpp:1498
cf_object_get_long_property
long cf_object_get_long_property(object *op, long propcode)
Definition: plugin_common.cpp:342
cfapiObject_give_skill
static f_plug_api cfapiObject_give_skill
Definition: plugin_common.cpp:64
CFAPI_INT
#define CFAPI_INT
Definition: plugin.h:54
CFAPI_OBJECT_PROP_WEIGHT
#define CFAPI_OBJECT_PROP_WEIGHT
Definition: plugin.h:166
cf_object_get_archetype_property
archetype * cf_object_get_archetype_property(object *op, int propcode)
Definition: plugin_common.cpp:416
CFAPI_OBJECT_PROP_RESIST
#define CFAPI_OBJECT_PROP_RESIST
Definition: plugin.h:148
CFAPI_PLAYER_PROP_IP
#define CFAPI_PLAYER_PROP_IP
Definition: plugin.h:230
make_face_from_files.str
str
Definition: make_face_from_files.py:30
cfapiSystem_log
static f_plug_api cfapiSystem_log
Definition: plugin_common.cpp:50
cf_archetype_get_head
archetype * cf_archetype_get_head(archetype *arch)
Definition: plugin_common.cpp:1751
cfapiSystem_get_periodofday_name
static f_plug_api cfapiSystem_get_periodofday_name
Definition: plugin_common.cpp:123
cfapiSystem_timer_destroy
static f_plug_api cfapiSystem_timer_destroy
Definition: plugin_common.cpp:53
cf_init_plugin
int cf_init_plugin(f_plug_api getHooks)
Definition: plugin_common.cpp:146
cf_object_move_to
int cf_object_move_to(object *op, int x, int y)
Definition: plugin_common.cpp:630
cf_object_cast_spell
int cf_object_cast_spell(object *op, object *caster, int dir, object *spell_ob, char *stringarg)
Definition: plugin_common.cpp:744
navar-midane_pickup.msg
list msg
Definition: navar-midane_pickup.py:13
cf_object_get_object_property
object * cf_object_get_object_property(object *op, int propcode)
Definition: plugin_common.cpp:365
cf_object_teleport
int cf_object_teleport(object *op, mapstruct *map, int x, int y)
Definition: plugin_common.cpp:1360
cf_add_string
sstring cf_add_string(const char *str)
Definition: plugin_common.cpp:1167
cf_player_set_party
void cf_player_set_party(object *op, partylist *party)
Definition: plugin_common.cpp:876
CFAPI_ARCH_PROP_CLONE
#define CFAPI_ARCH_PROP_CLONE
Definition: plugin.h:268
cf_random_map_set_variable
int cf_random_map_set_variable(RMParms *rp, const char *buf)
Definition: plugin_common.cpp:1473
CFAPI_OBJECT_PROP_NROF
#define CFAPI_OBJECT_PROP_NROF
Definition: plugin.h:142
cf_map_get_int_property
int cf_map_get_int_property(mapstruct *map, int property)
Definition: plugin_common.cpp:254
CFAPI_PLAYER_PROP_TITLE
#define CFAPI_PLAYER_PROP_TITLE
Definition: plugin.h:237
cf_timer_create
int cf_timer_create(object *ob, long delay, int mode)
Definition: plugin_common.cpp:1604
cf_object_remove_depletion
int cf_object_remove_depletion(object *op, int level)
Definition: plugin_common.cpp:798
cfapiObject_find_by_name
static f_plug_api cfapiObject_find_by_name
Definition: plugin_common.cpp:89
title
Definition: readable.cpp:108
cfapiCost_string_from_value
static f_plug_api cfapiCost_string_from_value
Definition: plugin_common.cpp:125
cf_player_get_title
char * cf_player_get_title(object *op, char *title, int size)
Definition: plugin_common.cpp:834
CFAPI_PREGION
#define CFAPI_PREGION
Definition: plugin.h:66
cf_get_season_name
const char * cf_get_season_name(int index)
Definition: plugin_common.cpp:1556
cf_object_out_of_map
int cf_object_out_of_map(object *op, int x, int y)
Definition: plugin_common.cpp:1035
CFAPI_REGION_VECTOR
#define CFAPI_REGION_VECTOR
Definition: plugin.h:75
cfapiObject_drop
static f_plug_api cfapiObject_drop
Definition: plugin_common.cpp:91
cf_object_set_resistance
void cf_object_set_resistance(object *op, int rtype, int16_t value)
Definition: plugin_common.cpp:321
cf_object_get_string_property
char * cf_object_get_string_property(object *op, int propcode, char *buf, int size)
Definition: plugin_common.cpp:448
cf_quest_was_completed
int cf_quest_was_completed(object *pl, sstring quest_code)
Definition: plugin_common.cpp:2086
cfapiObject_user_event
static f_plug_api cfapiObject_user_event
Definition: plugin_common.cpp:124
cfapiObject_find_archetype_inside
static f_plug_api cfapiObject_find_archetype_inside
Definition: plugin_common.cpp:87
cfapiSystem_directory
static f_plug_api cfapiSystem_directory
Definition: plugin_common.cpp:54
CFAPI_PLAYER_QUEST_START
#define CFAPI_PLAYER_QUEST_START
Definition: plugin.h:240
CFAPI_REGION_PROP_NAME
#define CFAPI_REGION_PROP_NAME
Definition: plugin.h:275
archetype
Definition: object.h:483
cf_object_apply_below
void cf_object_apply_below(object *pl)
Definition: plugin_common.cpp:553
cf_object_pickup
void cf_object_pickup(object *op, object *what)
Definition: plugin_common.cpp:1434
cfapiObject_transmute
static f_plug_api cfapiObject_transmute
Definition: plugin_common.cpp:65
cf_player_get_ip
sstring cf_player_get_ip(object *op)
Definition: plugin_common.cpp:848
CFAPI_REGION_PROP_JAIL_X
#define CFAPI_REGION_PROP_JAIL_X
Definition: plugin.h:280
cfapiObject_clone
static f_plug_api cfapiObject_clone
Definition: plugin_common.cpp:68
cf_region_get_longname
const char * cf_region_get_longname(region *reg)
Definition: plugin_common.cpp:1942
animate.anim
string anim
Definition: animate.py:20
cfapiSystem_get_season_name
static f_plug_api cfapiSystem_get_season_name
Definition: plugin_common.cpp:121
devourers.command
command
Definition: devourers.py:16
cfapiObject_delete
static f_plug_api cfapiObject_delete
Definition: plugin_common.cpp:67
cf_object_set_weight
void cf_object_set_weight(object *ob, int weight)
Definition: plugin_common.cpp:1227
cf_object_set_face
int cf_object_set_face(object *op, const char *face)
Definition: plugin_common.cpp:474
CFAPI_OBJECT_PROP_NAME_PLURAL
#define CFAPI_OBJECT_PROP_NAME_PLURAL
Definition: plugin.h:131
CFAPI_PARTY_PROP_NEXT
#define CFAPI_PARTY_PROP_NEXT
Definition: plugin.h:271
cf_region_get_jail_path
const char * cf_region_get_jail_path(region *reg)
Definition: plugin_common.cpp:2004
cfapiObject_reset
static f_plug_api cfapiObject_reset
Definition: plugin_common.cpp:76
cfapiMap_get_map
static f_plug_api cfapiMap_get_map
Definition: plugin_common.cpp:96
cfapiSystem_get_month_name
static f_plug_api cfapiSystem_get_month_name
Definition: plugin_common.cpp:120
cf_map_get_enter_y
int cf_map_get_enter_y(mapstruct *map)
Definition: plugin_common.cpp:1412
cf_object_set_key
int cf_object_set_key(object *op, const char *keyname, const char *value, int add_key)
Definition: plugin_common.cpp:1659
cf_map_get_sstring_property
sstring cf_map_get_sstring_property(mapstruct *map, int propcode)
Definition: plugin_common.cpp:270
cf_object_apply
int cf_object_apply(object *op, object *tmp, int aflag)
Definition: plugin_common.cpp:542
cfapiObject_merge
static f_plug_api cfapiObject_merge
Definition: plugin_common.cpp:72
cf_system_get_region_vector
void cf_system_get_region_vector(int property, std::vector< region * > *list)
Definition: plugin_common.cpp:2140
CFAPI_REGION_PROP_MESSAGE
#define CFAPI_REGION_PROP_MESSAGE
Definition: plugin.h:279
cf_object_find_by_name
object * cf_object_find_by_name(const object *who, const char *name)
Definition: plugin_common.cpp:605
cfapiObject_query_money
static f_plug_api cfapiObject_query_money
Definition: plugin_common.cpp:79
cf_map_set_int_property
void cf_map_set_int_property(mapstruct *map, int propcode, int value)
Definition: plugin_common.cpp:298
CFAPI_DOUBLE
#define CFAPI_DOUBLE
Definition: plugin.h:61
cf_object_clone
object * cf_object_clone(object *op, int clonetype)
Definition: plugin_common.cpp:683
cf_object_find_by_arch_name
object * cf_object_find_by_arch_name(const object *who, const char *name)
Definition: plugin_common.cpp:592
cf_object_set_nrof
int cf_object_set_nrof(object *ob, int nrof)
Definition: plugin_common.cpp:1260
cf_object_drop
void cf_object_drop(object *op, object *author)
Definition: plugin_common.cpp:1043
cfapiMap_has_been_loaded
static f_plug_api cfapiMap_has_been_loaded
Definition: plugin_common.cpp:101
cfapiMap_message
static f_plug_api cfapiMap_message
Definition: plugin_common.cpp:97
CFAPI_MAP_PROP_FLAGS
#define CFAPI_MAP_PROP_FLAGS
Definition: plugin.h:245
region
Definition: map.h:272
CFAPI_MAP_PROP_DARKNESS
#define CFAPI_MAP_PROP_DARKNESS
Definition: plugin.h:254
cf_player_move
int cf_player_move(player *pl, int dir)
Definition: plugin_common.cpp:524
cfapiObject_cast
static f_plug_api cfapiObject_cast
Definition: plugin_common.cpp:80
cf_quest_get_player_state
int cf_quest_get_player_state(object *pl, sstring quest_code)
Definition: plugin_common.cpp:2051
diamondslots.message
string message
Definition: diamondslots.py:57
CFAPI_MAP_PROP_PLAYERS
#define CFAPI_MAP_PROP_PLAYERS
Definition: plugin.h:252
cfapiObject_update
static f_plug_api cfapiObject_update
Definition: plugin_common.cpp:74
FLAG_REMOVED
#define FLAG_REMOVED
Definition: define.h:232
cf_map_get_darkness
int cf_map_get_darkness(mapstruct *map)
Definition: plugin_common.cpp:1396
cfapiFriendlylist_get_next
static f_plug_api cfapiFriendlylist_get_next
Definition: plugin_common.cpp:116
CFAPI_SINT64
#define CFAPI_SINT64
Definition: plugin.h:69
cfapiObject_say
static f_plug_api cfapiObject_say
Definition: plugin_common.cpp:93
cf_object_set_float_property
void cf_object_set_float_property(object *op, int propcode, float value)
Definition: plugin_common.cpp:396
CFAPI_PARTY_PROP_PLAYER
#define CFAPI_PARTY_PROP_PLAYER
Definition: plugin.h:273
CFAPI_PMAP
#define CFAPI_PMAP
Definition: plugin.h:59
CFAPI_PLAYER_QUEST_GET_STATE
#define CFAPI_PLAYER_QUEST_GET_STATE
Definition: plugin.h:241
CFAPI_MAP_PROP_DIFFICULTY
#define CFAPI_MAP_PROP_DIFFICULTY
Definition: plugin.h:246
cf_system_get_object_vector
void cf_system_get_object_vector(int property, std::vector< object * > *list)
Definition: plugin_common.cpp:2116
cf_object_insert_object
object * cf_object_insert_object(object *op, object *container)
Definition: plugin_common.cpp:1056
cf_object_get_int64_property
int64_t cf_object_get_int64_property(object *op, int propcode)
Definition: plugin_common.cpp:381
cf_map_get_map
mapstruct * cf_map_get_map(const char *name, int flags)
Definition: plugin_common.cpp:935
CFAPI_OBJECT_PROP_ANIMATION
#define CFAPI_OBJECT_PROP_ANIMATION
Definition: plugin.h:218
cf_region_get_jail_y
int cf_region_get_jail_y(region *reg)
Definition: plugin_common.cpp:1989
cf_player_set_title
void cf_player_set_title(object *op, const char *title)
Definition: plugin_common.cpp:842
cfapiObject_create
static f_plug_api cfapiObject_create
Definition: plugin_common.cpp:69
cfapiObject_change_abil
static f_plug_api cfapiObject_change_abil
Definition: plugin_common.cpp:92
cf_object_get_weight_limit
int cf_object_get_weight_limit(object *ob)
Definition: plugin_common.cpp:1249
cfapiMap_trigger_connected
static f_plug_api cfapiMap_trigger_connected
Definition: plugin_common.cpp:103
cfapiMap_find_by_archetype_name
static f_plug_api cfapiMap_find_by_archetype_name
Definition: plugin_common.cpp:99
CFAPI_PLAYER_QUEST_SET_STATE
#define CFAPI_PLAYER_QUEST_SET_STATE
Definition: plugin.h:242
cfapiObject_activate_rune
static f_plug_api cfapiObject_activate_rune
Definition: plugin_common.cpp:77
cf_object_get_float_property
float cf_object_get_float_property(object *op, int propcode)
Definition: plugin_common.cpp:408
CFAPI_OBJECT_PROP_NAME
#define CFAPI_OBJECT_PROP_NAME
Definition: plugin.h:130
cf_object_set_int64_property
void cf_object_set_int64_property(object *op, int propcode, int64_t value)
Definition: plugin_common.cpp:402
cf_get_month_name
const char * cf_get_month_name(int index)
Definition: plugin_common.cpp:1565
cfapiObject_forget_spell
static f_plug_api cfapiObject_forget_spell
Definition: plugin_common.cpp:82
cfapiObject_teleport
static f_plug_api cfapiObject_teleport
Definition: plugin_common.cpp:106
cfapiObject_remove
static f_plug_api cfapiObject_remove
Definition: plugin_common.cpp:66
cf_system_get_map_vector
void cf_system_get_map_vector(int property, std::vector< mapstruct * > *list)
Definition: plugin_common.cpp:2122
mapstruct
Definition: map.h:313
CFAPI_PARCH
#define CFAPI_PARCH
Definition: plugin.h:62
cf_friendlylist_get_next
object * cf_friendlylist_get_next(object *ob)
Definition: plugin_common.cpp:2036
cf_object_user_event
int cf_object_user_event(object *op, object *activator, object *third, const char *message, int fix)
Definition: plugin_common.cpp:262
cf_object_remove
void cf_object_remove(object *op)
Definition: plugin_common.cpp:562
f_plug_event
int(* f_plug_event)(int *type,...)
Definition: events.h:67
sstring
const typedef char * sstring
Definition: sstring.h:2
cfapiObject_split
static f_plug_api cfapiObject_split
Definition: plugin_common.cpp:71
cf_region_get_name
const char * cf_region_get_name(region *reg)
Definition: plugin_common.cpp:1894
give.op
op
Definition: give.py:33
cf_object_present_archname_inside
object * cf_object_present_archname_inside(object *op, char *whatstr)
Definition: plugin_common.cpp:579
cf_archetype_get_more
archetype * cf_archetype_get_more(archetype *arch)
Definition: plugin_common.cpp:1735
autojail.value
value
Definition: autojail.py:6
board.author
author
Definition: board.py:59
cf_map_get_difficulty
int cf_map_get_difficulty(mapstruct *map)
Definition: plugin_common.cpp:1380
cf_system_unregister_global_event
void cf_system_unregister_global_event(int event, const char *name)
Definition: plugin_common.cpp:1109
cf_object_get_movetype_property
MoveType cf_object_get_movetype_property(object *op, int propcode)
Definition: plugin_common.cpp:357
CFAPI_INT16
#define CFAPI_INT16
Definition: plugin.h:67
plugin_common.h
cf_map_get_region_property
region * cf_map_get_region_property(mapstruct *map, int propcode)
Definition: plugin_common.cpp:288
cfapiGenerate_random_map
static f_plug_api cfapiGenerate_random_map
Definition: plugin_common.cpp:118
cf_system_register_global_event
void cf_system_register_global_event(int event, const char *name, f_plug_event hook)
Definition: plugin_common.cpp:1102
cf_object_get_nrof
int cf_object_get_nrof(object *ob)
Definition: plugin_common.cpp:1270
cf_object_change_map
object * cf_object_change_map(object *op, mapstruct *m, object *originator, int flag, int x, int y)
Definition: plugin_common.cpp:642
cf_object_check_for_spell
object * cf_object_check_for_spell(object *op, const char *name)
Definition: plugin_common.cpp:778
cf_archetype_get_name
sstring cf_archetype_get_name(archetype *arch)
Definition: plugin_common.cpp:1702
CFAPI_ARCHETYPE_VECTOR
#define CFAPI_ARCHETYPE_VECTOR
Definition: plugin.h:74
cfapiObject_learn_spell
static f_plug_api cfapiObject_learn_spell
Definition: plugin_common.cpp:81
cfapiMap_get_property
static f_plug_api cfapiMap_get_property
Definition: plugin_common.cpp:94
diamondslots.y
y
Definition: diamondslots.py:16
CFAPI_MAP_VECTOR
#define CFAPI_MAP_VECTOR
Definition: plugin.h:73
cf_query_name_pl
sstring cf_query_name_pl(object *ob)
Definition: plugin_common.cpp:1209
cf_object_say
void cf_object_say(object *op, const char *msg)
Definition: plugin_common.cpp:1049
CFAPI_STRING
#define CFAPI_STRING
Definition: plugin.h:57
python_pickup.where
where
Definition: python_pickup.py:7
npc_dialog.index
int index
Definition: npc_dialog.py:102
cf_spring_trap
void cf_spring_trap(object *trap, object *victim)
Definition: plugin_common.cpp:1005
cf_object_pay_amount
int cf_object_pay_amount(object *pl, uint64_t to_pay)
Definition: plugin_common.cpp:732
cf_map_get_first
mapstruct * cf_map_get_first(void)
Definition: plugin_common.cpp:975
cf_system_get_party_vector
void cf_system_get_party_vector(int property, std::vector< partylist * > *list)
Definition: plugin_common.cpp:2134
cf_party_get_name
const char * cf_party_get_name(partylist *party)
Definition: plugin_common.cpp:1798
cf_find_face
int cf_find_face(const char *name, int error)
Definition: plugin_common.cpp:1510
cf_object_get_map_property
mapstruct * cf_object_get_map_property(object *op, int propcode)
Definition: plugin_common.cpp:373
CFAPI_MAP_PROP_ENTER_Y
#define CFAPI_MAP_PROP_ENTER_Y
Definition: plugin.h:258
cf_query_name
char * cf_query_name(object *ob, char *name, int size)
Definition: plugin_common.cpp:1201
cf_get_time
void cf_get_time(timeofday_t *tod)
Definition: plugin_common.cpp:1549
CFAPI_ARCH_PROP_MORE
#define CFAPI_ARCH_PROP_MORE
Definition: plugin.h:267
cfapiMap_change_light
static f_plug_api cfapiMap_change_light
Definition: plugin_common.cpp:102
command_function_extra
void(* command_function_extra)(object *op, const char *params, const char *extra)
Definition: commands.h:29
cf_object_get_flag
int cf_object_get_flag(object *ob, int flag)
Definition: plugin_common.cpp:1277
cfapiSet_random_map_variable
static f_plug_api cfapiSet_random_map_variable
Definition: plugin_common.cpp:117
cf_object_query_money
int cf_object_query_money(const object *op)
Definition: plugin_common.cpp:983
animate.event
event
DIALOGCHECK MINARGS 1 MAXARGS 2
Definition: animate.py:17
cf_re_cmp
const char * cf_re_cmp(const char *str, const char *regexp)
Definition: plugin_common.cpp:1143
command_registration
uint64_t command_registration
Definition: commands.h:32
cf_player_get_party
partylist * cf_player_get_party(object *op)
Definition: plugin_common.cpp:872
CFAPI_OBJECT_PROP_FLAGS
#define CFAPI_OBJECT_PROP_FLAGS
Definition: plugin.h:196
cfapiSystem_register_global_event
static f_plug_api cfapiSystem_register_global_event
Definition: plugin_common.cpp:44
CFAPI_MAP_PROP_HEIGHT
#define CFAPI_MAP_PROP_HEIGHT
Definition: plugin.h:256
cfapiObject_transfer
static f_plug_api cfapiObject_transfer
Definition: plugin_common.cpp:86
cf_player_can_pay
int cf_player_can_pay(object *pl)
Definition: plugin_common.cpp:886
cf_map_trigger_connected
void cf_map_trigger_connected(objectlink *ol, object *cause, int state)
Definition: plugin_common.cpp:1028
cf_create_object_by_name
object * cf_create_object_by_name(const char *name)
Definition: plugin_common.cpp:1093
cf_object_set_int_property
void cf_object_set_int_property(object *op, int propcode, int value)
Definition: plugin_common.cpp:329
report.error
def error(pl)
Definition: report.py:43
CFAPI_OBJECT_PROP_MESSAGE
#define CFAPI_OBJECT_PROP_MESSAGE
Definition: plugin.h:136
LogLevel
LogLevel
Definition: logger.h:10
diamondslots.cost
int cost
Definition: diamondslots.py:21
cf_object_set_animation
int cf_object_set_animation(object *op, const char *animation)
Definition: plugin_common.cpp:486
cfapiPlayer_can_pay
static f_plug_api cfapiPlayer_can_pay
Definition: plugin_common.cpp:115
CFAPI_PLAYER_QUEST_WAS_COMPLETED
#define CFAPI_PLAYER_QUEST_WAS_COMPLETED
Definition: plugin.h:243
cf_map_has_been_loaded
mapstruct * cf_map_has_been_loaded(const char *name)
Definition: plugin_common.cpp:961
cfapiPlayer_message
static f_plug_api cfapiPlayer_message
Definition: plugin_common.cpp:105
command_function
void(* command_function)(object *op, const char *params)
Definition: commands.h:17
CFAPI_LONG
#define CFAPI_LONG
Definition: plugin.h:55
cf_map_get_height
int cf_map_get_height(mapstruct *map)
Definition: plugin_common.cpp:1404
cfapiObject_identify
static f_plug_api cfapiObject_identify
Definition: plugin_common.cpp:60
cf_party_get_first
partylist * cf_party_get_first(void)
Definition: plugin_common.cpp:1783
cf_object_free_drop_inventory
void cf_object_free_drop_inventory(object *ob)
Definition: plugin_common.cpp:571
dragon.state
state
Definition: dragon.py:84
cf_get_empty_map
mapstruct * cf_get_empty_map(int sizex, int sizey)
Definition: plugin_common.cpp:948
GET_HOOK
#define GET_HOOK(x, y, z)
Definition: plugin_common.cpp:138
cfapiSystem_add_string
static f_plug_api cfapiSystem_add_string
Definition: plugin_common.cpp:42
altar_valkyrie.pl
pl
Definition: altar_valkyrie.py:28
cf_free_string
void cf_free_string(sstring str)
Definition: plugin_common.cpp:1182
cf_map_get_map_property
mapstruct * cf_map_get_map_property(mapstruct *map, int propcode)
Definition: plugin_common.cpp:279
cf_find_string
sstring cf_find_string(const char *str)
Definition: plugin_common.cpp:1189
cfapiSystem_get_map_vector
static f_plug_api cfapiSystem_get_map_vector
Definition: plugin_common.cpp:133
cf_map_find_by_archetype_name
object * cf_map_find_by_archetype_name(const char *str, mapstruct *map, int nx, int ny)
Definition: plugin_common.cpp:1371
cfapiSystem_register_command
static f_plug_api cfapiSystem_register_command
Definition: plugin_common.cpp:130
cfapiObject_change_exp
static f_plug_api cfapiObject_change_exp
Definition: plugin_common.cpp:119
cf_create_object
object * cf_create_object(void)
Definition: plugin_common.cpp:1081
cf_object_set_string_property
void cf_object_set_string_property(object *op, int propcode, const char *value)
Definition: plugin_common.cpp:456
cfapiObject_drain
static f_plug_api cfapiObject_drain
Definition: plugin_common.cpp:62
CFAPI_PARTY_PROP_PASSWORD
#define CFAPI_PARTY_PROP_PASSWORD
Definition: plugin.h:272
cf_map_get_flags
int cf_map_get_flags(mapstruct *oldmap, mapstruct **newmap, int16_t x, int16_t y, int16_t *nx, int16_t *ny)
Definition: plugin_common.cpp:1461
CFAPI_MOVETYPE
#define CFAPI_MOVETYPE
Definition: plugin.h:71
cf_strdup_local
char * cf_strdup_local(const char *str)
Definition: plugin_common.cpp:1446
cf_quest_set_player_state
void cf_quest_set_player_state(object *pl, sstring quest_code, int state)
Definition: plugin_common.cpp:2075
cfapiObject_check_spell
static f_plug_api cfapiObject_check_spell
Definition: plugin_common.cpp:83
cf_map_get_width
int cf_map_get_width(mapstruct *map)
Definition: plugin_common.cpp:1400
is_valid_types_gen.type
list type
Definition: is_valid_types_gen.py:25
cfapiArchetype_get_property
static f_plug_api cfapiArchetype_get_property
Definition: plugin_common.cpp:112
cf_region_get_jail_x
int cf_region_get_jail_x(region *reg)
Definition: plugin_common.cpp:1974
CFAPI_OBJECT_PROP_WEIGHT_LIMIT
#define CFAPI_OBJECT_PROP_WEIGHT_LIMIT
Definition: plugin.h:167
give.name
name
Definition: give.py:27
cfapiPlayer_quest
static f_plug_api cfapiPlayer_quest
Definition: plugin_common.cpp:126
level
Definition: level.py:1
cfapiObject_perm_exp
static f_plug_api cfapiObject_perm_exp
Definition: plugin_common.cpp:129