Crossfire Server, Trunk
server.h File Reference
#include <signal.h>
+ Include dependency graph for server.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool can_follow (object *, player *)
 
void login_check_shutdown (object *const op)
 
void player_map_change_common (object *op, mapstruct *const oldmap, mapstruct *const newmap)
 

Variables

volatile sig_atomic_t shutdown_flag
 

Function Documentation

◆ can_follow()

bool can_follow ( object ,
player  
)

Definition at line 2796 of file c_wiz.cpp.

Referenced by do_follow().

+ Here is the caller graph for this function:

◆ login_check_shutdown()

void login_check_shutdown ( object *const  op)

Warn op if a server shutdown is scheduled. Used to inform players about scheduled shutdowns when they log in.

Definition at line 1483 of file server.cpp.

References draw_ext_info_format(), MSG_TYPE_ADMIN, MSG_TYPE_ADMIN_DM, NDI_UNIQUE, give::op, SHUTDOWN_IDLE, SHUTDOWN_NONE, shutdown_state, SHUTDOWN_TIME, shutdown_warn_times, shutdown_s::time, and shutdown_s::type.

Referenced by check_login().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ player_map_change_common()

void player_map_change_common ( object op,
mapstruct *const  oldmap,
mapstruct *const  newmap 
)

Definition at line 282 of file server.cpp.

References EVENT_MAPENTER, EVENT_MAPLEAVE, events_execute_global_event(), give::op, player_update_bg_music(), mapstruct::players, set_map_timeout(), and mapstruct::timeout.

Referenced by enter_map(), and move_player_attack().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ shutdown_flag

volatile sig_atomic_t shutdown_flag

Definition at line 53 of file server.cpp.

Referenced by check_shutdown(), and signal_shutdown().