Crossfire Server, Branches 1.12
R18729
|
#include <dlfcn.h>
#include <global.h>
#include <object.h>
#include <logger.h>
#include <../random_maps/random_map.h>
#include <../random_maps/rproto.h>
#include <dirent.h>
#include <stdarg.h>
Go to the source code of this file.
Data Structures | |
struct | _crossfire_plugin |
struct | _hook_entry |
Typedefs | |
typedef struct _crossfire_plugin | crossfire_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) |
typedef struct _hook_entry | hook_entry |
Variables | |
int | plugin_number |
crossfire_plugin * | plugins_list |
Definitions for the plugin system.
Definition in file plugin.h.
#define CFAPI_ARCH_PROP_CLONE 4 |
Definition at line 307 of file plugin.h.
Referenced by cf_archetype_get_clone(), and cfapi_archetype_get_property().
#define CFAPI_ARCH_PROP_HEAD 2 |
Definition at line 305 of file plugin.h.
Referenced by cf_archetype_get_head(), and cfapi_archetype_get_property().
#define CFAPI_ARCH_PROP_MORE 3 |
Definition at line 306 of file plugin.h.
Referenced by cf_archetype_get_more(), and cfapi_archetype_get_property().
#define CFAPI_ARCH_PROP_NAME 0 |
Definition at line 303 of file plugin.h.
Referenced by cf_archetype_get_name(), and cfapi_archetype_get_property().
#define CFAPI_ARCH_PROP_NEXT 1 |
Definition at line 304 of file plugin.h.
Referenced by cf_archetype_get_first(), cf_archetype_get_next(), and cfapi_archetype_get_property().
#define CFAPI_DOUBLE 8 |
Definition at line 108 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 107 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 110 of file plugin.h.
Referenced by cfapi_get_hooks().
#define CFAPI_INT 1 |
Definition at line 101 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_ability(), 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_query_cost(), cf_object_query_money(), cf_object_say(), 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_can_pay(), cf_player_move(), cf_random_map_set_variable(), 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_query_cost(), cfapi_object_query_money(), 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_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 114 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 102 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 293 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 285 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 296 of file plugin.h.
Referenced by cf_map_get_enter_x(), cfapi_map_get_map_property(), and Map_GetEnterX().
#define CFAPI_MAP_PROP_ENTER_Y 13 |
Definition at line 297 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 284 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 295 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 298 of file plugin.h.
Referenced by cfapi_map_get_map_property(), and Map_GetMessage().
#define CFAPI_MAP_PROP_NAME 4 |
Definition at line 288 of file plugin.h.
Referenced by cfapi_map_get_map_property(), and Map_GetName().
#define CFAPI_MAP_PROP_NEXT 23 |
Definition at line 299 of file plugin.h.
Referenced by cf_map_get_first(), cfapi_map_get_map_property(), getMaps(), and Map_Next().
#define CFAPI_MAP_PROP_PATH 2 |
Definition at line 286 of file plugin.h.
Referenced by cfapi_map_get_map_property(), cfapi_map_set_map_property(), Map_GetPath(), Map_SetPath(), and Map_TriggerConnected().
#define CFAPI_MAP_PROP_PLAYERS 7 |
Definition at line 291 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 300 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 289 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 290 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 287 of file plugin.h.
Referenced by cfapi_map_get_map_property(), and Map_GetTempName().
#define CFAPI_MAP_PROP_UNIQUE 25 |
Definition at line 301 of file plugin.h.
Referenced by cfapi_map_get_map_property(), and Map_GetUnique().
#define CFAPI_MAP_PROP_WIDTH 10 |
Definition at line 294 of file plugin.h.
Referenced by cf_map_get_width(), and cfapi_map_get_map_property().
#define CFAPI_MOVETYPE 18 /* MoveType */ |
Definition at line 118 of file plugin.h.
Referenced by cf_object_get_movetype_property(), cf_object_set_movetype_property(), and cfapi_object_get_property().
#define CFAPI_NONE 0 |
Definition at line 100 of file plugin.h.
Referenced by cf_get_time(), cf_log(), cf_log_plain(), cf_map_trigger_connected(), cf_object_change_exp(), cf_object_learn_spell(), cf_object_pickup(), cf_player_message(), cf_system_register_global_event(), cf_system_unregister_global_event(), cfapi_archetype_get_property(), 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_check_inventory(), cfapi_object_clean_object(), cfapi_object_clear(), cfapi_object_create(), cfapi_object_delete(), cfapi_object_drain(), cfapi_object_drop(), cfapi_object_find(), cfapi_object_fix(), cfapi_object_forget_spell(), cfapi_object_get_property(), cfapi_object_identify(), cfapi_object_insert(), cfapi_object_learn_spell(), cfapi_object_pickup(), cfapi_object_remove(), cfapi_object_reset(), cfapi_object_set_property(), cfapi_object_spring_trap(), cfapi_object_transfer(), cfapi_object_transmute(), cfapi_object_update(), cfapi_party_get_property(), cfapi_player_message(), 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 251 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetAC(), and Object_SetAC().
#define CFAPI_OBJECT_PROP_ANIM_SPEED 66 |
Definition at line 230 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetAnimSpeed(), and Object_SetAnimSpeed().
#define CFAPI_OBJECT_PROP_ANIMATION 100 |
Definition at line 264 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetAnim(), Object_SetAnim(), and runturn().
#define CFAPI_OBJECT_PROP_ARCH_NAME 97 |
Definition at line 261 of file plugin.h.
Referenced by cfapi_object_get_property(), and Object_GetArchName().
#define CFAPI_OBJECT_PROP_ARCHETYPE 63 |
Definition at line 227 of file plugin.h.
Referenced by cfapi_object_get_property(), and Object_GetArchetype().
#define CFAPI_OBJECT_PROP_ATTACK_MOVEMENT 60 |
Definition at line 224 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetAttackMovement(), and Object_SetAttackMovement().
#define CFAPI_OBJECT_PROP_ATTACK_TYPE 31 |
Definition at line 195 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetAttackType(), and Object_SetAttackType().
#define CFAPI_OBJECT_PROP_ATTACKED_BY 55 |
Definition at line 219 of file plugin.h.
Referenced by cfapi_object_get_property().
#define CFAPI_OBJECT_PROP_BASE_NAME 69 |
Definition at line 233 of file plugin.h.
Referenced by cf_query_base_name(), and cfapi_object_get_property().
#define CFAPI_OBJECT_PROP_CARRYING 50 |
Definition at line 214 of file plugin.h.
Referenced by cfapi_object_get_property().
#define CFAPI_OBJECT_PROP_CHA 85 |
Definition at line 249 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetCha(), and Object_SetCha().
#define CFAPI_OBJECT_PROP_CHEATER 75 |
Definition at line 239 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 221 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 193 of file plugin.h.
Referenced by cfapi_object_get_property().
#define CFAPI_OBJECT_PROP_CON 81 |
Definition at line 245 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetCon(), and Object_SetCon().
#define CFAPI_OBJECT_PROP_CONTAINER 8 |
Definition at line 173 of file plugin.h.
Referenced by cfapi_object_get_property().
#define CFAPI_OBJECT_PROP_COUNT 10 |
Definition at line 175 of file plugin.h.
Referenced by cfapi_object_get_property(), and Object_GetCount().
#define CFAPI_OBJECT_PROP_CURRENT_WEAPON 53 |
Definition at line 217 of file plugin.h.
Referenced by cfapi_object_get_property().
#define CFAPI_OBJECT_PROP_CUSTOM_NAME 65 |
Definition at line 229 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
#define CFAPI_OBJECT_PROP_DAM 95 |
Definition at line 259 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetDam(), and Object_SetDam().
#define CFAPI_OBJECT_PROP_DEX 80 |
Definition at line 244 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetDex(), and Object_SetDex().
#define CFAPI_OBJECT_PROP_DIRECTION 25 |
Definition at line 189 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetDirection(), and Object_SetDirection().
#define CFAPI_OBJECT_PROP_DURATION 109 |
Definition at line 273 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetDuration(), and Object_SetDuration().
#define CFAPI_OBJECT_PROP_ENEMY 54 |
Definition at line 218 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetEnemy(), and Object_SetEnemy().
#define CFAPI_OBJECT_PROP_ENVIRONMENT 6 |
Definition at line 171 of file plugin.h.
Referenced by cfapi_object_get_property(), and Object_GetEnv().
#define CFAPI_OBJECT_PROP_EXP 72 |
Definition at line 236 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 226 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 263 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetFace(), and Object_SetFace().
#define CFAPI_OBJECT_PROP_FACING 26 |
Definition at line 190 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetFacing(), and Object_SetFacing().
#define CFAPI_OBJECT_PROP_FLAGS 78 |
Definition at line 242 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 255 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetFood(), and Object_SetFood().
#define CFAPI_OBJECT_PROP_FRIENDLY 67 |
Definition at line 231 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetIsPet(), and Object_SetIsPet().
#define CFAPI_OBJECT_PROP_GEN_SP_ARMOUR 47 |
Definition at line 211 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 215 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetGlowRadius(), and Object_SetGlowRadius().
#define CFAPI_OBJECT_PROP_GOD 96 |
Definition at line 260 of file plugin.h.
Referenced by cfapi_object_get_property(), Object_GetGod(), and Object_SetGod().
#define CFAPI_OBJECT_PROP_GP 90 |
Definition at line 254 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetGrace(), and Object_SetGrace().
#define CFAPI_OBJECT_PROP_HEAD 7 |
Definition at line 172 of file plugin.h.
Referenced by cfapi_object_get_property().
#define CFAPI_OBJECT_PROP_HIDDEN 58 |
Definition at line 222 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
#define CFAPI_OBJECT_PROP_HP 88 |
Definition at line 252 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetHP(), and Object_SetHP().
#define CFAPI_OBJECT_PROP_INT 83 |
Definition at line 247 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetInt(), and Object_SetInt().
#define CFAPI_OBJECT_PROP_INVENTORY 5 |
Definition at line 170 of file plugin.h.
Referenced by cfapi_object_get_property(), eventListener(), and Object_GetInventory().
#define CFAPI_OBJECT_PROP_INVISIBLE 98 |
Definition at line 262 of file plugin.h.
Referenced by cfapi_object_get_property(), Object_GetInvisible(), and Object_SetInvisible().
#define CFAPI_OBJECT_PROP_INVISIBLE_TIME 44 |
Definition at line 208 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 210 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 207 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetLastEat(), and Object_SetLastEat().
#define CFAPI_OBJECT_PROP_LAST_GRACE 42 |
Definition at line 206 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetLastGrace(), and Object_SetLastGrace().
#define CFAPI_OBJECT_PROP_LAST_HEAL 40 |
Definition at line 204 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 205 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetLastSP(), and Object_SetLastSP().
#define CFAPI_OBJECT_PROP_LEVEL 39 |
Definition at line 203 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), and Object_GetLevel().
#define CFAPI_OBJECT_PROP_LORE 19 |
Definition at line 183 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
#define CFAPI_OBJECT_PROP_LUCK 71 |
Definition at line 235 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), and Object_GetLuck().
#define CFAPI_OBJECT_PROP_MAGIC 37 |
Definition at line 201 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
#define CFAPI_OBJECT_PROP_MAGICAL 70 |
Definition at line 234 of file plugin.h.
Referenced by cfapi_object_get_property().
#define CFAPI_OBJECT_PROP_MAP 9 |
Definition at line 174 of file plugin.h.
Referenced by cfapi_object_get_property(), and Object_GetMap().
#define CFAPI_OBJECT_PROP_MATERIAL 35 |
Definition at line 199 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
#define CFAPI_OBJECT_PROP_MATERIAL_NAME 36 |
Definition at line 200 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
#define CFAPI_OBJECT_PROP_MAXGP 94 |
Definition at line 258 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetMaxGrace(), and Object_SetMaxGrace().
#define CFAPI_OBJECT_PROP_MAXHP 92 |
Definition at line 256 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetMaxHP(), and Object_SetMaxHP().
#define CFAPI_OBJECT_PROP_MAXSP 93 |
Definition at line 257 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetMaxSP(), and Object_SetMaxSP().
#define CFAPI_OBJECT_PROP_MERGEABLE 76 |
Definition at line 240 of file plugin.h.
Referenced by cfapi_object_get_property().
#define CFAPI_OBJECT_PROP_MESSAGE 18 |
Definition at line 182 of file plugin.h.
Referenced by add_exit_to_item(), cf_object_get_msg(), cfapi_object_get_property(), cfapi_object_set_property(), get_newspaper_content(), is_suitable_exit(), Object_GetMessage(), and Object_SetMessage().
#define CFAPI_OBJECT_PROP_MOVE_ALLOW 104 |
Definition at line 268 of file plugin.h.
Referenced by cfapi_object_get_property(), and Object_GetMoveAllow().
#define CFAPI_OBJECT_PROP_MOVE_BLOCK 103 |
Definition at line 267 of file plugin.h.
Referenced by cfapi_object_get_property(), and Object_GetMoveBlock().
#define CFAPI_OBJECT_PROP_MOVE_OFF 106 |
Definition at line 270 of file plugin.h.
Referenced by cfapi_object_get_property(), and Object_GetMoveOff().
#define CFAPI_OBJECT_PROP_MOVE_ON 105 |
Definition at line 269 of file plugin.h.
Referenced by cfapi_object_get_property(), and Object_GetMoveOn().
#define CFAPI_OBJECT_PROP_MOVE_SLOW 107 |
Definition at line 271 of file plugin.h.
Referenced by cfapi_object_get_property(), and Object_GetMoveSlow().
#define CFAPI_OBJECT_PROP_MOVE_SLOW_PENALTY 108 |
Definition at line 272 of file plugin.h.
Referenced by cfapi_object_get_property(), and Object_GetMoveSlowPenalty().
#define CFAPI_OBJECT_PROP_MOVE_STATUS 59 |
Definition at line 223 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 266 of file plugin.h.
Referenced by cfapi_object_get_property(), and Object_GetMoveType().
#define CFAPI_OBJECT_PROP_NAME 12 |
Definition at line 176 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 177 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 168 of file plugin.h.
Referenced by cfapi_object_get_property().
#define CFAPI_OBJECT_PROP_NO_SAVE 101 |
Definition at line 265 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetNoSave(), and Object_SetNoSave().
#define CFAPI_OBJECT_PROP_NROF 24 |
Definition at line 188 of file plugin.h.
Referenced by cf_object_get_nrof(), cf_object_set_nrof(), cfapi_object_get_property(), cfapi_object_set_property(), and Object_GetQuantity().
#define CFAPI_OBJECT_PROP_OB_ABOVE 1 |
Definition at line 166 of file plugin.h.
Referenced by cfapi_object_get_property(), eventListener(), and Object_GetAbove().
#define CFAPI_OBJECT_PROP_OB_BELOW 2 |
Definition at line 167 of file plugin.h.
Referenced by cfapi_object_get_property(), eventListener(), and Object_GetBelow().
#define CFAPI_OBJECT_PROP_OTHER_ARCH 64 |
Definition at line 228 of file plugin.h.
Referenced by cfapi_object_get_property().
#define CFAPI_OBJECT_PROP_OWNER 73 |
Definition at line 237 of file plugin.h.
Referenced by add_death(), cfapi_object_get_property(), cfapi_object_set_property(), Object_GetOwner(), and Object_SetOwner().
#define CFAPI_OBJECT_PROP_PATH_ATTUNED 32 |
Definition at line 196 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 198 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 197 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
#define CFAPI_OBJECT_PROP_PERM_EXP 52 |
Definition at line 216 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), and Object_GetPermExp().
#define CFAPI_OBJECT_PROP_PICK_UP 45 |
Definition at line 209 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
#define CFAPI_OBJECT_PROP_PICKABLE 77 |
Definition at line 241 of file plugin.h.
Referenced by cfapi_object_get_property().
#define CFAPI_OBJECT_PROP_POW 84 |
Definition at line 248 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetPow(), and Object_SetPow().
#define CFAPI_OBJECT_PROP_PRESENT 74 |
Definition at line 238 of file plugin.h.
Referenced by cfapi_object_get_property().
#define CFAPI_OBJECT_PROP_PREV_ACTIVE_OB 4 |
Definition at line 169 of file plugin.h.
Referenced by cfapi_object_get_property().
#define CFAPI_OBJECT_PROP_RACE 15 |
Definition at line 179 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetRace(), and Object_SetRace().
#define CFAPI_OBJECT_PROP_RESIST 30 |
Definition at line 194 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 220 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 232 of file plugin.h.
Referenced by cfapi_object_get_property().
#define CFAPI_OBJECT_PROP_SKILL 17 |
Definition at line 181 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetSkill(), and Object_SetSkill().
#define CFAPI_OBJECT_PROP_SLAYING 16 |
Definition at line 180 of file plugin.h.
Referenced by add_exit_to_item(), cfapi_object_get_property(), cfapi_object_set_property(), is_suitable_exit(), Object_GetSlaying(), and Object_SetSlaying().
#define CFAPI_OBJECT_PROP_SP 89 |
Definition at line 253 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetSP(), and Object_SetSP().
#define CFAPI_OBJECT_PROP_SPEED 22 |
Definition at line 186 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetSpeed(), and Object_SetSpeed().
#define CFAPI_OBJECT_PROP_SPEED_LEFT 23 |
Definition at line 187 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetSpeedLeft(), and Object_SetSpeedLeft().
#define CFAPI_OBJECT_PROP_SPELL_ITEM 61 |
Definition at line 225 of file plugin.h.
Referenced by cfapi_object_get_property(), and cfapi_object_set_property().
#define CFAPI_OBJECT_PROP_STR 79 |
Definition at line 243 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetStr(), and Object_SetStr().
#define CFAPI_OBJECT_PROP_SUBTYPE 28 |
Definition at line 192 of file plugin.h.
Referenced by cfapi_object_get_property(), and Object_GetSubtype().
#define CFAPI_OBJECT_PROP_TITLE 14 |
Definition at line 178 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetTitle(), and Object_SetTitle().
#define CFAPI_OBJECT_PROP_TYPE 27 |
Definition at line 191 of file plugin.h.
Referenced by cfapi_object_get_property(), is_suitable_exit(), and Object_GetType().
#define CFAPI_OBJECT_PROP_VALUE 38 |
Definition at line 202 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 250 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetWC(), and Object_SetWC().
#define CFAPI_OBJECT_PROP_WEIGHT 48 |
Definition at line 212 of file plugin.h.
Referenced by cf_object_get_weight(), cf_object_set_weight(), cfapi_object_get_property(), cfapi_object_set_property(), Object_GetWeight(), and Object_SetWeight().
#define CFAPI_OBJECT_PROP_WEIGHT_LIMIT 49 |
Definition at line 213 of file plugin.h.
Referenced by cf_object_get_weight_limit(), cf_object_set_weight_limit(), cfapi_object_get_property(), cfapi_object_set_property(), Object_GetWeightLimit(), and Object_SetWeightLimit().
#define CFAPI_OBJECT_PROP_WIS 82 |
Definition at line 246 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Object_GetWis(), and Object_SetWis().
#define CFAPI_OBJECT_PROP_X 20 |
Definition at line 184 of file plugin.h.
Referenced by cfapi_object_get_property(), and Object_GetX().
#define CFAPI_OBJECT_PROP_Y 21 |
Definition at line 185 of file plugin.h.
Referenced by cfapi_object_get_property(), and Object_GetY().
#define CFAPI_PARCH 9 |
Definition at line 109 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 309 of file plugin.h.
Referenced by cf_party_get_name(), and cfapi_party_get_property().
#define CFAPI_PARTY_PROP_NEXT 1 |
Definition at line 310 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 311 of file plugin.h.
Referenced by cf_party_get_password(), and cfapi_party_get_property().
#define CFAPI_PARTY_PROP_PLAYER 3 |
Definition at line 312 of file plugin.h.
Referenced by cf_party_get_first_player(), cf_party_get_next_player(), and cfapi_party_get_property().
#define CFAPI_PLAYER_PROP_BED_MAP 153 |
Definition at line 278 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 279 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 280 of file plugin.h.
Referenced by cfapi_object_get_property(), cfapi_object_set_property(), Player_GetBedY(), and Player_SetBedY().
#define CFAPI_PLAYER_PROP_IP 150 |
Definition at line 275 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 276 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 281 of file plugin.h.
Referenced by cfapi_object_get_property(), and getPlayers().
#define CFAPI_PLAYER_PROP_PARTY 152 |
Definition at line 277 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 282 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_PMAP 6 |
Definition at line 106 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 105 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_map_get_object_at(), cf_map_insert_object(), cf_map_insert_object_there(), cf_map_present_arch_by_name(), cf_object_change_map(), cf_object_check_for_spell(), cf_object_clone(), 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_player_get_marked_item(), cfapi_archetype_get_property(), cfapi_friendlylist_get_next(), cfapi_map_get_object_at(), cfapi_map_present_arch_by_name(), cfapi_object_check_inventory(), cfapi_object_check_spell(), cfapi_object_clone(), cfapi_object_create(), cfapi_object_find(), cfapi_object_find_archetype_inside(), cfapi_object_get_property(), cfapi_object_give_skill(), cfapi_object_insert(), cfapi_object_merge(), cfapi_object_set_property(), cfapi_object_split(), and cfapi_object_transfer().
#define CFAPI_PPARTY 12 |
Definition at line 112 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 111 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 113 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_LONGNAME 3 |
Definition at line 317 of file plugin.h.
Referenced by cf_region_get_longname(), and cfapi_region_get_property().
#define CFAPI_REGION_PROP_MESSAGE 4 |
Definition at line 318 of file plugin.h.
Referenced by cf_region_get_message(), and cfapi_region_get_property().
#define CFAPI_REGION_PROP_NAME 0 |
Definition at line 314 of file plugin.h.
Referenced by cf_region_get_name(), and cfapi_region_get_property().
#define CFAPI_REGION_PROP_NEXT 1 |
Definition at line 315 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 316 of file plugin.h.
Referenced by cf_region_get_parent(), and cfapi_region_get_property().
#define CFAPI_SINT64 16 |
Definition at line 116 of file plugin.h.
Referenced by cf_object_get_int64_property(), cf_object_set_int64_property(), cfapi_object_get_property(), and cfapi_object_set_property().
#define CFAPI_SSTRING 17 /* Shared string that shouldn't be changed, or const char* */ |
Definition at line 117 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_player_get_title(), cf_query_name_pl(), 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 104 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_query_base_name(), 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 EVENT_APPLY 1 |
Object applied-unapplied.
Definition at line 62 of file plugin.h.
Referenced by eventListener(), initConstants(), manual_apply(), and pray_at_altar().
#define EVENT_ATTACK 2 |
Monster attacked or Scripted Weapon used.
Definition at line 63 of file plugin.h.
Referenced by attack_ob_simple(), hit_with_arrow(), and initConstants().
#define EVENT_BORN 14 |
A new character has been created.
Definition at line 79 of file plugin.h.
Referenced by cflogger_globalEventListener(), cfpython_globalEventListener(), execute_global_event(), globalEventListener(), initConstants(), key_change_class(), and postInitPlugin().
#define EVENT_CLOCK 15 |
Global time event.
Definition at line 80 of file plugin.h.
Referenced by cfanim_globalEventListener(), cflogger_globalEventListener(), cfpython_globalEventListener(), citylife_globalEventListener(), execute_global_event(), globalEventListener(), initConstants(), postInitPlugin(), and server_main().
#define EVENT_CLOSE 11 |
Container closed.
Definition at line 72 of file plugin.h.
Referenced by apply_container(), and initConstants().
#define EVENT_CRASH 16 |
Triggered when the server crashes. Not recursive
Definition at line 81 of file plugin.h.
Referenced by cfpython_globalEventListener(), execute_global_event(), globalEventListener(), and initConstants().
#define EVENT_DEATH 3 |
Player or monster dead.
Definition at line 64 of file plugin.h.
Referenced by initConstants(), kill_object(), and kill_player().
#define EVENT_DESTROY 13 |
Object destroyed (includes map reset/swapout)
Definition at line 74 of file plugin.h.
Referenced by free_object2(), and initConstants().
#define EVENT_DROP 4 |
Object dropped on the floor.
Definition at line 65 of file plugin.h.
Referenced by drop_object(), and initConstants().
#define EVENT_GKILL 18 |
Triggered when anything got killed by anyone.
Definition at line 83 of file plugin.h.
Referenced by cflogger_globalEventListener(), cfpython_globalEventListener(), execute_global_event(), globalEventListener(), initConstants(), kill_object(), and postInitPlugin().
#define EVENT_KICK 28 |
A player was Kicked by a DM
Definition at line 93 of file plugin.h.
Referenced by cflogger_globalEventListener(), cfpython_globalEventListener(), command_kick(), execute_global_event(), globalEventListener(), initConstants(), and postInitPlugin().
#define EVENT_LOGIN 19 |
Player login.
Definition at line 84 of file plugin.h.
Referenced by cflogger_globalEventListener(), cfpython_globalEventListener(), check_login(), execute_global_event(), globalEventListener(), initConstants(), key_change_class(), and postInitPlugin().
#define EVENT_LOGOUT 20 |
Player logout.
Definition at line 85 of file plugin.h.
Referenced by apply_savebed(), cflogger_globalEventListener(), cfpython_globalEventListener(), execute_global_event(), globalEventListener(), initConstants(), and postInitPlugin().
#define EVENT_MAPENTER 21 |
A player entered a map.
Definition at line 86 of file plugin.h.
Referenced by cflogger_globalEventListener(), cfpython_globalEventListener(), enter_map(), execute_global_event(), globalEventListener(), initConstants(), and postInitPlugin().
#define EVENT_MAPLEAVE 22 |
A player left a map.
Definition at line 87 of file plugin.h.
Referenced by cflogger_globalEventListener(), cfpython_globalEventListener(), enter_map(), execute_global_event(), globalEventListener(), initConstants(), and postInitPlugin().
#define EVENT_MAPLOAD 30 |
A map is loaded
Definition at line 95 of file plugin.h.
Referenced by cflogger_globalEventListener(), cfpython_globalEventListener(), cfrhg_globalEventListener(), citylife_globalEventListener(), execute_global_event(), initConstants(), load_original_map(), and postInitPlugin().
#define EVENT_MAPRESET 23 |
A map is resetting.
Definition at line 88 of file plugin.h.
Referenced by cflogger_globalEventListener(), cfpython_globalEventListener(), execute_global_event(), flush_old_maps(), globalEventListener(), initConstants(), postInitPlugin(), and swap_map().
#define EVENT_MAPUNLOAD 29 |
A map is freed (includes swapping out)
Definition at line 94 of file plugin.h.
Referenced by cflogger_globalEventListener(), cfpython_globalEventListener(), execute_global_event(), free_map(), initConstants(), and postInitPlugin().
#define EVENT_MUZZLE 27 |
A player was Muzzled (no_shout set).
Definition at line 92 of file plugin.h.
Referenced by cflogger_globalEventListener(), cfpython_globalEventListener(), command_toggle_shout(), execute_global_event(), globalEventListener(), initConstants(), and postInitPlugin().
#define EVENT_NONE 0 |
#define EVENT_PICKUP 5 |
Object picked up.
Definition at line 66 of file plugin.h.
Referenced by initConstants(), and pick_up_object().
#define EVENT_PLAYER_DEATH 17 |
Global Death event
Definition at line 82 of file plugin.h.
Referenced by cflogger_globalEventListener(), cfpython_globalEventListener(), execute_global_event(), globalEventListener(), initConstants(), kill_player(), and postInitPlugin().
#define EVENT_REMOVE 24 |
A Player character has been removed.
Definition at line 89 of file plugin.h.
Referenced by cflogger_globalEventListener(), cfpython_globalEventListener(), execute_global_event(), globalEventListener(), initConstants(), key_confirm_quit(), and postInitPlugin().
#define EVENT_SAY 6 |
Someone speaks.
Definition at line 67 of file plugin.h.
Referenced by initConstants(), and talk_to_npc().
#define EVENT_SHOUT 25 |
A player 'shout' something.
Definition at line 90 of file plugin.h.
Referenced by cfpython_globalEventListener(), command_tell_all(), execute_global_event(), globalEventListener(), initConstants(), and postInitPlugin().
#define EVENT_STOP 7 |
Thrown object stopped.
Definition at line 68 of file plugin.h.
Referenced by initConstants(), and stop_projectile().
#define EVENT_TELL 26 |
A player 'tell' something.
Definition at line 91 of file plugin.h.
Referenced by cfpython_globalEventListener(), do_tell(), execute_global_event(), globalEventListener(), initConstants(), postInitPlugin(), and unregisterGEvent().
#define EVENT_THROW 9 |
Object is thrown.
Definition at line 70 of file plugin.h.
Referenced by do_throw(), and initConstants().
#define EVENT_TIME 8 |
Triggered each time the object can react/move.
Definition at line 69 of file plugin.h.
Referenced by initConstants(), and process_object().
#define EVENT_TIMER 12 |
Timer connected triggered it.
Definition at line 73 of file plugin.h.
Referenced by cftimer_create(), cftimer_process_event(), and initConstants().
#define EVENT_TRIGGER 10 |
Button pushed, lever pulled, etc.
Definition at line 71 of file plugin.h.
Referenced by common_pre_ob_move_on(), initConstants(), move_teleporter(), player_changer_type_process(), trigger_connected(), write_note(), and write_scroll().
#define EVENT_USER 31 |
User-defined event.
Definition at line 75 of file plugin.h.
Referenced by initConstants(), and user_event().
#define LIBPTRTYPE void * |
Definition at line 128 of file plugin.h.
Referenced by plugins_init_plugin().
#define NR_EVENTS 32 |
Definition at line 96 of file plugin.h.
Referenced by plugins_init_plugin().
#define plugins_dlclose | ( | lib | ) | dlclose(lib) |
Unload a shared library.
Definition at line 159 of file plugin.h.
Referenced by plugins_init_plugin(), and plugins_remove_plugin().
#define plugins_dlerror | ( | ) | dlerror() |
#define plugins_dlopen | ( | fname | ) | dlopen(fname, RTLD_NOW|RTLD_GLOBAL) |
Load a shared library.
Definition at line 158 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 160 of file plugin.h.
Referenced by plugins_init_plugin().
typedef struct _crossfire_plugin crossfire_plugin |
One loaded 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) |
typedef struct _hook_entry hook_entry |
One function the server exposes to plugins.
int plugin_number |
Definition at line 154 of file plugins.c.
Referenced by cleanupPlugins(), plugins_init_plugin(), and plugins_remove_plugin().
crossfire_plugin* plugins_list |