Crossfire Server, Trunk
|
Go to the source code of this file.
Functions | |
void | apply_auto_fix (mapstruct *m) |
void | clean_tmp_files (void) |
void | dragon_ability_gain (object *ob, int x, int y) |
void | draw_ext_info (int flags, int pri, const object *pl, uint8_t type, uint8_t subtype, const char *txt) |
void | draw_ext_info_format (int flags, int pri, const object *pl, uint8_t type, uint8_t subtype, const char *format,...) |
void | emergency_save (int x) |
void | esrv_del_item (player *pl, object *ob) |
void | esrv_send_item (object *ob, object *obx) |
void | esrv_update_item (int flags, object *pl, object *op) |
void | esrv_update_spells (player *pl) |
void | ext_info_map (int color, const mapstruct *map, uint8_t type, uint8_t subtype, const char *str1) |
object * | find_skill_by_number (object *who, int skillno) |
void | move_firewall (object *ob) |
void | rod_adjust (object *rod) |
void | set_darkness_map (mapstruct *m) |
void apply_auto_fix | ( | mapstruct * | m | ) |
Those are dummy functions defined to resolve all symboles. Added as part of glue cleaning. Ryo 2005-07-15
Definition at line 9 of file stubs_common.cpp.
References m, and nlohmann::detail::void().
void clean_tmp_files | ( | void | ) |
Save unique maps and clean up temporary map files unless recycling temporary maps. The function name is somewhat misleading.
Definition at line 51 of file stubs_common.cpp.
void dragon_ability_gain | ( | object * | ob, |
int | x, | ||
int | y | ||
) |
When a dragon-player gains a new stage of evolution, he gets some treasure.
who | the dragon player. |
atnr | the attack-number of the ability focus. |
level | ability level. |
Definition at line 65 of file stubs_common.cpp.
References guildjoin::ob, nlohmann::detail::void(), diamondslots::x, and diamondslots::y.
void draw_ext_info | ( | int | flags, |
int | pri, | ||
const object * | pl, | ||
uint8_t | type, | ||
uint8_t | subtype, | ||
const char * | txt | ||
) |
Sends message to player(s).
flags | Various flags - mostly color, plus a few specials. If NDI_ALL or NDI_ALL_DMS is set, pl is ignored and the message is resent to all players or all DMs individually. |
pri | Priority. The lower the value, the more important it is. Thus, 0 gets sent no matter what. Otherwise, the value must be less than the listening level that the player has set. Unfortunately, there is no clear guideline on what each level does what. |
pl | Who to send the message to. pl may be NULL, particularly if flags has NDI_ALL or NDI_DMS set since it is ignored in that case. If NDI_ALL and NDI_DMS are not set, when pl is NULL, nobody gets the message. This is sometimes useful when a function that can be invoked by a player is automatically called by some other mechanism. For example, if a player tries to put something in a container, they should get a message that tells them they cannot put it in an unsuitable container, but when auto-pickup is at work, all containers are tried, even unsuitable ones, and so messages should not be sent to the player. |
type | The type MSG_TYPE for the type of message. |
subtype | The subtype of the message. |
message | The message to send. |
Definition at line 13 of file stubs_common.cpp.
References flags, logfile, altar_valkyrie::pl, is_valid_types_gen::type, and nlohmann::detail::void().
void draw_ext_info_format | ( | int | flags, |
int | pri, | ||
const object * | pl, | ||
uint8_t | type, | ||
uint8_t | subtype, | ||
const char * | format, | ||
... | |||
) |
Definition at line 22 of file stubs_common.cpp.
References flags, logfile, altar_valkyrie::pl, is_valid_types_gen::type, and nlohmann::detail::void().
void emergency_save | ( | int | x | ) |
Save all players.
flag | if non zero, it means that we want to try and save everyone, but keep the game running. Thus, we don't want to free any information. |
Definition at line 47 of file stubs_common.cpp.
References nlohmann::detail::void(), and diamondslots::x.
Tells the client to delete an item. Uses the item command with a -1 location.
Definition at line 81 of file stubs_common.cpp.
References guildjoin::ob, altar_valkyrie::pl, and nlohmann::detail::void().
Sends item's info to player.
Definition at line 54 of file stubs_common.cpp.
References guildjoin::ob, and nlohmann::detail::void().
Updates object *op for player *pl.
flags is a list of values to update to the client (as defined in newclient.h - might as well use the same value both places.
Definition at line 59 of file stubs_common.cpp.
References flags, give::op, altar_valkyrie::pl, and nlohmann::detail::void().
void esrv_update_spells | ( | player * | pl | ) |
This looks for any spells the player may have that have changed their stats. It then sends an updspell packet for each spell that has changed in this way.
Definition at line 86 of file stubs_common.cpp.
References altar_valkyrie::pl, and nlohmann::detail::void().
void ext_info_map | ( | int | color, |
const mapstruct * | map, | ||
uint8_t | type, | ||
uint8_t | subtype, | ||
const char * | str1 | ||
) |
Writes to everyone on the specified map
color | The color of the message |
map | The map where the players receiving the message are located |
type | The message type |
subtype | The message subtype |
str1 | The message to be sent |
Definition at line 35 of file stubs_common.cpp.
References smoking_pipe::color, logfile, disinfect::map, is_valid_types_gen::type, and nlohmann::detail::void().
This returns the first skill pointer of the given subtype (the one that accumulates exp, has the level, etc).
It is presumed that the player will be needing to actually use the skill, so a skill tool will be equipped if one if found to benefit from its bonuses.
This code is basically the same as find_skill_by_name() above, but instead of a skill name, we search by matching subtype.
Warning: skill subtypes are not unique to skills, various skills (eg harvesting-like) will share the same subtype, so this function should only be used if the skill's subtype is known to be used only by one skill.
who | player applying a skill. |
skillno | skill subtype. |
Definition at line 75 of file stubs_common.cpp.
References nlohmann::detail::void(), and autojail::who.
void move_firewall | ( | object * | ob | ) |
Move for FIREWALL.
firewalls fire other spells. The direction of the wall is stored in op->direction. walls can have hp, so they can be torn down.
op | firewall. |
Definition at line 43 of file stubs_common.cpp.
References guildjoin::ob, and nlohmann::detail::void().
void rod_adjust | ( | object * | rod | ) |
Adjusts rod attributes. This function must be called after a new rod has been created.
rod | the rod to update |
Definition at line 90 of file stubs_common.cpp.
References nlohmann::detail::void().
void set_darkness_map | ( | mapstruct * | m | ) |
Set the darkness level for a map, based on the time of the day.
m | map to alter. |
Definition at line 71 of file stubs_common.cpp.
References m, and nlohmann::detail::void().