Crossfire Server, Branches 1.12
R18729
|
Go to the source code of this file.
Functions | |
int | command_east (object *op, char *params) |
int | command_north (object *op, char *params) |
int | command_northeast (object *op, char *params) |
int | command_northwest (object *op, char *params) |
int | command_south (object *op, char *params) |
int | command_southeast (object *op, char *params) |
int | command_southwest (object *op, char *params) |
int | command_stay (object *op, char *params) |
int | command_west (object *op, char *params) |
static int | move_internal (object *op, char *params, int dir) |
Move-related (north, east, ...) commands.
Definition in file c_move.c.
int command_east | ( | object * | op, |
char * | params | ||
) |
'east' command.
op | player. |
params | optional parameters for moving (fire, run). |
Definition at line 77 of file c_move.c.
References move_internal().
int command_north | ( | object * | op, |
char * | params | ||
) |
'north' command.
op | player. |
params | optional parameters for moving (fire, run). |
Definition at line 90 of file c_move.c.
References move_internal().
int command_northeast | ( | object * | op, |
char * | params | ||
) |
'northeast' command.
op | player. |
params | optional parameters for moving (fire, run). |
Definition at line 103 of file c_move.c.
References move_internal().
int command_northwest | ( | object * | op, |
char * | params | ||
) |
'northwest' command.
op | player. |
params | optional parameters for moving (fire, run). |
Definition at line 116 of file c_move.c.
References move_internal().
int command_south | ( | object * | op, |
char * | params | ||
) |
'south' command.
op | player. |
params | optional parameters for moving (fire, run). |
Definition at line 129 of file c_move.c.
References move_internal().
int command_southeast | ( | object * | op, |
char * | params | ||
) |
'southeast' command.
op | player. |
params | optional parameters for moving (fire, run). |
Definition at line 142 of file c_move.c.
References move_internal().
int command_southwest | ( | object * | op, |
char * | params | ||
) |
'southwest' command.
op | player. |
params | optional parameters for moving (fire, run). |
Definition at line 155 of file c_move.c.
References move_internal().
int command_stay | ( | object * | op, |
char * | params | ||
) |
'stay' command. Used to specify to fire under oneself.
op | player. |
params | optional parameters for moving (fire, run). |
Definition at line 181 of file c_move.c.
References obj::contr, fire(), and pl::fire_on.
int command_west | ( | object * | op, |
char * | params | ||
) |
'west' command.
op | player. |
params | optional parameters for moving (fire, run). |
Definition at line 168 of file c_move.c.
References move_internal().
|
static |
A player is moving in a direction, but this may indicate firing.
op | player moving. |
params | optional parameters for moving (fire, run). |
dir | moving direction. |
Definition at line 52 of file c_move.c.
References obj::contr, pl::fire_on, move_player(), and pl::run_on.
Referenced by command_east(), command_north(), command_northeast(), command_northwest(), command_south(), command_southeast(), command_southwest(), and command_west().