|
Crossfire Server
1.75.0
|
Definitions for the plugin system. More...
#include <global.h>#include <dlfcn.h>#include "random_maps/random_map.h"#include "random_maps/rproto.h"#include <dirent.h>Go to the source code of this file.
Data Structures | |
| struct | crossfire_plugin |
| One loaded plugin. More... | |
| struct | hook_entry |
| One function the server exposes to plugins. More... | |
Typedefs | |
| typedef void(* | f_plug_api) (int *type,...) |
| General API function. More... | |
| typedef int(* | f_plug_init) (const char *iversion, f_plug_api gethooksptr) |
| First function called in a plugin. More... | |
| typedef int(* | f_plug_postinit) (void) |
| Function called after the plugin was initialized. More... | |
| typedef void *(* | f_plug_property) (int *type,...) |
| Get various plugin properties. More... | |
Functions | |
| int | closePlugin (void) |
| called before the plugin gets unloaded from memory. More... | |
| int | eventListener (int *type,...) |
| Handles an object-related event. More... | |
| void * | getPluginProperty (int *type,...) |
| The server calls this function to get information about the plugin, notably the name and version. More... | |
| int | initPlugin (const char *iversion, f_plug_api gethooksptr) |
| The server calls this function after loading the plugin. More... | |
| int | postInitPlugin (void) |
| The server calls this function to actually initialize the plugin here, after object handlers are registered. More... | |
Definitions for the plugin system.
Definition in file plugin.h.
| #define CFAPI_ARCH_PROP_CLONE 4 |
Definition at line 269 of file plugin.h.
Referenced by cf_archetype_get_clone(), and cfapi_archetype_get_property().
| #define CFAPI_ARCH_PROP_HEAD 2 |
Definition at line 267 of file plugin.h.
Referenced by cf_archetype_get_head(), and cfapi_archetype_get_property().
| #define CFAPI_ARCH_PROP_MORE 3 |
Definition at line 268 of file plugin.h.
Referenced by cf_archetype_get_more(), and cfapi_archetype_get_property().
| #define CFAPI_ARCH_PROP_NAME 0 |
Definition at line 265 of file plugin.h.
Referenced by cf_archetype_get_name(), and cfapi_archetype_get_property().
| #define CFAPI_ARCH_PROP_NEXT 1 |
Definition at line 266 of file plugin.h.
Referenced by cf_archetype_get_first(), cf_archetype_get_next(), and cfapi_archetype_get_property().
| #define CFAPI_ARCHETYPE_VECTOR 21 |
Pointer to a std::vector<archetype *>
Definition at line 74 of file plugin.h.
Referenced by cf_system_get_archetype_vector(), and cfapi_system_get_archetype_vector().
| #define CFAPI_DOUBLE 8 |
Definition at line 61 of file plugin.h.
Referenced by cf_object_get_double_property(), cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_FLOAT 7 |
Definition at line 60 of file plugin.h.
Referenced by cf_object_get_float_property(), cf_object_set_float_property(), cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_FUNC 10 |
Definition at line 63 of file plugin.h.
Referenced by cfapi_get_hooks().
| #define CFAPI_INT 1 |
Definition at line 54 of file plugin.h.
Referenced by cf_find_animation(), cf_find_face(), cf_map_change_light(), cf_map_get_flags(), cf_map_get_int_property(), cf_map_set_int_property(), cf_object_cast_spell(), cf_object_change_abil(), cf_object_check_trigger(), cf_object_get_int_property(), cf_object_get_weight(), cf_object_get_weight_limit(), cf_object_move(), cf_object_move_to(), cf_object_out_of_map(), cf_object_pay_amount(), cf_object_pay_item(), cf_object_pickup(), cf_object_query_money(), cf_object_remove_depletion(), cf_object_say(), cf_object_set_animation(), cf_object_set_face(), cf_object_set_int_property(), cf_object_set_key(), cf_object_set_weight(), cf_object_set_weight_limit(), cf_object_teleport(), cf_object_transfer(), cf_object_user_event(), cf_player_arrest(), cf_player_can_pay(), cf_player_knowledge_has(), cf_player_move(), cf_quest_get_player_state(), cf_quest_was_completed(), cf_random_map_set_variable(), cf_region_get_jail_x(), cf_region_get_jail_y(), cf_timer_create(), cf_timer_destroy(), cfapi_map_change_light(), cfapi_map_get_map_property(), cfapi_map_out_of_map(), cfapi_object_apply(), cfapi_object_cast(), cfapi_object_change_abil(), cfapi_object_check_trigger(), cfapi_object_distance(), cfapi_object_get_property(), cfapi_object_move(), cfapi_object_on_same_map(), cfapi_object_pay_amount(), cfapi_object_pay_item(), cfapi_object_pickup(), cfapi_object_query_money(), cfapi_object_remove_depletion(), cfapi_object_say(), cfapi_object_set_key(), cfapi_object_set_property(), cfapi_object_teleport(), cfapi_object_transfer(), cfapi_object_user_event(), cfapi_player_can_pay(), cfapi_player_knowledge(), cfapi_player_quest(), cfapi_region_get_property(), cfapi_set_random_map_variable(), cfapi_system_check_path(), cfapi_system_find_animation(), cfapi_system_find_face(), cfapi_timer_create(), and cfapi_timer_destroy().
| #define CFAPI_INT16 14 |
Definition at line 67 of file plugin.h.
Referenced by cf_object_get_resistance(), cf_object_set_resistance(), cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_LONG 2 |
Definition at line 55 of file plugin.h.
Referenced by cf_object_get_long_property(), cf_object_set_long_property(), cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_MAP_PROP_DARKNESS 9 |
Definition at line 255 of file plugin.h.
Referenced by cf_map_get_darkness(), and cfapi_map_get_map_property().
| #define CFAPI_MAP_PROP_DIFFICULTY 1 |
Definition at line 247 of file plugin.h.
Referenced by cf_map_get_difficulty(), and cfapi_map_get_map_property().
| #define CFAPI_MAP_PROP_ENTER_X 12 |
Definition at line 258 of file plugin.h.
Referenced by cf_map_get_enter_x(), and cfapi_map_get_map_property().
| #define CFAPI_MAP_PROP_ENTER_Y 13 |
Definition at line 259 of file plugin.h.
Referenced by cf_map_get_enter_y(), and cfapi_map_get_map_property().
| #define CFAPI_MAP_PROP_FLAGS 0 |
Definition at line 246 of file plugin.h.
Referenced by cf_map_get_flags(), and cfapi_map_get_map_property().
| #define CFAPI_MAP_PROP_HEIGHT 11 |
Definition at line 257 of file plugin.h.
Referenced by cf_map_get_height(), and cfapi_map_get_map_property().
| #define CFAPI_MAP_PROP_MESSAGE 22 |
Definition at line 260 of file plugin.h.
Referenced by cfapi_map_get_map_property(), and Map_GetMessage().
| #define CFAPI_MAP_PROP_NAME 4 |
Definition at line 250 of file plugin.h.
Referenced by cfapi_map_get_map_property(), and Map_GetName().
| #define CFAPI_MAP_PROP_NEXT 23 |
Definition at line 261 of file plugin.h.
Referenced by cf_map_get_first(), cfapi_map_get_map_property(), and Map_Next().
| #define CFAPI_MAP_PROP_PATH 2 |
Definition at line 248 of file plugin.h.
Referenced by cfapi_map_get_map_property(), cfapi_map_set_map_property(), Map_GetPath(), Map_SetPath(), Map_TriggerConnected(), and runtrigger().
| #define CFAPI_MAP_PROP_PLAYERS 7 |
Definition at line 253 of file plugin.h.
Referenced by cf_map_get_players(), and cfapi_map_get_map_property().
| #define CFAPI_MAP_PROP_REGION 24 |
Definition at line 262 of file plugin.h.
Referenced by cfapi_map_get_map_property(), eventListener(), and Map_GetRegion().
| #define CFAPI_MAP_PROP_RESET_TIME 5 |
Definition at line 251 of file plugin.h.
Referenced by cf_map_get_reset_time(), and cfapi_map_get_map_property().
| #define CFAPI_MAP_PROP_RESET_TIMEOUT 6 |
Definition at line 252 of file plugin.h.
Referenced by cf_map_get_reset_timeout(), and cfapi_map_get_map_property().
| #define CFAPI_MAP_PROP_TMPNAME 3 |
Definition at line 249 of file plugin.h.
Referenced by cfapi_map_get_map_property(), and Map_GetTempName().
| #define CFAPI_MAP_PROP_UNIQUE 25 |
Definition at line 263 of file plugin.h.
Referenced by cfapi_map_get_map_property(), ensure_map_in_memory(), and Map_GetUnique().
| #define CFAPI_MAP_PROP_WIDTH 10 |
Definition at line 256 of file plugin.h.
Referenced by cf_map_get_width(), and cfapi_map_get_map_property().
| #define CFAPI_MAP_VECTOR 20 |
Pointer to a std::vector<mapstruct *>
Definition at line 73 of file plugin.h.
Referenced by cf_system_get_map_vector(), and cfapi_system_get_map_vector().
| #define CFAPI_MOVETYPE 18 /* MoveType */ |
Definition at line 71 of file plugin.h.
Referenced by cf_object_get_movetype_property(), cf_object_set_movetype_property(), cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_NONE 0 |
Definition at line 53 of file plugin.h.
Referenced by cf_cost_string_from_value(), cf_get_time(), cf_log(), cf_log_plain(), cf_map_trigger_connected(), cf_object_change_exp(), cf_object_learn_spell(), cf_object_split(), cf_player_knowledge_give(), cf_player_message(), cf_quest_set_player_state(), cf_quest_start(), cf_system_register_global_event(), cf_system_unregister_global_event(), cfapi_archetype_get_property(), cfapi_cost_string_from_value(), cfapi_get_hooks(), cfapi_get_time(), cfapi_log(), cfapi_map_create_path(), cfapi_map_delete_map(), cfapi_map_get_map(), cfapi_map_get_map_property(), cfapi_map_message(), cfapi_map_set_map_property(), cfapi_map_trigger_connected(), cfapi_map_update_position(), cfapi_object_apply_below(), cfapi_object_change_exp(), cfapi_object_clean_object(), cfapi_object_clear(), cfapi_object_create(), cfapi_object_delete(), cfapi_object_drain(), cfapi_object_drop(), cfapi_object_fix(), cfapi_object_forget_spell(), cfapi_object_get_property(), cfapi_object_insert(), cfapi_object_learn_spell(), cfapi_object_remove(), cfapi_object_reset(), cfapi_object_set_property(), cfapi_object_split(), cfapi_object_spring_trap(), cfapi_object_transfer(), cfapi_object_transmute(), cfapi_object_update(), cfapi_party_get_property(), cfapi_player_knowledge(), cfapi_player_message(), cfapi_player_quest(), cfapi_region_get_property(), cfapi_system_register_global_event(), cfapi_system_remove_string(), and cfapi_system_unregister_global_event().
| #define CFAPI_OBJECT_PROP_AC 87 |
Definition at line 205 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_ANIM_SPEED 66 |
Definition at line 184 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_ANIMATION 100 |
Definition at line 218 of file plugin.h.
Referenced by cf_object_set_animation(), cf_object_set_string_property(), cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_ARCH_NAME 97 |
Definition at line 215 of file plugin.h.
Referenced by cfapi_object_get_property().
| #define CFAPI_OBJECT_PROP_ARCHETYPE 63 |
Definition at line 181 of file plugin.h.
Referenced by cfapi_object_get_property(), and Object_GetArchetype().
| #define CFAPI_OBJECT_PROP_ATTACK_MOVEMENT 60 |
Definition at line 178 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_ATTACK_TYPE 31 |
Definition at line 149 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_ATTACKED_BY 55 |
Definition at line 173 of file plugin.h.
Referenced by cfapi_object_get_property().
| #define CFAPI_OBJECT_PROP_BASE_NAME 69 |
Definition at line 187 of file plugin.h.
Referenced by cfapi_object_get_property().
| #define CFAPI_OBJECT_PROP_CARRYING 50 |
Definition at line 168 of file plugin.h.
Referenced by cfapi_object_get_property().
| #define CFAPI_OBJECT_PROP_CHA 85 |
Definition at line 203 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_CHEATER 75 |
Definition at line 193 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_CHOSEN_SKILL 57 |
Definition at line 175 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_CLIENT_TYPE 29 |
Definition at line 147 of file plugin.h.
Referenced by cfapi_object_get_property().
| #define CFAPI_OBJECT_PROP_CON 81 |
Definition at line 199 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_CONTAINER 8 |
Definition at line 127 of file plugin.h.
Referenced by cfapi_object_get_property().
| #define CFAPI_OBJECT_PROP_COUNT 10 |
Definition at line 129 of file plugin.h.
Referenced by cfapi_object_get_property().
| #define CFAPI_OBJECT_PROP_CURRENT_WEAPON 53 |
Definition at line 171 of file plugin.h.
Referenced by cfapi_object_get_property().
| #define CFAPI_OBJECT_PROP_CUSTOM_NAME 65 |
Definition at line 183 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_DAM 95 |
Definition at line 213 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_DEX 80 |
Definition at line 198 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_DIRECTION 25 |
Definition at line 143 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_DURATION 109 |
Definition at line 227 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_ENEMY 54 |
Definition at line 172 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), and Object_SetEnemy().
| #define CFAPI_OBJECT_PROP_ENVIRONMENT 6 |
Definition at line 125 of file plugin.h.
Referenced by cfapi_object_get_property().
| #define CFAPI_OBJECT_PROP_EXP 72 |
Definition at line 190 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetExp(), and Object_SetExp().
| #define CFAPI_OBJECT_PROP_EXP_MULTIPLIER 62 |
Definition at line 180 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), and Object_GetExpMul().
| #define CFAPI_OBJECT_PROP_FACE 99 |
Definition at line 217 of file plugin.h.
Referenced by cf_object_set_face(), cf_object_set_string_property(), cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_FACING 26 |
Definition at line 144 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_FLAGS 78 |
Definition at line 196 of file plugin.h.
Referenced by cf_object_get_flag(), cf_object_set_flag(), cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_FP 91 |
Definition at line 209 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_FRIENDLY 67 |
Definition at line 185 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_GEN_SP_ARMOUR 47 |
Definition at line 165 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_GLOW_RADIUS 51 |
Definition at line 169 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_GOD 96 |
Definition at line 214 of file plugin.h.
Referenced by cfapi_object_get_property().
| #define CFAPI_OBJECT_PROP_GP 90 |
Definition at line 208 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_HEAD 7 |
Definition at line 126 of file plugin.h.
Referenced by cfapi_object_get_property().
| #define CFAPI_OBJECT_PROP_HIDDEN 58 |
Definition at line 176 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_HP 88 |
Definition at line 206 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_INT 83 |
Definition at line 201 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_INVENTORY 5 |
Definition at line 124 of file plugin.h.
Referenced by cfapi_object_get_property().
| #define CFAPI_OBJECT_PROP_INVISIBLE 98 |
Definition at line 216 of file plugin.h.
Referenced by cfapi_object_get_property().
| #define CFAPI_OBJECT_PROP_INVISIBLE_TIME 44 |
Definition at line 162 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_ITEM_POWER 46 |
Definition at line 164 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_LAST_EAT 43 |
Definition at line 161 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_LAST_GRACE 42 |
Definition at line 160 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_LAST_HEAL 40 |
Definition at line 158 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_LAST_SP 41 |
Definition at line 159 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_LEVEL 39 |
Definition at line 157 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_LORE 19 |
Definition at line 137 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_LUCK 71 |
Definition at line 189 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_MAGIC 37 |
Definition at line 155 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_MAGICAL 70 |
Definition at line 188 of file plugin.h.
Referenced by cfapi_object_get_property().
| #define CFAPI_OBJECT_PROP_MAP 9 |
Definition at line 128 of file plugin.h.
Referenced by cfapi_object_get_property(), and Object_GetMap().
| #define CFAPI_OBJECT_PROP_MATERIAL 35 |
Definition at line 153 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), and Object_GetMaterial().
| #define CFAPI_OBJECT_PROP_MATERIAL_NAME 36 |
Definition at line 154 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), and Object_GetMaterial().
| #define CFAPI_OBJECT_PROP_MAXGP 94 |
Definition at line 212 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_MAXHP 92 |
Definition at line 210 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_MAXSP 93 |
Definition at line 211 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_MERGEABLE 76 |
Definition at line 194 of file plugin.h.
Referenced by cfapi_object_get_property().
| #define CFAPI_OBJECT_PROP_MESSAGE 18 |
Definition at line 136 of file plugin.h.
Referenced by cf_object_get_msg(), cfapi_object_get_property(), cfapi_object_set_property(), and get_newspaper_content().
| #define CFAPI_OBJECT_PROP_MOVE_ALLOW 104 |
Definition at line 222 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetMoveAllow(), and Object_SetMoveAllow().
| #define CFAPI_OBJECT_PROP_MOVE_BLOCK 103 |
Definition at line 221 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetMoveBlock(), and Object_SetMoveBlock().
| #define CFAPI_OBJECT_PROP_MOVE_OFF 106 |
Definition at line 224 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetMoveOff(), and Object_SetMoveOff().
| #define CFAPI_OBJECT_PROP_MOVE_ON 105 |
Definition at line 223 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetMoveOn(), and Object_SetMoveOn().
| #define CFAPI_OBJECT_PROP_MOVE_SLOW 107 |
Definition at line 225 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetMoveSlow(), and Object_SetMoveSlow().
| #define CFAPI_OBJECT_PROP_MOVE_SLOW_PENALTY 108 |
Definition at line 226 of file plugin.h.
Referenced by cfapi_object_get_property().
| #define CFAPI_OBJECT_PROP_MOVE_STATUS 59 |
Definition at line 177 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_MOVE_TYPE 102 |
Definition at line 220 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetMoveType(), and Object_SetMoveType().
| #define CFAPI_OBJECT_PROP_NAME 12 |
Definition at line 130 of file plugin.h.
Referenced by cf_query_name(), cfapi_object_get_property(), cfapi_object_set_property(), eventListener(), and Object_SetName().
| #define CFAPI_OBJECT_PROP_NAME_PLURAL 13 |
Definition at line 131 of file plugin.h.
Referenced by cf_query_name_pl(), cfapi_object_get_property(), cfapi_object_set_property(), eventListener(), Object_SetName(), and Object_SetNamePl().
| #define CFAPI_OBJECT_PROP_NEXT_ACTIVE_OB 3 |
Definition at line 122 of file plugin.h.
Referenced by cfapi_object_get_property().
| #define CFAPI_OBJECT_PROP_NROF 24 |
Definition at line 142 of file plugin.h.
Referenced by cf_object_get_nrof(), cf_object_set_nrof(), cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_OB_ABOVE 1 |
Definition at line 120 of file plugin.h.
Referenced by cfapi_object_get_property().
| #define CFAPI_OBJECT_PROP_OB_BELOW 2 |
Definition at line 121 of file plugin.h.
Referenced by cfapi_object_get_property().
| #define CFAPI_OBJECT_PROP_OTHER_ARCH 64 |
Definition at line 182 of file plugin.h.
Referenced by cfapi_object_get_property(), and Object_GetOtherArchetype().
| #define CFAPI_OBJECT_PROP_OWNER 73 |
Definition at line 191 of file plugin.h.
Referenced by add_death(), cfapi_object_get_property(), cfapi_object_set_property(), and Object_SetOwner().
| #define CFAPI_OBJECT_PROP_PATH_ATTUNED 32 |
Definition at line 150 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_PATH_DENIED 34 |
Definition at line 152 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_PATH_REPELLED 33 |
Definition at line 151 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_PICK_UP 45 |
Definition at line 163 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_PICKABLE 77 |
Definition at line 195 of file plugin.h.
Referenced by cfapi_object_get_property().
| #define CFAPI_OBJECT_PROP_POW 84 |
Definition at line 202 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_PRESENT 74 |
Definition at line 192 of file plugin.h.
Referenced by cfapi_object_get_property().
| #define CFAPI_OBJECT_PROP_PREV_ACTIVE_OB 4 |
Definition at line 123 of file plugin.h.
Referenced by cfapi_object_get_property().
| #define CFAPI_OBJECT_PROP_RACE 15 |
Definition at line 133 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_RAW_NAME 110 |
Definition at line 228 of file plugin.h.
Referenced by cfapi_object_get_property().
| #define CFAPI_OBJECT_PROP_RESIST 30 |
Definition at line 148 of file plugin.h.
Referenced by cf_object_get_resistance(), cf_object_set_resistance(), cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_RUN_AWAY 56 |
Definition at line 174 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_SHORT_NAME 68 |
Definition at line 186 of file plugin.h.
Referenced by cfapi_object_get_property().
| #define CFAPI_OBJECT_PROP_SKILL 17 |
Definition at line 135 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_SLAYING 16 |
Definition at line 134 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_SP 89 |
Definition at line 207 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_SPEED 22 |
Definition at line 140 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_SPEED_LEFT 23 |
Definition at line 141 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_SPELL_ITEM 61 |
Definition at line 179 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_STR 79 |
Definition at line 197 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_SUBTYPE 28 |
Definition at line 146 of file plugin.h.
Referenced by cfapi_object_get_property().
| #define CFAPI_OBJECT_PROP_TITLE 14 |
Definition at line 132 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_TOTAL_EXP 52 |
Definition at line 170 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), and Object_GetTotalExp().
| #define CFAPI_OBJECT_PROP_TYPE 27 |
Definition at line 145 of file plugin.h.
Referenced by cfapi_object_get_property().
| #define CFAPI_OBJECT_PROP_VALUE 38 |
Definition at line 156 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetValue(), and Object_SetValue().
| #define CFAPI_OBJECT_PROP_WC 86 |
Definition at line 204 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_WEIGHT 48 |
Definition at line 166 of file plugin.h.
Referenced by cf_object_get_weight(), cf_object_set_weight(), cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_WEIGHT_LIMIT 49 |
Definition at line 167 of file plugin.h.
Referenced by cf_object_get_weight_limit(), cf_object_set_weight_limit(), cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_WIS 82 |
Definition at line 200 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_OBJECT_PROP_X 20 |
Definition at line 138 of file plugin.h.
Referenced by cfapi_object_get_property().
| #define CFAPI_OBJECT_PROP_Y 21 |
Definition at line 139 of file plugin.h.
Referenced by cfapi_object_get_property().
| #define CFAPI_OBJECT_VECTOR 19 |
Pointer to a std::vector<object *>
Definition at line 72 of file plugin.h.
Referenced by cf_system_get_object_vector(), and cfapi_system_get_object_vector().
| #define CFAPI_PARCH 9 |
Definition at line 62 of file plugin.h.
Referenced by cf_archetype_get_first(), cf_archetype_get_head(), cf_archetype_get_more(), cf_archetype_get_next(), cf_object_get_archetype_property(), cfapi_archetype_get_property(), and cfapi_object_get_property().
| #define CFAPI_PARTY_PROP_NAME 0 |
Definition at line 271 of file plugin.h.
Referenced by cf_party_get_name(), and cfapi_party_get_property().
| #define CFAPI_PARTY_PROP_NEXT 1 |
Definition at line 272 of file plugin.h.
Referenced by cf_party_get_first(), cf_party_get_next(), and cfapi_party_get_property().
| #define CFAPI_PARTY_PROP_PASSWORD 2 |
Definition at line 273 of file plugin.h.
Referenced by cf_party_get_password(), and cfapi_party_get_property().
| #define CFAPI_PARTY_PROP_PLAYER 3 |
Definition at line 274 of file plugin.h.
Referenced by cf_party_get_first_player(), cf_party_get_next_player(), and cfapi_party_get_property().
| #define CFAPI_PARTY_VECTOR 23 |
Pointer to a std::vector<partylist *>
Definition at line 76 of file plugin.h.
Referenced by cf_system_get_party_vector(), and cfapi_system_get_party_vector().
| #define CFAPI_PLAYER_PROP_BED_MAP 153 |
Definition at line 233 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Player_GetBedMap(), and Player_SetBedMap().
| #define CFAPI_PLAYER_PROP_BED_X 154 |
Definition at line 234 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Player_GetBedX(), and Player_SetBedX().
| #define CFAPI_PLAYER_PROP_BED_Y 155 |
Definition at line 235 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Player_GetBedY(), and Player_SetBedY().
| #define CFAPI_PLAYER_PROP_COUNT 159 |
Definition at line 239 of file plugin.h.
Referenced by cfapi_object_get_property().
| #define CFAPI_PLAYER_PROP_IP 150 |
Definition at line 230 of file plugin.h.
Referenced by cf_player_get_ip(), and cfapi_object_get_property().
| #define CFAPI_PLAYER_PROP_MARKED_ITEM 151 |
Definition at line 231 of file plugin.h.
Referenced by cf_player_get_marked_item(), cf_player_set_marked_item(), cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_PLAYER_PROP_NEXT 156 |
Definition at line 236 of file plugin.h.
Referenced by cfapi_object_get_property().
| #define CFAPI_PLAYER_PROP_PARTY 152 |
Definition at line 232 of file plugin.h.
Referenced by cf_player_get_party(), cf_player_set_party(), cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_PLAYER_PROP_TITLE 157 |
Definition at line 237 of file plugin.h.
Referenced by cf_player_get_title(), cf_player_set_title(), cfapi_object_get_property(), and cfapi_object_set_property().
| #define CFAPI_PLAYER_PROP_TRANSPORT 158 |
Definition at line 238 of file plugin.h.
Referenced by cfapi_object_get_property().
| #define CFAPI_PLAYER_QUEST_GET_STATE 1 |
Definition at line 242 of file plugin.h.
Referenced by cf_quest_get_player_state(), and cfapi_player_quest().
| #define CFAPI_PLAYER_QUEST_SET_STATE 2 |
Definition at line 243 of file plugin.h.
Referenced by cf_quest_set_player_state(), and cfapi_player_quest().
| #define CFAPI_PLAYER_QUEST_START 0 |
Definition at line 241 of file plugin.h.
Referenced by cf_quest_start(), and cfapi_player_quest().
| #define CFAPI_PLAYER_QUEST_WAS_COMPLETED 3 |
Definition at line 244 of file plugin.h.
Referenced by cf_quest_was_completed(), and cfapi_player_quest().
| #define CFAPI_PMAP 6 |
Definition at line 59 of file plugin.h.
Referenced by cf_get_empty_map(), cf_map_get_map(), cf_map_get_map_property(), cf_map_has_been_loaded(), cf_object_get_map_property(), cf_random_map_generate(), cfapi_map_get_map(), cfapi_map_get_map_property(), cfapi_map_has_been_loaded(), and cfapi_object_get_property().
| #define CFAPI_POBJECT 5 |
Definition at line 58 of file plugin.h.
Referenced by cf_archetype_get_clone(), cf_create_object(), cf_create_object_by_name(), cf_friendlylist_get_first(), cf_friendlylist_get_next(), cf_identify(), cf_map_find_by_archetype_name(), cf_map_get_object_at(), cf_map_insert_object(), cf_map_insert_object_around(), cf_map_insert_object_there(), cf_object_change_map(), cf_object_check_for_spell(), cf_object_clone(), cf_object_find_by_arch_name(), cf_object_find_by_name(), cf_object_get_object_property(), cf_object_insert_in_ob(), cf_object_insert_object(), cf_object_present_archname_inside(), cf_object_set_object_property(), cf_object_split(), cf_player_get_marked_item(), cfapi_archetype_get_property(), cfapi_friendlylist_get_next(), cfapi_map_find_by_archetype_name(), cfapi_map_get_object_at(), cfapi_object_check_spell(), cfapi_object_clone(), cfapi_object_create(), cfapi_object_find_archetype_inside(), cfapi_object_find_by_arch_name(), cfapi_object_find_by_name(), cfapi_object_get_property(), cfapi_object_give_skill(), cfapi_object_identify(), cfapi_object_insert(), cfapi_object_merge(), cfapi_object_set_property(), cfapi_object_split(), and cfapi_object_transfer().
| #define CFAPI_PPARTY 12 |
Definition at line 65 of file plugin.h.
Referenced by cf_object_get_partylist_property(), cf_party_get_first(), cf_party_get_next(), cfapi_object_get_property(), cfapi_object_set_property(), and cfapi_party_get_property().
| #define CFAPI_PPLAYER 11 |
Definition at line 64 of file plugin.h.
Referenced by cf_party_get_first_player(), cf_party_get_next_player(), cf_player_find(), cfapi_party_get_property(), and cfapi_player_find().
| #define CFAPI_PREGION 13 |
Definition at line 66 of file plugin.h.
Referenced by cf_map_get_region_property(), cf_region_get_first(), cf_region_get_next(), cf_region_get_parent(), cfapi_map_get_map_property(), and cfapi_region_get_property().
| #define CFAPI_REGION_PROP_JAIL_PATH 7 |
Definition at line 283 of file plugin.h.
Referenced by cf_region_get_jail_path(), and cfapi_region_get_property().
| #define CFAPI_REGION_PROP_JAIL_X 5 |
Definition at line 281 of file plugin.h.
Referenced by cf_region_get_jail_x(), and cfapi_region_get_property().
| #define CFAPI_REGION_PROP_JAIL_Y 6 |
Definition at line 282 of file plugin.h.
Referenced by cf_region_get_jail_y(), and cfapi_region_get_property().
| #define CFAPI_REGION_PROP_LONGNAME 3 |
Definition at line 279 of file plugin.h.
Referenced by cf_region_get_longname(), and cfapi_region_get_property().
| #define CFAPI_REGION_PROP_MESSAGE 4 |
Definition at line 280 of file plugin.h.
Referenced by cf_region_get_message(), and cfapi_region_get_property().
| #define CFAPI_REGION_PROP_NAME 0 |
Definition at line 276 of file plugin.h.
Referenced by cf_region_get_name(), and cfapi_region_get_property().
| #define CFAPI_REGION_PROP_NEXT 1 |
Definition at line 277 of file plugin.h.
Referenced by cf_region_get_first(), cf_region_get_next(), and cfapi_region_get_property().
| #define CFAPI_REGION_PROP_PARENT 2 |
Definition at line 278 of file plugin.h.
Referenced by cf_region_get_parent(), and cfapi_region_get_property().
| #define CFAPI_REGION_VECTOR 22 |
Pointer to a std::vector<region *>
Definition at line 75 of file plugin.h.
Referenced by cf_system_get_region_vector(), and cfapi_system_get_region_vector().
| #define CFAPI_SINT64 16 |
Definition at line 69 of file plugin.h.
Referenced by cf_object_get_int64_property(), cf_object_perm_exp(), cf_object_set_int64_property(), cf_system_register_command(), cf_system_register_command_extra(), cfapi_object_get_property(), cfapi_object_perm_exp(), cfapi_object_set_property(), and cfapi_register_command().
| #define CFAPI_SSTRING 17 /* Shared string that shouldn't be changed, or const char* */ |
Definition at line 70 of file plugin.h.
Referenced by cf_add_string(), cf_archetype_get_name(), cf_find_string(), cf_map_get_sstring_property(), cf_object_get_key(), cf_object_get_msg(), cf_object_get_sstring_property(), cf_party_get_name(), cf_party_get_password(), cf_player_get_ip(), cf_query_name_pl(), cf_region_get_jail_path(), cf_region_get_longname(), cf_region_get_message(), cf_region_get_name(), cfapi_archetype_get_property(), cfapi_map_get_map_property(), cfapi_object_get_key(), cfapi_object_get_property(), cfapi_party_get_property(), cfapi_region_get_property(), cfapi_system_add_string(), and cfapi_system_find_string().
| #define CFAPI_STRING 4 /* String with a length that must be given too. */ |
Definition at line 57 of file plugin.h.
Referenced by cf_get_directory(), cf_get_maps_directory(), cf_get_month_name(), cf_get_periodofday_name(), cf_get_season_name(), cf_get_weekday_name(), cf_map_set_string_property(), cf_object_get_string_property(), cf_object_set_string_property(), cf_player_get_title(), cf_query_name(), cf_re_cmp(), cf_strdup_local(), cfapi_map_create_path(), cfapi_map_set_map_property(), cfapi_object_describe(), cfapi_object_get_property(), cfapi_object_set_property(), cfapi_system_directory(), cfapi_system_re_cmp(), and cfapi_system_strdup_local().
| #define CFAPI_SYSTEM_ARCHETYPES 202 |
Definition at line 287 of file plugin.h.
Referenced by cfapi_system_get_archetype_vector(), and getArchetypes().
| #define CFAPI_SYSTEM_FRIENDLY_LIST 205 |
Definition at line 290 of file plugin.h.
Referenced by cfapi_system_get_object_vector(), and getFriendlyList().
| #define CFAPI_SYSTEM_MAPS 200 |
Definition at line 285 of file plugin.h.
Referenced by cfapi_system_get_map_vector(), and getMaps().
| #define CFAPI_SYSTEM_PARTIES 204 |
Definition at line 289 of file plugin.h.
Referenced by cfapi_system_get_party_vector(), and getParties().
| #define CFAPI_SYSTEM_PLAYERS 201 |
Definition at line 286 of file plugin.h.
Referenced by cfapi_system_get_object_vector(), and getPlayers().
| #define CFAPI_SYSTEM_REGIONS 203 |
Definition at line 288 of file plugin.h.
Referenced by cfapi_system_get_region_vector(), and getRegions().
| #define LIBPTRTYPE void * |
Definition at line 88 of file plugin.h.
Referenced by plugins_init_plugin().
| #define plugins_dlclose | ( | lib | ) | dlclose(lib) |
Unload a shared library.
Definition at line 113 of file plugin.h.
Referenced by plugins_init_plugin(), and plugins_remove_plugin().
| #define plugins_dlerror | ( | ) | dlerror() |
Library error.
Definition at line 115 of file plugin.h.
Referenced by plugins_find_plugin(), and plugins_init_plugin().
| #define plugins_dlopen | ( | fname | ) | dlopen(fname, RTLD_NOW|RTLD_GLOBAL) |
Load a shared library.
Definition at line 112 of file plugin.h.
Referenced by plugins_init_plugin().
| #define plugins_dlsym | ( | lib, | |
| name | |||
| ) | dlsym(lib, name) |
Get a function from a shared library.
Definition at line 114 of file plugin.h.
Referenced by plugins_init_plugin().
| typedef void(* f_plug_api) (int *type,...) |
| typedef int(* f_plug_init) (const char *iversion, f_plug_api gethooksptr) |
| typedef int(* f_plug_postinit) (void) |