Crossfire Server, Branches 1.12
R18729
|
Go to the source code of this file.
Macros | |
#define | GET_HOOK(x, y, z) |
#define GET_HOOK | ( | x, | |
y, | |||
z | |||
) |
Definition at line 126 of file plugin_common.c.
Referenced by cf_init_plugin().
sstring cf_add_string | ( | const char * | str | ) |
Wrapper for add_string(). This will add 'str' to the hash table. If there's no entry for this string, a copy will be allocated, and a pointer to that is returned.
str | string to share. |
Definition at line 998 of file plugin_common.c.
References CFAPI_SSTRING, and cfapiSystem_add_string.
Referenced by compilePython(), get_npc(), initapplyobject(), initpickupobject(), and start_animation().
Get clone of archetype.
arch | archetype, mustn't be NULL. |
Definition at line 1584 of file plugin_common.c.
References CFAPI_ARCH_PROP_CLONE, CFAPI_POBJECT, and cfapiArchetype_get_property.
Referenced by Crossfire_Archetype_GetClone().
archetype* cf_archetype_get_first | ( | void | ) |
Get first archetype.
Definition at line 1503 of file plugin_common.c.
References CFAPI_ARCH_PROP_NEXT, CFAPI_PARCH, and cfapiArchetype_get_property.
Referenced by getArchetypes().
Get head of archetype.
arch | archetype, mustn't be NULL. |
Definition at line 1568 of file plugin_common.c.
References CFAPI_ARCH_PROP_HEAD, CFAPI_PARCH, and cfapiArchetype_get_property.
Referenced by Crossfire_Archetype_GetHead().
Get next part of archetype.
arch | archetype, mustn't be NULL. |
Definition at line 1552 of file plugin_common.c.
References CFAPI_ARCH_PROP_MORE, CFAPI_PARCH, and cfapiArchetype_get_property.
Referenced by Crossfire_Archetype_GetMore().
Get archetype's name.
arch | archetype, mustn't be NULL. |
Definition at line 1519 of file plugin_common.c.
References CFAPI_ARCH_PROP_NAME, CFAPI_SSTRING, and cfapiArchetype_get_property.
Referenced by Crossfire_Archetype_GetName(), and Crossfire_Archetype_GetNewObject().
Get next archetype in linked list.
arch | archetype for which we want the next. Can be NULL, in which case it is equivalent to calling cf_archetype_get_first(). |
Definition at line 1536 of file plugin_common.c.
References CFAPI_ARCH_PROP_NEXT, CFAPI_PARCH, and cfapiArchetype_get_property.
Referenced by Crossfire_Archetype_GetNext(), and getArchetypes().
object* cf_create_object | ( | void | ) |
Wrapper for get_object(). Grabs an object from the list of unused objects, makes sure it is initialised, and returns it.
If there are no free objects, expand_objects() is called to get more.
Definition at line 912 of file plugin_common.c.
References CFAPI_POBJECT, and cfapiObject_create.
Referenced by createCFObject().
object* cf_create_object_by_name | ( | const char * | name | ) |
Wrapper for create_archetype() and create_archetype_by_object_name().
Definition at line 924 of file plugin_common.c.
References CFAPI_POBJECT, and cfapiObject_create.
Referenced by createCFObjectByName(), Crossfire_Archetype_GetNewObject(), Crossfire_Object_CreateInside(), eventListener(), get_npc(), and Map_CreateObject().
int cf_find_animation | ( | const char * | name | ) |
Wrapper for find_animation().
Definition at line 1315 of file plugin_common.c.
References CFAPI_INT, and cfapiSystem_find_animation.
Referenced by findAnimation(), and Object_SetAnim().
int cf_find_face | ( | const char * | name, |
int | error | ||
) |
Wrapper for find_face().
Definition at line 1327 of file plugin_common.c.
References CFAPI_INT, and cfapiSystem_find_face.
Referenced by findFace(), and Object_SetFace().
sstring cf_find_string | ( | const char * | str | ) |
Definition at line 1020 of file plugin_common.c.
References CFAPI_SSTRING, and cfapiSystem_find_string.
Referenced by find_by_name().
void cf_fix_object | ( | object * | op | ) |
Wrapper for fix_object(). Updates all abilities given by applied objects in the inventory of the given object.
This functions starts from base values (archetype or player object) and then adjusts them according to what the player/monster has equipped.
Note that a player always has stats reset to their initial value.
July 95 - inserted stuff to handle new skills/exp system - b.t. spell system split, grace points now added to system –peterm
November 2006: max armor speed is always taken into account, no exception.
op | object to reset. |
Definition at line 987 of file plugin_common.c.
References cfapiObject_fix.
Referenced by Crossfire_Object_Fix().
void cf_free_string | ( | sstring | str | ) |
Wrapper for free_string(). This will reduce the refcount, and if it has reached 0, str will be freed.
str | string to release, which *must *have been returned from a previous add_string(). |
Definition at line 1013 of file plugin_common.c.
References cfapiSystem_remove_string.
Referenced by compilePython(), runapplyobject(), rundropobject(), runpickupobject(), and start_animation().
object* cf_friendlylist_get_first | ( | void | ) |
Get first object on friendly list.
Definition at line 1791 of file plugin_common.c.
References CFAPI_POBJECT, and cfapiFriendlylist_get_next.
Referenced by getFriendlyList().
Get next object on friendly list.
ob | object we want the next of. If NULL then equivalent of cf_friendlylist_get_first(). |
Definition at line 1807 of file plugin_common.c.
References CFAPI_POBJECT, and cfapiFriendlylist_get_next.
Referenced by getFriendlyList().
const char* cf_get_directory | ( | int | id | ) |
Gets a directory Crossfire uses.
id | what directory to return: -#Where the map files are
|
Definition at line 961 of file plugin_common.c.
References CFAPI_STRING, and cfapiSystem_directory.
Referenced by getConfigDirectory(), getDataDirectory(), getLocalDirectory(), getMapDirectory(), getPlayerDirectory(), getTempDirectory(), getUniqueDirectory(), and postInitPlugin().
mapstruct* cf_get_empty_map | ( | int | sizex, |
int | sizey | ||
) |
Wrapper for get_empty_map().
Definition at line 777 of file plugin_common.c.
References CFAPI_PMAP, and cfapiMap_get_map.
Referenced by createMap().
char* cf_get_maps_directory | ( | const char * | name, |
char * | buf, | ||
int | size | ||
) |
Wrapper for create_pathname(). This makes a path absolute outside the world of Crossfire. In other words, it prepends LIBDIR/MAPDIR/ to the given path and returns the pointer to a static array containing the result. it really should be called create_mapname
name | path of the map. |
buf | buffer that will contain the full path. |
size | buffer's length. |
Definition at line 900 of file plugin_common.c.
References CFAPI_STRING, and cfapiMap_create_path.
Referenced by cfpython_globalEventListener(), cfpython_runPluginCommand(), eventListener(), and postInitPlugin().
const char* cf_get_month_name | ( | int | index | ) |
Definition at line 1382 of file plugin_common.c.
References CFAPI_STRING, and cfapiSystem_get_month_name.
Referenced by getMonthName().
const char* cf_get_periodofday_name | ( | int | index | ) |
Definition at line 1400 of file plugin_common.c.
References CFAPI_STRING, and cfapiSystem_get_periodofday_name.
Referenced by getPeriodofdayName().
const char* cf_get_season_name | ( | int | index | ) |
Definition at line 1373 of file plugin_common.c.
References CFAPI_STRING, and cfapiSystem_get_season_name.
Referenced by getSeasonName().
void cf_get_time | ( | timeofday_t * | tod | ) |
Definition at line 1366 of file plugin_common.c.
References CFAPI_NONE, and cfapiSystem_get_time.
Referenced by get_newspaper_content(), getTime(), and store_time().
const char* cf_get_weekday_name | ( | int | index | ) |
Definition at line 1391 of file plugin_common.c.
References CFAPI_STRING, and cfapiSystem_get_weekday_name.
Referenced by getWeekdayName().
int cf_init_plugin | ( | f_plug_api | getHooks | ) |
Definition at line 134 of file plugin_common.c.
References cfapiArchetype_get_property, cfapiFriendlylist_get_next, cfapiGenerate_random_map, cfapiMap_change_light, cfapiMap_create_path, cfapiMap_get_map, cfapiMap_get_object_at, cfapiMap_get_property, cfapiMap_has_been_loaded, cfapiMap_message, cfapiMap_present_arch_by_name, cfapiMap_set_property, cfapiMap_trigger_connected, cfapiObject_activate_rune, cfapiObject_apply, cfapiObject_apply_below, cfapiObject_cast, cfapiObject_change_abil, cfapiObject_change_exp, cfapiObject_check_spell, cfapiObject_check_trigger, cfapiObject_clear, cfapiObject_clone, cfapiObject_create, cfapiObject_delete, cfapiObject_describe, cfapiObject_distance, cfapiObject_drain, cfapiObject_drop, cfapiObject_find, cfapiObject_find_archetype_inside, cfapiObject_fix, cfapiObject_forget_spell, cfapiObject_get_key, cfapiObject_get_property, cfapiObject_give_skill, cfapiObject_identify, cfapiObject_insert, cfapiObject_learn_spell, cfapiObject_merge, cfapiObject_move, cfapiObject_out_of_map, cfapiObject_pay_amount, cfapiObject_pay_item, cfapiObject_pickup, cfapiObject_query_cost, cfapiObject_query_money, cfapiObject_remove, cfapiObject_reset, cfapiObject_say, cfapiObject_set_key, cfapiObject_set_property, cfapiObject_split, cfapiObject_teleport, cfapiObject_transfer, cfapiObject_transmute, cfapiObject_update, cfapiObject_user_event, cfapiParty_get_property, cfapiPlayer_can_pay, cfapiPlayer_find, cfapiPlayer_message, cfapiRegion_get_property, cfapiSet_random_map_variable, cfapiSystem_add_string, cfapiSystem_directory, cfapiSystem_find_animation, cfapiSystem_find_face, cfapiSystem_find_string, cfapiSystem_get_month_name, cfapiSystem_get_periodofday_name, cfapiSystem_get_season_name, cfapiSystem_get_time, cfapiSystem_get_weekday_name, cfapiSystem_log, cfapiSystem_re_cmp, cfapiSystem_register_global_event, cfapiSystem_remove_string, cfapiSystem_strdup_local, cfapiSystem_timer_create, cfapiSystem_timer_destroy, cfapiSystem_unregister_global_event, and GET_HOOK.
Referenced by initPlugin().
void cf_log | ( | LogLevel | logLevel, |
const char * | format, | ||
... | |||
) |
Wrapper for LOG().
Definition at line 1339 of file plugin_common.c.
References CFAPI_NONE, and cfapiSystem_log.
Referenced by add_npc_to_random_map(), add_npcs_to_map(), animate_one(), cfpython_globalEventListener(), cfpython_runPluginCommand(), check_tables(), closePlugin(), compilePython(), do_kills(), do_sql(), eventListener(), get_newspaper_content(), get_npc(), globalEventListener(), initghosted(), initPlugin(), initsay(), initteleport(), initvisible(), initwizard(), is_animated_player(), log_message(), Map_Check(), Map_TriggerConnected(), parse_animation_block(), postInitPlugin(), runcamera(), runfire(), runmovement(), runsay(), runstop(), runturn(), and start_animation().
void cf_log_plain | ( | LogLevel | logLevel, |
const char * | message | ||
) |
Wrapper for LOG() that uses directly a buffer, without format
Definition at line 1359 of file plugin_common.c.
References CFAPI_NONE, and cfapiSystem_log.
int cf_map_change_light | ( | mapstruct * | m, |
int | change | ||
) |
Wrapper for change_map_light().
Definition at line 1237 of file plugin_common.c.
References CFAPI_INT, and cfapiMap_change_light.
Referenced by Map_ChangeLight().
int cf_map_get_darkness | ( | mapstruct * | map | ) |
Definition at line 1213 of file plugin_common.c.
References cf_map_get_int_property(), and CFAPI_MAP_PROP_DARKNESS.
Referenced by Map_GetDarkness().
int cf_map_get_difficulty | ( | mapstruct * | map | ) |
Definition at line 1197 of file plugin_common.c.
References cf_map_get_int_property(), and CFAPI_MAP_PROP_DIFFICULTY.
Referenced by Map_GetDifficulty().
int cf_map_get_enter_x | ( | mapstruct * | map | ) |
Definition at line 1225 of file plugin_common.c.
References cf_map_get_int_property(), and CFAPI_MAP_PROP_ENTER_X.
Referenced by Map_GetEnterY().
int cf_map_get_enter_y | ( | mapstruct * | map | ) |
Definition at line 1229 of file plugin_common.c.
References cf_map_get_int_property(), and CFAPI_MAP_PROP_ENTER_Y.
mapstruct* cf_map_get_first | ( | void | ) |
Gives access to first_map.
Definition at line 804 of file plugin_common.c.
References cf_map_get_map_property(), and CFAPI_MAP_PROP_NEXT.
Referenced by getMaps().
int cf_map_get_flags | ( | mapstruct * | oldmap, |
mapstruct ** | newmap, | ||
sint16 | x, | ||
sint16 | y, | ||
sint16 * | nx, | ||
sint16 * | ny | ||
) |
Wrapper for get_map_flags(). This rolls up wall, blocks_magic, blocks_view, etc, all into one function that just returns a P_.. value (see map.h) it will also do map translation for tiled maps, returning new values into newmap, nx, and ny. Any and all of those values can be null, in which case if a new map is needed (returned by a P_NEW_MAP value, another call to get_map_from_coord is needed. The case of not passing values is if we're just checking for the existence of something on those spaces, but don't expect to insert/remove anything from those spaces.
oldmap | map for which we want information. |
newmap | if not NULL, will contain the actual map checked if not oldmap. |
x | |
y | coordinates to check |
nx | |
ny | if not NULL, will contain the actual coordinates checked. |
Definition at line 1278 of file plugin_common.c.
References CFAPI_INT, CFAPI_MAP_PROP_FLAGS, and cfapiMap_get_property.
Referenced by Map_Check().
int cf_map_get_height | ( | mapstruct * | map | ) |
Definition at line 1221 of file plugin_common.c.
References cf_map_get_int_property(), and CFAPI_MAP_PROP_HEIGHT.
Referenced by find_by_name(), and Map_GetHeight().
int cf_map_get_int_property | ( | mapstruct * | map, |
int | property | ||
) |
Definition at line 230 of file plugin_common.c.
References CFAPI_INT, and cfapiMap_get_property.
Referenced by cf_map_get_darkness(), cf_map_get_difficulty(), cf_map_get_enter_x(), cf_map_get_enter_y(), cf_map_get_height(), cf_map_get_players(), cf_map_get_reset_time(), cf_map_get_reset_timeout(), cf_map_get_width(), Map_GetEnterX(), and Map_GetUnique().
mapstruct* cf_map_get_map | ( | const char * | name, |
int | flags | ||
) |
Wrapper for ready_map_name(). Makes sure the given map is loaded and swapped in.
name | path name of the map. |
flags |
|
Definition at line 764 of file plugin_common.c.
References CFAPI_PMAP, and cfapiMap_get_map.
Referenced by readyMap(), and runteleport().
Definition at line 255 of file plugin_common.c.
References CFAPI_PMAP, and cfapiMap_get_property.
Referenced by cf_map_get_first(), getMaps(), and Map_Next().
Wrapper for GET_MAP_OB(). Gets the bottom object on a map. Not multitile aware.
Definition at line 559 of file plugin_common.c.
References CFAPI_POBJECT, and cfapiMap_get_object_at.
Referenced by eventListener(), and Map_GetFirstObjectAt().
int cf_map_get_players | ( | mapstruct * | map | ) |
Definition at line 1209 of file plugin_common.c.
References cf_map_get_int_property(), and CFAPI_MAP_PROP_PLAYERS.
Referenced by Map_GetPlayers().
Definition at line 264 of file plugin_common.c.
References CFAPI_PREGION, and cfapiMap_get_property.
Referenced by eventListener(), and Map_GetRegion().
int cf_map_get_reset_time | ( | mapstruct * | map | ) |
Definition at line 1201 of file plugin_common.c.
References cf_map_get_int_property(), and CFAPI_MAP_PROP_RESET_TIME.
Referenced by Map_GetResetTime().
int cf_map_get_reset_timeout | ( | mapstruct * | map | ) |
Definition at line 1205 of file plugin_common.c.
References cf_map_get_int_property(), and CFAPI_MAP_PROP_RESET_TIMEOUT.
Referenced by Map_GetResetTimeout().
Definition at line 246 of file plugin_common.c.
References CFAPI_SSTRING, and cfapiMap_get_property.
Referenced by Map_GetMessage(), Map_GetName(), Map_GetPath(), Map_GetTempName(), and Map_TriggerConnected().
int cf_map_get_width | ( | mapstruct * | map | ) |
Definition at line 1217 of file plugin_common.c.
References cf_map_get_int_property(), and CFAPI_MAP_PROP_WIDTH.
Referenced by find_by_name(), and Map_GetWidth().
mapstruct* cf_map_has_been_loaded | ( | const char * | name | ) |
Wrapper for has_been_loaded(). Checks whether map has been loaded.
name | path of the map to search. Can be NULL. |
Definition at line 790 of file plugin_common.c.
References CFAPI_PMAP, and cfapiMap_has_been_loaded.
Referenced by add_npc_to_random_map(), and getMapHasBeenLoaded().
Wrapper for insert_ob_in_map_at().
Definition at line 1168 of file plugin_common.c.
References CFAPI_POBJECT, and cfapiObject_insert.
Referenced by Map_CreateObject(), and Map_Insert().
Wrapper for insert_ob_in_map().
Definition at line 1154 of file plugin_common.c.
References CFAPI_POBJECT, and cfapiObject_insert.
Referenced by runghosted().
void cf_map_message | ( | mapstruct * | m, |
const char * | msg, | ||
int | color | ||
) |
Partial wrapper for ext_info_map().
Definition at line 571 of file plugin_common.c.
References cfapiMap_message.
Referenced by Map_Message(), and runmessage().
Kinda wrapper for arch_present().
Definition at line 1188 of file plugin_common.c.
References CFAPI_POBJECT, and cfapiMap_present_arch_by_name.
Referenced by Map_Check().
void cf_map_set_int_property | ( | mapstruct * | map, |
int | propcode, | ||
int | value | ||
) |
Definition at line 274 of file plugin_common.c.
References CFAPI_INT, and cfapiMap_set_property.
void cf_map_set_string_property | ( | mapstruct * | map, |
int | propcode, | ||
const char * | value | ||
) |
Definition at line 281 of file plugin_common.c.
References CFAPI_STRING, and cfapiMap_set_property.
Referenced by Map_SetPath().
void cf_map_trigger_connected | ( | objectlink * | ol, |
object * | cause, | ||
int | state | ||
) |
Wrapper for trigger_connected().
Definition at line 859 of file plugin_common.c.
References CFAPI_NONE, and cfapiMap_trigger_connected.
Referenced by Map_TriggerConnected().
Wrapper for manual_apply(). Main apply handler.
Checks for unpaid items before applying.
op | object causing tmp to be applied. |
tmp | object being applied. |
aflag | special (always apply/unapply) flags. Nothing is done with them in this function - they are passed to apply_special(). |
Definition at line 472 of file plugin_common.c.
References cfapiObject_apply.
Referenced by Crossfire_Object_Apply(), and runapplyobject().
void cf_object_apply_below | ( | object * | pl | ) |
Wrapper for player_apply_below(). Attempt to apply the object 'below' the player. If the player has an open container, we use that for below, otherwise we use the ground.
pl | player. |
Definition at line 483 of file plugin_common.c.
References cfapiObject_apply_below.
Referenced by runapply().
Should there be a difference nowadays between that and cast_spell ?
Definition at line 636 of file plugin_common.c.
References CFAPI_INT, and cfapiObject_cast.
Referenced by Crossfire_Object_CastAbility().
int cf_object_cast_spell | ( | object * | op, |
object * | caster, | ||
int | dir, | ||
object * | spell_ob, | ||
char * | stringarg | ||
) |
Wrapper for cast_spell().
Definition at line 624 of file plugin_common.c.
References CFAPI_INT, and cfapiObject_cast.
Referenced by Crossfire_Object_Cast().
Wrapper for change_abil().
Definition at line 1488 of file plugin_common.c.
References CFAPI_INT, and cfapiObject_change_abil.
Referenced by Crossfire_Object_ChangeAbil().
void cf_object_change_exp | ( | object * | op, |
sint64 | exp, | ||
const char * | skill_name, | ||
int | flag | ||
) |
Wrapper for change_exp().
Definition at line 448 of file plugin_common.c.
References CFAPI_NONE, and cfapiObject_change_exp.
Referenced by Crossfire_Object_AddExp().
object* cf_object_change_map | ( | object * | op, |
mapstruct * | m, | ||
object * | originator, | ||
int | flag, | ||
int | x, | ||
int | y | ||
) |
Wrapper for insert_ob_in_map_at().
Definition at line 546 of file plugin_common.c.
References CFAPI_POBJECT, and cfapiObject_transfer.
Referenced by Object_SetMap().
Wrapper for check_spell_known(). Checks to see if player knows the spell. If the name is the same as an existing spell, we presume they know it.
op | object we're looking into. |
name | spell name. Doesn't need to be a shared string. |
Definition at line 670 of file plugin_common.c.
References CFAPI_POBJECT, and cfapiObject_check_spell.
Referenced by Crossfire_Object_KnowSpell().
Wrapper for check_trigger().
Definition at line 847 of file plugin_common.c.
References CFAPI_INT, and cfapiObject_check_trigger.
Referenced by Crossfire_Object_CheckTrigger().
Clone an object.
op | what to clone. |
clonetype |
|
Definition at line 587 of file plugin_common.c.
References CFAPI_POBJECT, and cfapiObject_clone.
Referenced by runghosted().
Definition at line 874 of file plugin_common.c.
References cfapiObject_drop.
Referenced by Crossfire_Object_Drop(), and rundropobject().
Wrapper for do_forget_spell(), except takes an object, not a string.
Definition at line 660 of file plugin_common.c.
References cfapiObject_forget_spell.
Referenced by Crossfire_Object_ForgetSpell().
void cf_object_free | ( | object * | ob | ) |
Wrapper for free_object(). Frees everything allocated by an object, removes it from the list of used objects, and puts it on the list of free objects. The IS_FREED() flag is set in the object. The object must have been removed by remove_ob() first for this function to succeed.
Inventory will be dropped on the ground if in a map, else freed too.
ob | object to free. Will become invalid when function returns. |
Definition at line 501 of file plugin_common.c.
References cfapiObject_delete.
Referenced by add_npc_to_point(), add_npc_to_zone(), Crossfire_Object_Remove(), eventListener(), and runghosted().
Definition at line 391 of file plugin_common.c.
References CFAPI_PARCH, and cfapiObject_get_property.
Referenced by Object_GetArchetype().
double cf_object_get_double_property | ( | object * | op, |
int | propcode | ||
) |
Definition at line 407 of file plugin_common.c.
References CFAPI_DOUBLE, and cfapiObject_get_property.
Referenced by Object_GetExpMul().
int cf_object_get_flag | ( | object * | ob, |
int | flag | ||
) |
Definition at line 1116 of file plugin_common.c.
References CFAPI_OBJECT_PROP_FLAGS, and cfapiObject_get_property.
Referenced by cf_object_insert_in_ob(), Crossfire_Object_InsertInto(), Crossfire_Object_Remove(), Object_GetAlive(), Object_GetAnimated(), Object_GetApplied(), Object_GetBeenApplied(), Object_GetBlind(), Object_GetBlocksView(), Object_GetCanCastSpell(), Object_GetCanSeeInDark(), Object_GetCanSeeInvisible(), Object_GetCanUseArmour(), Object_GetCanUseBow(), Object_GetCanUseHorn(), Object_GetCanUseRing(), Object_GetCanUseRod(), Object_GetCanUseScroll(), Object_GetCanUseSkill(), Object_GetCanUseWand(), Object_GetCanUseWeapon(), Object_GetConfused(), Object_GetCursed(), Object_GetDamned(), Object_GetDM(), Object_GetFloor(), Object_GetFriendly(), Object_GetGenerator(), Object_GetGodGiven(), Object_GetHasXRays(), Object_GetHitBack(), Object_GetIdentified(), Object_GetKnownCursed(), Object_GetKnownMagical(), Object_GetLifesaver(), Object_GetMakeInvisible(), Object_GetMonster(), Object_GetNoDamage(), Object_GetOnlyAttack(), Object_GetPickable(), Object_GetRandomMovement(), Object_GetReflectMissiles(), Object_GetReflectSpells(), Object_GetRollable(), Object_GetRunAway(), Object_GetScared(), Object_GetSleeping(), Object_GetSplitting(), Object_GetStandStill(), Object_GetStealthy(), Object_GetThrown(), Object_GetTurnable(), Object_GetUnaggressive(), Object_GetUndead(), Object_GetUnique(), Object_GetUnpaid(), Object_GetUsedUp(), and Object_GetWasDM().
float cf_object_get_float_property | ( | object * | op, |
int | propcode | ||
) |
Definition at line 383 of file plugin_common.c.
References CFAPI_FLOAT, and cfapiObject_get_property.
Referenced by Object_GetMoveSlowPenalty(), Object_GetSpeed(), and Object_GetSpeedLeft().
sint64 cf_object_get_int64_property | ( | object * | op, |
int | propcode | ||
) |
Definition at line 356 of file plugin_common.c.
References CFAPI_SINT64, and cfapiObject_get_property.
Referenced by Object_GetExp(), and Object_GetPermExp().
int cf_object_get_int_property | ( | object * | op, |
int | propcode | ||
) |
Definition at line 311 of file plugin_common.c.
References CFAPI_INT, and cfapiObject_get_property.
Referenced by is_suitable_exit(), Object_GetAC(), Object_GetAnim(), Object_GetAnimSpeed(), Object_GetAttackMovement(), Object_GetAttackType(), Object_GetCha(), Object_GetCon(), Object_GetCount(), Object_GetDam(), Object_GetDex(), Object_GetDirection(), Object_GetDuration(), Object_GetFace(), Object_GetFacing(), Object_GetFood(), Object_GetGlowRadius(), Object_GetGrace(), Object_GetHP(), Object_GetInt(), Object_GetInvisible(), Object_GetIsPet(), Object_GetLastEat(), Object_GetLastGrace(), Object_GetLastSP(), Object_GetLevel(), Object_GetLuck(), Object_GetMaxGrace(), Object_GetMaxHP(), Object_GetMaxSP(), Object_GetNoSave(), Object_GetPow(), Object_GetQuantity(), Object_GetSP(), Object_GetStr(), Object_GetSubtype(), Object_GetType(), Object_GetWC(), Object_GetWeight(), Object_GetWeightLimit(), Object_GetWis(), Object_GetX(), Object_GetY(), Player_GetBedX(), and Player_GetBedY().
const char* cf_object_get_key | ( | object * | op, |
const char * | keyname | ||
) |
Gets value for specified key, equivalent of get_ob_key_value().
op | object for which we search a key. |
keyname | key to look for. Not required to be a shared string. |
Definition at line 1454 of file plugin_common.c.
References CFAPI_SSTRING, and cfapiObject_get_key.
Referenced by Crossfire_Object_ReadKey(), and eventListener().
long cf_object_get_long_property | ( | object * | op, |
long | propcode | ||
) |
Definition at line 318 of file plugin_common.c.
References CFAPI_LONG, and cfapiObject_get_property.
Referenced by Object_GetValue().
Definition at line 348 of file plugin_common.c.
References CFAPI_PMAP, and cfapiObject_get_property.
Referenced by Object_GetMap().
Definition at line 332 of file plugin_common.c.
References CFAPI_MOVETYPE, and cfapiObject_get_property.
Referenced by Object_GetMoveAllow(), Object_GetMoveBlock(), Object_GetMoveOff(), Object_GetMoveOn(), Object_GetMoveSlow(), and Object_GetMoveType().
Definition at line 1057 of file plugin_common.c.
References CFAPI_OBJECT_PROP_MESSAGE, CFAPI_SSTRING, and cfapiObject_get_property.
int cf_object_get_nrof | ( | object * | ob | ) |
Definition at line 1109 of file plugin_common.c.
References CFAPI_OBJECT_PROP_NROF, and cfapiObject_get_property.
Definition at line 340 of file plugin_common.c.
References CFAPI_POBJECT, and cfapiObject_get_property.
Referenced by add_death(), eventListener(), getPlayers(), Object_GetAbove(), Object_GetBelow(), Object_GetEnemy(), Object_GetEnv(), Object_GetInventory(), and Object_GetOwner().
Definition at line 399 of file plugin_common.c.
References CFAPI_PPARTY, and cfapiObject_get_property.
Referenced by cf_player_get_party().
Definition at line 289 of file plugin_common.c.
References CFAPI_INT16, CFAPI_OBJECT_PROP_RESIST, and cfapiObject_get_property.
Referenced by Crossfire_Object_GetResist().
Definition at line 415 of file plugin_common.c.
References CFAPI_SSTRING, and cfapiObject_get_property.
Referenced by is_suitable_exit(), Object_GetArchName(), Object_GetGod(), Object_GetMessage(), Object_GetRace(), Object_GetSkill(), Object_GetSlaying(), and Object_GetTitle().
char* cf_object_get_string_property | ( | object * | op, |
int | propcode, | ||
char * | buf, | ||
int | size | ||
) |
Definition at line 423 of file plugin_common.c.
References CFAPI_STRING, and cfapiObject_get_property.
Referenced by Player_GetBedMap().
int cf_object_get_weight | ( | object * | ob | ) |
Definition at line 1080 of file plugin_common.c.
References CFAPI_INT, CFAPI_OBJECT_PROP_WEIGHT, and cfapiObject_get_property.
int cf_object_get_weight_limit | ( | object * | ob | ) |
Definition at line 1088 of file plugin_common.c.
References CFAPI_INT, CFAPI_OBJECT_PROP_WEIGHT_LIMIT, and cfapiObject_get_property.
Wrapper for insert_ob_in_ob().
Definition at line 1137 of file plugin_common.c.
References cf_object_get_flag(), CFAPI_POBJECT, cfapiObject_insert, cfapiObject_remove, and FLAG_REMOVED.
Referenced by Crossfire_Object_InsertInto().
Definition at line 887 of file plugin_common.c.
References CFAPI_POBJECT, and cfapiObject_insert.
Referenced by Crossfire_Object_CreateInside(), eventListener(), and get_npc().
Wrapper for do_learn_spell().
Definition at line 648 of file plugin_common.c.
References CFAPI_NONE, and cfapiObject_learn_spell.
Referenced by Crossfire_Object_LearnSpell().
Definition at line 461 of file plugin_common.c.
References CFAPI_INT, and cfapiObject_move.
Referenced by Crossfire_Object_Move(), eventListener(), and runmovement().
int cf_object_move_to | ( | object * | op, |
int | x, | ||
int | y | ||
) |
Wrapper for move_to(). Move an object one square toward a specified destination on the same map. The move takes into account blocked squares for op, and things like that. No check is done to know if the object has enough speed to move.
op | object to move |
x | |
y | destination coordinates |
Definition at line 534 of file plugin_common.c.
References CFAPI_INT, and cfapiObject_transfer.
Referenced by runmoveto().
int cf_object_out_of_map | ( | object * | op, |
int | x, | ||
int | y | ||
) |
Definition at line 866 of file plugin_common.c.
References CFAPI_INT, cfapiObject_out_of_map, and obj::map.
Referenced by Crossfire_Object_GetOutOfMap().
int cf_object_pay_amount | ( | object * | pl, |
uint64 | to_pay | ||
) |
Wrapper for pay_for_amount().
Definition at line 612 of file plugin_common.c.
References CFAPI_INT, and cfapiObject_pay_amount.
Referenced by Crossfire_Object_PayAmount().
Wrapper for pay_for_item().
Definition at line 600 of file plugin_common.c.
References CFAPI_INT, and cfapiObject_pay_item.
Referenced by Crossfire_Object_Pay().
Definition at line 1251 of file plugin_common.c.
References CFAPI_NONE, and cfapiObject_pickup.
Referenced by Crossfire_Object_Take(), runpickup(), and runpickupobject().
Kinda wrapper for present_arch_in_ob().
Definition at line 509 of file plugin_common.c.
References CFAPI_POBJECT, and cfapiObject_find_archetype_inside.
Referenced by Crossfire_Object_CheckInventory().
Wrapper for query_cost().
Definition at line 824 of file plugin_common.c.
References CFAPI_INT, and cfapiObject_query_cost.
Referenced by Crossfire_Object_QueryCost().
int cf_object_query_money | ( | const object * | op | ) |
Wrapper for query_money().
Definition at line 812 of file plugin_common.c.
References CFAPI_INT, and cfapiObject_query_money.
Referenced by Object_GetMoney().
void cf_object_remove | ( | object * | op | ) |
Wrapper for remove_ob(). This function removes the object op from the linked list of objects which it is currently tied to. When this function is done, the object will have no environment. If the object previously had an environment, the x and y coordinates will be updated to the previous environment.
Will inform the client of the removal if needed.
op | object to remove. Must not be removed yet, else abort() is called. |
Definition at line 492 of file plugin_common.c.
References cfapiObject_remove.
Referenced by Crossfire_Object_InsertInto(), Crossfire_Object_Remove(), eventListener(), runghosted(), and start_animation().
void cf_object_say | ( | object * | op, |
char * | msg | ||
) |
Definition at line 880 of file plugin_common.c.
References CFAPI_INT, and cfapiObject_say.
Referenced by Crossfire_Object_Say(), and runsay().
void cf_object_set_flag | ( | object * | ob, |
int | flag, | ||
int | value | ||
) |
Definition at line 1127 of file plugin_common.c.
References CFAPI_OBJECT_PROP_FLAGS, and cfapiObject_set_property.
Referenced by animate_one(), eventListener(), get_npc(), Object_SetAnimated(), Object_SetApplied(), Object_SetBlind(), Object_SetBlocksView(), Object_SetCanSeeInDark(), Object_SetCanSeeInvisible(), Object_SetConfused(), Object_SetCursed(), Object_SetDamned(), Object_SetFriendly(), Object_SetGodGiven(), Object_SetHasXRays(), Object_SetHitBack(), Object_SetIdentified(), Object_SetKnownCursed(), Object_SetKnownMagical(), Object_SetLifesaver(), Object_SetMakeInvisible(), Object_SetNoDamage(), Object_SetOnlyAttack(), Object_SetPickable(), Object_SetRandomMovement(), Object_SetReflectMissiles(), Object_SetReflectSpells(), Object_SetRollable(), Object_SetRunAway(), Object_SetScared(), Object_SetSleeping(), Object_SetStandStill(), Object_SetStealthy(), Object_SetTurnable(), Object_SetUnaggressive(), Object_SetUndead(), Object_SetUnique(), Object_SetUnpaid(), and Object_SetUsedUp().
void cf_object_set_float_property | ( | object * | op, |
int | propcode, | ||
float | value | ||
) |
Definition at line 371 of file plugin_common.c.
References CFAPI_FLOAT, and cfapiObject_set_property.
Referenced by Object_SetSpeed(), and Object_SetSpeedLeft().
void cf_object_set_int64_property | ( | object * | op, |
int | propcode, | ||
sint64 | value | ||
) |
Definition at line 377 of file plugin_common.c.
References CFAPI_SINT64, and cfapiObject_set_property.
Referenced by Object_SetExp().
void cf_object_set_int_property | ( | object * | op, |
int | propcode, | ||
int | value | ||
) |
Definition at line 305 of file plugin_common.c.
References CFAPI_INT, and cfapiObject_set_property.
Referenced by Object_SetAC(), Object_SetAnim(), Object_SetAnimSpeed(), Object_SetAttackMovement(), Object_SetAttackType(), Object_SetCha(), Object_SetCon(), Object_SetDam(), Object_SetDex(), Object_SetDirection(), Object_SetDuration(), Object_SetFace(), Object_SetFacing(), Object_SetFood(), Object_SetGlowRadius(), Object_SetGrace(), Object_SetHP(), Object_SetInt(), Object_SetInvisible(), Object_SetIsPet(), Object_SetLastEat(), Object_SetLastGrace(), Object_SetLastSP(), Object_SetMaxGrace(), Object_SetMaxHP(), Object_SetMaxSP(), Object_SetPow(), Object_SetSP(), Object_SetStr(), Object_SetWC(), Object_SetWeight(), Object_SetWeightLimit(), Object_SetWis(), Player_SetBedX(), Player_SetBedY(), and runturn().
int cf_object_set_key | ( | object * | op, |
const char * | keyname, | ||
const char * | value, | ||
int | add_key | ||
) |
Sets a value for specified key, equivalent to set_ob_key_value().
op | object which will contain the key/value |
keyname | key |
value | value |
add_key | if 0, key is only updated if it exists, else it's updated or added. |
Definition at line 1476 of file plugin_common.c.
References CFAPI_INT, and cfapiObject_set_key.
Referenced by Crossfire_Object_WriteKey(), eventListener(), and get_npc().
void cf_object_set_long_property | ( | object * | op, |
int | propcode, | ||
long | value | ||
) |
Definition at line 365 of file plugin_common.c.
References CFAPI_LONG, and cfapiObject_set_property.
Referenced by Object_SetNoSave(), and Object_SetValue().
Definition at line 326 of file plugin_common.c.
References CFAPI_MOVETYPE, and cfapiObject_set_property.
int cf_object_set_nrof | ( | object * | ob, |
int | nrof | ||
) |
Definition at line 1099 of file plugin_common.c.
References CFAPI_OBJECT_PROP_NROF, and cfapiObject_set_property.
Referenced by Object_SetQuantity().
Definition at line 437 of file plugin_common.c.
References CFAPI_POBJECT, and cfapiObject_set_property.
Referenced by Object_SetEnemy(), and Object_SetOwner().
Definition at line 297 of file plugin_common.c.
References CFAPI_INT16, CFAPI_OBJECT_PROP_RESIST, and cfapiObject_set_property.
Referenced by Crossfire_Object_SetResist().
void cf_object_set_string_property | ( | object * | op, |
int | propcode, | ||
const char * | value | ||
) |
Definition at line 431 of file plugin_common.c.
References CFAPI_STRING, and cfapiObject_set_property.
Referenced by add_exit_to_item(), eventListener(), get_newspaper_content(), Object_SetGod(), Object_SetMessage(), Object_SetName(), Object_SetNamePl(), Object_SetRace(), Object_SetSkill(), Object_SetSlaying(), Object_SetTitle(), and Player_SetBedMap().
void cf_object_set_weight | ( | object * | ob, |
int | weight | ||
) |
Definition at line 1066 of file plugin_common.c.
References CFAPI_INT, CFAPI_OBJECT_PROP_WEIGHT, and cfapiObject_set_property.
void cf_object_set_weight_limit | ( | object * | ob, |
int | weight_limit | ||
) |
Definition at line 1073 of file plugin_common.c.
References CFAPI_INT, CFAPI_OBJECT_PROP_WEIGHT_LIMIT, and cfapiObject_set_property.
Definition at line 1177 of file plugin_common.c.
References CFAPI_INT, and cfapiObject_teleport.
Referenced by add_npc_to_point(), add_npc_to_zone(), Crossfire_Object_Teleport(), and runteleport().
Wrapper for transfer_ob(). Move an object (even linked objects) to another spot on the same map.
Does nothing if there is no free spot.
op | what to move. |
x | |
y | new coordinates. |
randomly | if true, use find_free_spot() to find the destination, otherwise use find_first_free_spot(). |
originator | what is causing op to move. |
1 | op was destroyed. |
0 | op was moved. |
Definition at line 522 of file plugin_common.c.
References CFAPI_INT, and cfapiObject_transfer.
Referenced by Crossfire_Object_Reposition().
void cf_object_update | ( | object * | op, |
int | flags | ||
) |
Definition at line 1245 of file plugin_common.c.
References cfapiObject_update.
Referenced by animate_one().
int cf_object_user_event | ( | object * | op, |
object * | activator, | ||
object * | third, | ||
const char * | message, | ||
int | fix | ||
) |
Definition at line 238 of file plugin_common.c.
References CFAPI_INT, and cfapiObject_user_event.
Referenced by Crossfire_Object_Event().
partylist* cf_party_get_first | ( | void | ) |
Get first party.
Definition at line 1600 of file plugin_common.c.
References CFAPI_PARTY_PROP_NEXT, CFAPI_PPARTY, and cfapiParty_get_property.
Referenced by getParties().
Get first player in party.
party | party, mustn't be NULL. |
Definition at line 1663 of file plugin_common.c.
References CFAPI_PARTY_PROP_PLAYER, CFAPI_PPLAYER, and cfapiParty_get_property.
Referenced by Crossfire_Party_GetPlayers().
const char* cf_party_get_name | ( | partylist * | party | ) |
party | party, mustn't be NULL. |
Definition at line 1615 of file plugin_common.c.
References CFAPI_PARTY_PROP_NAME, CFAPI_SSTRING, and cfapiParty_get_property.
Referenced by Crossfire_Party_GetName().
Get next party in party list.
party | party, can be NULL in which case behaves like cf_party_get_first(). |
Definition at line 1631 of file plugin_common.c.
References CFAPI_PARTY_PROP_NEXT, CFAPI_PPARTY, and cfapiParty_get_property.
Referenced by Crossfire_Party_GetNext(), and getParties().
Get next player in party.
party | party, mustn't be NULL. |
op | player we want the next of. Can be NULL, in this case behaves like cf_party_get_first_player(). |
Definition at line 1681 of file plugin_common.c.
References CFAPI_PARTY_PROP_PLAYER, CFAPI_PPLAYER, and cfapiParty_get_property.
Referenced by Crossfire_Party_GetPlayers().
const char* cf_party_get_password | ( | partylist * | party | ) |
Get party's password.
party | party, mustn't be NULL. |
Definition at line 1647 of file plugin_common.c.
References CFAPI_PARTY_PROP_PASSWORD, CFAPI_SSTRING, and cfapiParty_get_property.
Referenced by Crossfire_Party_GetPassword().
int cf_player_can_pay | ( | object * | pl | ) |
Wrapper for can_pay().
Definition at line 752 of file plugin_common.c.
References CFAPI_INT, and cfapiPlayer_can_pay.
Referenced by Crossfire_Player_CanPay().
player* cf_player_find | ( | const char * | plname | ) |
Wrapper for find_player_partial_name().
Definition at line 690 of file plugin_common.c.
References CFAPI_PPLAYER, and cfapiPlayer_find.
Referenced by findPlayer().
Definition at line 714 of file plugin_common.c.
References CFAPI_PLAYER_PROP_IP, CFAPI_SSTRING, and cfapiObject_get_property.
Referenced by Player_GetIP().
Definition at line 723 of file plugin_common.c.
References CFAPI_PLAYER_PROP_MARKED_ITEM, CFAPI_POBJECT, and cfapiObject_get_property.
Referenced by Player_GetMarkedItem().
Definition at line 738 of file plugin_common.c.
References cf_object_get_partylist_property(), and CFAPI_PLAYER_PROP_PARTY.
Referenced by Player_GetParty().
Definition at line 699 of file plugin_common.c.
References CFAPI_PLAYER_PROP_TITLE, CFAPI_SSTRING, and cfapiObject_get_property.
Referenced by Player_GetTitle().
void cf_player_message | ( | object * | op, |
char * | txt, | ||
int | flags | ||
) |
Definition at line 679 of file plugin_common.c.
References CFAPI_NONE, and cfapiPlayer_message.
Referenced by Crossfire_Player_Message(), and runnotice().
int cf_player_move | ( | player * | pl, |
int | dir | ||
) |
Definition at line 454 of file plugin_common.c.
References CFAPI_INT, and cfapiObject_move.
Referenced by runghosted(), and runmovement().
Definition at line 732 of file plugin_common.c.
References CFAPI_PLAYER_PROP_MARKED_ITEM, and cfapiObject_set_property.
Referenced by Player_SetMarkedItem().
Definition at line 742 of file plugin_common.c.
References CFAPI_PLAYER_PROP_PARTY, and cfapiObject_set_property.
Referenced by Player_SetParty().
void cf_player_set_title | ( | object * | op, |
const char * | title | ||
) |
Definition at line 708 of file plugin_common.c.
References CFAPI_PLAYER_PROP_TITLE, and cfapiObject_set_property.
Referenced by Player_SetTitle().
char* cf_query_base_name | ( | object * | ob, |
int | plural, | ||
char * | name, | ||
int | size | ||
) |
Definition at line 1049 of file plugin_common.c.
References CFAPI_OBJECT_PROP_BASE_NAME, CFAPI_STRING, and cfapiObject_get_property.
char* cf_query_name | ( | object * | ob, |
char * | name, | ||
int | size | ||
) |
Definition at line 1032 of file plugin_common.c.
References CFAPI_OBJECT_PROP_NAME, CFAPI_STRING, and cfapiObject_get_property.
Referenced by Crossfire_Object_QueryName(), and Object_GetName().
Definition at line 1040 of file plugin_common.c.
References CFAPI_OBJECT_PROP_NAME_PLURAL, CFAPI_SSTRING, and cfapiObject_get_property.
Referenced by Object_GetNamePl().
Wrapper for generate_random_map(). Main random map routine. Generates a random map based on specified parameters.
OutFileName | the path the map should have. |
RP | parameters for generation. |
use_layout | if not NULL, this should be a suitable layout. |
Definition at line 1302 of file plugin_common.c.
References CFAPI_PMAP, and cfapiGenerate_random_map.
int cf_random_map_set_variable | ( | RMParms * | rp, |
const char * | buf | ||
) |
Wrapper for set_random_map_variable().
Definition at line 1290 of file plugin_common.c.
References CFAPI_INT, and cfapiSet_random_map_variable.
const char* cf_re_cmp | ( | const char * | str, |
const char * | regexp | ||
) |
Wrapper for re_cmp(). re-cmp - get regular expression match.
str | string that will be matched against the regexp. |
regexp | regular expression. |
Definition at line 974 of file plugin_common.c.
References CFAPI_STRING, and cfapiSystem_re_cmp.
Referenced by matchString().
region* cf_region_get_first | ( | void | ) |
Get first region in region list.
Definition at line 1695 of file plugin_common.c.
References CFAPI_PREGION, CFAPI_REGION_PROP_NEXT, and cfapiRegion_get_property.
Referenced by getRegions().
const char* cf_region_get_longname | ( | region * | reg | ) |
Get longname of region.
reg | region. Mustn't be NULL. |
Definition at line 1759 of file plugin_common.c.
References CFAPI_REGION_PROP_LONGNAME, CFAPI_SSTRING, and cfapiRegion_get_property.
Referenced by Crossfire_Region_GetLongname().
const char* cf_region_get_message | ( | region * | reg | ) |
Get message of region.
reg | region. Mustn't be NULL. |
Definition at line 1775 of file plugin_common.c.
References CFAPI_REGION_PROP_MESSAGE, CFAPI_SSTRING, and cfapiRegion_get_property.
Referenced by Crossfire_Region_GetMessage().
const char* cf_region_get_name | ( | region * | reg | ) |
Get name of region.
reg | region. Mustn't be NULL. |
Definition at line 1711 of file plugin_common.c.
References CFAPI_REGION_PROP_NAME, CFAPI_SSTRING, and cfapiRegion_get_property.
Referenced by Crossfire_Region_GetName().
Get next region in region list.
reg | region. Can be NULL in which case equivalent of cf_region_get_first(). |
Definition at line 1727 of file plugin_common.c.
References CFAPI_PREGION, CFAPI_REGION_PROP_NEXT, and cfapiRegion_get_property.
Referenced by Crossfire_Region_GetNext(), and getRegions().
Get parent of region.
reg | region. Mustn't be NULL. |
Definition at line 1743 of file plugin_common.c.
References CFAPI_PREGION, CFAPI_REGION_PROP_PARENT, and cfapiRegion_get_property.
Referenced by Crossfire_Region_GetParent().
Wrapper for spring_trap().
Definition at line 836 of file plugin_common.c.
References cfapiObject_activate_rune.
Referenced by Crossfire_Object_ActivateRune().
char* cf_strdup_local | ( | const char * | str | ) |
Wrapper for strdup_local().
Definition at line 1263 of file plugin_common.c.
References CFAPI_STRING, and cfapiSystem_strdup_local.
Referenced by initdropobject(), initnotice(), initsay(), initteleport(), registerCommand(), and start_animation().
void cf_system_register_global_event | ( | int | event, |
const char * | name, | ||
f_plug_api | hook | ||
) |
Definition at line 933 of file plugin_common.c.
References CFAPI_NONE, and cfapiSystem_register_global_event.
Referenced by postInitPlugin(), and registerGEvent().
void cf_system_unregister_global_event | ( | int | event, |
const char * | name | ||
) |
Definition at line 940 of file plugin_common.c.
References CFAPI_NONE, and cfapiSystem_unregister_global_event.
Referenced by unregisterGEvent().
int cf_timer_create | ( | object * | ob, |
long | delay, | ||
int | mode | ||
) |
Creates a timer, equivalent of calling cftimer_create().
ob | object that will get called. Should handle EVENT_TIMER. |
delay | delay, seconds or ticks. |
mode | timer mode, TIMER_MODE_SECONDS or TIMER_MODE_CYCLES |
Definition at line 1421 of file plugin_common.c.
References CFAPI_INT, and cfapiSystem_timer_create.
Referenced by Crossfire_Object_CreateTimer().
int cf_timer_destroy | ( | int | id | ) |
Destroys specified timer, equivalent of calling cftimer_destroy().
id | timer to destroy |
Definition at line 1437 of file plugin_common.c.
References CFAPI_INT, and cfapiSystem_timer_destroy.
Referenced by destroyTimer().
|
static |
Definition at line 112 of file plugin_common.c.
Referenced by cf_archetype_get_clone(), cf_archetype_get_first(), cf_archetype_get_head(), cf_archetype_get_more(), cf_archetype_get_name(), cf_archetype_get_next(), and cf_init_plugin().
|
static |
Definition at line 76 of file plugin_common.c.
|
static |
Definition at line 116 of file plugin_common.c.
Referenced by cf_friendlylist_get_first(), cf_friendlylist_get_next(), and cf_init_plugin().
|
static |
Definition at line 118 of file plugin_common.c.
Referenced by cf_init_plugin(), and cf_random_map_generate().
|
static |
Definition at line 101 of file plugin_common.c.
Referenced by cf_init_plugin(), and cf_map_change_light().
|
static |
Definition at line 99 of file plugin_common.c.
Referenced by cf_get_maps_directory(), and cf_init_plugin().
|
static |
Definition at line 95 of file plugin_common.c.
Referenced by cf_get_empty_map(), cf_init_plugin(), and cf_map_get_map().
|
static |
Definition at line 97 of file plugin_common.c.
Referenced by cf_init_plugin(), and cf_map_get_object_at().
|
static |
Definition at line 93 of file plugin_common.c.
Referenced by cf_init_plugin(), cf_map_get_flags(), cf_map_get_int_property(), cf_map_get_map_property(), cf_map_get_region_property(), and cf_map_get_sstring_property().
|
static |
Definition at line 100 of file plugin_common.c.
Referenced by cf_init_plugin(), and cf_map_has_been_loaded().
|
static |
Definition at line 96 of file plugin_common.c.
Referenced by cf_init_plugin(), and cf_map_message().
|
static |
Definition at line 98 of file plugin_common.c.
Referenced by cf_init_plugin(), and cf_map_present_arch_by_name().
|
static |
Definition at line 94 of file plugin_common.c.
Referenced by cf_init_plugin(), cf_map_set_int_property(), and cf_map_set_string_property().
|
static |
Definition at line 102 of file plugin_common.c.
Referenced by cf_init_plugin(), and cf_map_trigger_connected().
|
static |
Definition at line 77 of file plugin_common.c.
Referenced by cf_init_plugin(), and cf_spring_trap().
|
static |
Definition at line 57 of file plugin_common.c.
Referenced by cf_init_plugin(), and cf_object_apply().
|
static |
Definition at line 111 of file plugin_common.c.
Referenced by cf_init_plugin(), and cf_object_apply_below().
|
static |
Definition at line 81 of file plugin_common.c.
Referenced by cf_init_plugin(), cf_object_cast_ability(), and cf_object_cast_spell().
|
static |
Definition at line 91 of file plugin_common.c.
Referenced by cf_init_plugin(), and cf_object_change_abil().
|
static |
Definition at line 119 of file plugin_common.c.
Referenced by cf_init_plugin(), and cf_object_change_exp().
|
static |
Definition at line 84 of file plugin_common.c.
Referenced by cf_init_plugin(), and cf_object_check_for_spell().
|
static |
Definition at line 78 of file plugin_common.c.
Referenced by cf_init_plugin(), and cf_object_check_trigger().
|
static |
Definition at line 74 of file plugin_common.c.
Referenced by cf_init_plugin().
|
static |
Definition at line 66 of file plugin_common.c.
Referenced by cf_init_plugin(), and cf_object_clone().
|
static |
Definition at line 68 of file plugin_common.c.
Referenced by cf_create_object(), cf_create_object_by_name(), and cf_init_plugin().
|
static |
Definition at line 65 of file plugin_common.c.
Referenced by cf_init_plugin(), and cf_object_free().
|
static |
Definition at line 59 of file plugin_common.c.
Referenced by cf_init_plugin().
|
static |
Definition at line 72 of file plugin_common.c.
Referenced by cf_init_plugin().
|
static |
Definition at line 60 of file plugin_common.c.
Referenced by cf_init_plugin().
|
static |
Definition at line 90 of file plugin_common.c.
Referenced by cf_init_plugin(), and cf_object_drop().
|
static |
Definition at line 67 of file plugin_common.c.
Referenced by cf_init_plugin().
|
static |
Definition at line 88 of file plugin_common.c.
Referenced by cf_init_plugin(), and cf_object_present_archname_inside().
|
static |
Definition at line 61 of file plugin_common.c.
Referenced by cf_fix_object(), and cf_init_plugin().
|
static |
Definition at line 83 of file plugin_common.c.
Referenced by cf_init_plugin(), and cf_object_forget_spell().
|
static |
Definition at line 108 of file plugin_common.c.
Referenced by cf_init_plugin(), and cf_object_get_key().
|
static |
Definition at line 55 of file plugin_common.c.
Referenced by cf_init_plugin(), cf_object_get_archetype_property(), cf_object_get_double_property(), cf_object_get_flag(), cf_object_get_float_property(), cf_object_get_int64_property(), cf_object_get_int_property(), cf_object_get_long_property(), cf_object_get_map_property(), cf_object_get_movetype_property(), cf_object_get_msg(), cf_object_get_nrof(), cf_object_get_object_property(), cf_object_get_partylist_property(), cf_object_get_resistance(), cf_object_get_sstring_property(), cf_object_get_string_property(), cf_object_get_weight(), cf_object_get_weight_limit(), cf_player_get_ip(), cf_player_get_marked_item(), cf_player_get_title(), cf_query_base_name(), cf_query_name(), and cf_query_name_pl().
|
static |
Definition at line 62 of file plugin_common.c.
Referenced by cf_init_plugin().
|
static |
Definition at line 58 of file plugin_common.c.
Referenced by cf_init_plugin().
|
static |
Definition at line 69 of file plugin_common.c.
Referenced by cf_init_plugin(), cf_map_insert_object(), cf_map_insert_object_there(), cf_object_insert_in_ob(), and cf_object_insert_object().
|
static |
Definition at line 82 of file plugin_common.c.
Referenced by cf_init_plugin(), and cf_object_learn_spell().
|
static |
Definition at line 71 of file plugin_common.c.
Referenced by cf_init_plugin().
|
static |
Definition at line 110 of file plugin_common.c.
Referenced by cf_init_plugin(), cf_object_move(), and cf_player_move().
|
static |
Definition at line 89 of file plugin_common.c.
Referenced by cf_init_plugin(), and cf_object_out_of_map().
|
static |
Definition at line 85 of file plugin_common.c.
Referenced by cf_init_plugin(), and cf_object_pay_amount().
|
static |
Definition at line 86 of file plugin_common.c.
Referenced by cf_init_plugin(), and cf_object_pay_item().
|
static |
Definition at line 107 of file plugin_common.c.
Referenced by cf_init_plugin(), and cf_object_pickup().
|
static |
Definition at line 80 of file plugin_common.c.
Referenced by cf_init_plugin(), and cf_object_query_cost().
|
static |
Definition at line 79 of file plugin_common.c.
Referenced by cf_init_plugin(), and cf_object_query_money().
|
static |
Definition at line 64 of file plugin_common.c.
Referenced by cf_init_plugin(), cf_object_insert_in_ob(), and cf_object_remove().
|
static |
Definition at line 75 of file plugin_common.c.
Referenced by cf_init_plugin().
|
static |
Definition at line 92 of file plugin_common.c.
Referenced by cf_init_plugin(), and cf_object_say().
|
static |
Definition at line 109 of file plugin_common.c.
Referenced by cf_init_plugin(), and cf_object_set_key().
|
static |
Definition at line 56 of file plugin_common.c.
Referenced by cf_init_plugin(), cf_object_set_flag(), cf_object_set_float_property(), cf_object_set_int64_property(), cf_object_set_int_property(), cf_object_set_long_property(), cf_object_set_movetype_property(), cf_object_set_nrof(), cf_object_set_object_property(), cf_object_set_resistance(), cf_object_set_string_property(), cf_object_set_weight(), cf_object_set_weight_limit(), cf_player_set_marked_item(), cf_player_set_party(), and cf_player_set_title().
|
static |
Definition at line 70 of file plugin_common.c.
Referenced by cf_init_plugin().
|
static |
Definition at line 106 of file plugin_common.c.
Referenced by cf_init_plugin(), and cf_object_teleport().
|
static |
Definition at line 87 of file plugin_common.c.
Referenced by cf_init_plugin(), cf_object_change_map(), cf_object_move_to(), and cf_object_transfer().
|
static |
Definition at line 63 of file plugin_common.c.
Referenced by cf_init_plugin().
|
static |
Definition at line 73 of file plugin_common.c.
Referenced by cf_init_plugin(), and cf_object_update().
|
static |
Definition at line 124 of file plugin_common.c.
Referenced by cf_init_plugin(), and cf_object_user_event().
|
static |
Definition at line 113 of file plugin_common.c.
Referenced by cf_init_plugin(), cf_party_get_first(), cf_party_get_first_player(), cf_party_get_name(), cf_party_get_next(), cf_party_get_next_player(), and cf_party_get_password().
|
static |
Definition at line 115 of file plugin_common.c.
Referenced by cf_init_plugin(), and cf_player_can_pay().
|
static |
Definition at line 103 of file plugin_common.c.
Referenced by cf_init_plugin(), and cf_player_find().
|
static |
Definition at line 104 of file plugin_common.c.
Referenced by cf_init_plugin(), and cf_player_message().
|
static |
Definition at line 105 of file plugin_common.c.
|
static |
Definition at line 114 of file plugin_common.c.
Referenced by cf_init_plugin(), cf_region_get_first(), cf_region_get_longname(), cf_region_get_message(), cf_region_get_name(), cf_region_get_next(), and cf_region_get_parent().
|
static |
Definition at line 117 of file plugin_common.c.
Referenced by cf_init_plugin(), and cf_random_map_set_variable().
|
static |
Definition at line 40 of file plugin_common.c.
Referenced by cf_add_string(), and cf_init_plugin().
|
static |
Definition at line 52 of file plugin_common.c.
Referenced by cf_get_directory(), and cf_init_plugin().
|
static |
Definition at line 46 of file plugin_common.c.
Referenced by cf_find_animation(), and cf_init_plugin().
|
static |
Definition at line 47 of file plugin_common.c.
Referenced by cf_find_face(), and cf_init_plugin().
|
static |
Definition at line 41 of file plugin_common.c.
Referenced by cf_find_string(), and cf_init_plugin().
|
static |
Definition at line 120 of file plugin_common.c.
Referenced by cf_get_month_name(), and cf_init_plugin().
|
static |
Definition at line 123 of file plugin_common.c.
Referenced by cf_get_periodofday_name(), and cf_init_plugin().
|
static |
Definition at line 121 of file plugin_common.c.
Referenced by cf_get_season_name(), and cf_init_plugin().
|
static |
Definition at line 49 of file plugin_common.c.
Referenced by cf_get_time(), and cf_init_plugin().
|
static |
Definition at line 122 of file plugin_common.c.
Referenced by cf_get_weekday_name(), and cf_init_plugin().
|
static |
Definition at line 48 of file plugin_common.c.
Referenced by cf_init_plugin(), cf_log(), and cf_log_plain().
|
static |
Definition at line 53 of file plugin_common.c.
Referenced by cf_init_plugin(), and cf_re_cmp().
|
static |
Definition at line 42 of file plugin_common.c.
Referenced by cf_init_plugin(), and cf_system_register_global_event().
|
static |
Definition at line 43 of file plugin_common.c.
Referenced by cf_free_string(), and cf_init_plugin().
|
static |
Definition at line 45 of file plugin_common.c.
Referenced by cf_init_plugin(), and cf_strdup_local().
|
static |
Definition at line 50 of file plugin_common.c.
Referenced by cf_init_plugin(), and cf_timer_create().
|
static |
Definition at line 51 of file plugin_common.c.
Referenced by cf_init_plugin(), and cf_timer_destroy().
|
static |
Definition at line 44 of file plugin_common.c.
Referenced by cf_init_plugin(), and cf_system_unregister_global_event().