Crossfire Server, Branches 1.12  R18729
Player state.

Macros

#define ST_CHANGE_CLASS   3
 
#define ST_CHANGE_PASSWORD_CONFIRM   13
 
#define ST_CHANGE_PASSWORD_NEW   12
 
#define ST_CHANGE_PASSWORD_OLD   11
 
#define ST_CONFIRM_PASSWORD   8
 
#define ST_CONFIRM_QUIT   4
 
#define ST_GET_NAME   6
 
#define ST_GET_PARTY_PASSWORD   10
 
#define ST_GET_PASSWORD   7
 
#define ST_PLAY_AGAIN   1
 
#define ST_PLAYING   0
 
#define ST_ROLL_STAT   2
 

Detailed Description

Use of the state-variable in player objects.

See the login process page.

Macro Definition Documentation

#define ST_CHANGE_CLASS   3

New character, choosing class.

Definition at line 889 of file define.h.

Referenced by key_roll_stat(), and reply_cmd().

#define ST_CHANGE_PASSWORD_CONFIRM   13

Player is confirming new password

Definition at line 897 of file define.h.

Referenced by receive_player_password(), and reply_cmd().

#define ST_CHANGE_PASSWORD_NEW   12

Player is entering new password

Definition at line 896 of file define.h.

Referenced by receive_player_password(), and reply_cmd().

#define ST_CHANGE_PASSWORD_OLD   11

Player is entering old password to change password

Definition at line 895 of file define.h.

Referenced by command_passwd(), receive_player_password(), and reply_cmd().

#define ST_CONFIRM_PASSWORD   8

New character, confirm password.

Definition at line 893 of file define.h.

Referenced by confirm_password(), leave(), receive_player_password(), and reply_cmd().

#define ST_CONFIRM_QUIT   4

Player used the 'quit' command, make sure that's ok.

Definition at line 890 of file define.h.

Referenced by command_quit(), and reply_cmd().

#define ST_GET_NAME   6

Player just connected.

Definition at line 891 of file define.h.

Referenced by get_name(), leave(), and reply_cmd().

#define ST_GET_PARTY_PASSWORD   10

Player tried to join a password-protected party.

Definition at line 894 of file define.h.

Referenced by get_party_password(), list_players(), metaserver_update(), reply_cmd(), and save_player().

#define ST_GET_PASSWORD   7

Name entered, now for password.

Definition at line 892 of file define.h.

Referenced by get_password(), leave(), and reply_cmd().

#define ST_PLAY_AGAIN   1

Player left through a bed of reality, and can login again.

Definition at line 887 of file define.h.

Referenced by play_again(), and reply_cmd().

#define ST_ROLL_STAT   2

New character, rolling stats.

Definition at line 888 of file define.h.

Referenced by get_player(), receive_player_password(), and reply_cmd().