![]() |
Crossfire Server, Trunk
1.75.0
|
Include dependency graph for c_party.cpp:Go to the source code of this file.
Functions | |
| void | command_gsay (object *op, const char *params) |
| 'gsay' command, talks to party. More... | |
| void | command_party (object *op, const char *params) |
| 'party' command, subdivided in different sub commands. More... | |
| void | command_party_rejoin (object *op, const char *params) |
| Handles the 'party_rejoin' command. More... | |
| static int | confirm_party_password (object *op, const char *password) |
| Is the password the player entered to join a party the right one? More... | |
| void | receive_party_password (object *op, const char *password) |
| Player entered a party password. More... | |
Variables | |
| static const char * | rejoin_modes [] |
| Valid modes for 'party_rejoin', indexed by party_rejoin_mode. More... | |
Party-related functions and variables.
Definition in file c_party.cpp.
| void command_gsay | ( | object * | op, |
| const char * | params | ||
| ) |
'gsay' command, talks to party.
| op | player. |
| params | message. |
Definition at line 75 of file c_party.cpp.
References command_party(), draw_ext_info, MAX_BUF, MSG_TYPE_COMMAND, MSG_TYPE_COMMAND_ERROR, and NDI_UNIQUE.
Referenced by commands_init().
Here is the call graph for this function:
Here is the caller graph for this function:| void command_party | ( | object * | op, |
| const char * | params | ||
| ) |
'party' command, subdivided in different sub commands.
| op | player. |
| params | additional parameters. 1. |
Definition at line 97 of file c_party.cpp.
References buf, command_help(), object::contr, draw_ext_info, draw_ext_info_format(), get_party_password(), list_players(), MAX_BUF, MSG_TYPE_COMMAND, MSG_TYPE_COMMAND_ERROR, MSG_TYPE_COMMAND_SUCCESS, MSG_TYPE_COMMUNICATION, MSG_TYPE_COMMUNICATION_PARTY, object::name, NDI_UNIQUE, NDI_WHITE, player::party, party_find(), party_form(), party_get_first(), party_get_leader(), party_get_next(), party_get_password(), party_join(), party_leave(), party_send_message(), party_set_password(), and partylist::partyname.
Referenced by command_gsay(), and commands_init().
Here is the call graph for this function:
Here is the caller graph for this function:| void command_party_rejoin | ( | object * | op, |
| const char * | params | ||
| ) |
Handles the 'party_rejoin' command.
| op | player. |
| params | optional parameters. |
Definition at line 307 of file c_party.cpp.
References object::contr, draw_ext_info_format(), MSG_TYPE_COMMAND, MSG_TYPE_COMMAND_ERROR, MSG_TYPE_COMMAND_SUCCESS, NDI_UNIQUE, rejoin_modes, and player::rejoin_party.
Referenced by commands_init().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Is the password the player entered to join a party the right one?
| op | player. Must have party_to_join correctly set. |
| password | password the player used. |
| 0 | password is correct. |
| 1 | invalid password or party not found. |
Definition at line 38 of file c_party.cpp.
References object::contr, party_confirm_password(), party_find(), player::party_to_join, and partylist::partyname.
Referenced by receive_party_password().
Here is the call graph for this function:
Here is the caller graph for this function:| void receive_party_password | ( | object * | op, |
| const char * | password | ||
| ) |
Player entered a party password.
| op | player. |
| password | party password. |
Definition at line 53 of file c_party.cpp.
References confirm_party_password(), object::contr, draw_ext_info, MSG_TYPE_COMMAND, MSG_TYPE_COMMAND_ERROR, NDI_UNIQUE, party_join(), player::party_to_join, player_set_state(), and ST_PLAYING.
Referenced by reply_cmd().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Valid modes for 'party_rejoin', indexed by party_rejoin_mode.
Definition at line 293 of file c_party.cpp.
Referenced by command_party_rejoin().