Crossfire Server, Branches 1.12  R18729
c_move.c File Reference
#include <global.h>
#include <sproto.h>
#include <skills.h>
+ Include dependency graph for c_move.c:

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)
 

Detailed Description

Move-related (north, east, ...) commands.

Definition in file c_move.c.

Function Documentation

int command_east ( object op,
char *  params 
)

'east' command.

Parameters
opplayer.
paramsoptional parameters for moving (fire, run).
Returns
0.

Definition at line 77 of file c_move.c.

References move_internal().

+ Here is the call graph for this function:

int command_north ( object op,
char *  params 
)

'north' command.

Parameters
opplayer.
paramsoptional parameters for moving (fire, run).
Returns
0.

Definition at line 90 of file c_move.c.

References move_internal().

+ Here is the call graph for this function:

int command_northeast ( object op,
char *  params 
)

'northeast' command.

Parameters
opplayer.
paramsoptional parameters for moving (fire, run).
Returns
0.

Definition at line 103 of file c_move.c.

References move_internal().

+ Here is the call graph for this function:

int command_northwest ( object op,
char *  params 
)

'northwest' command.

Parameters
opplayer.
paramsoptional parameters for moving (fire, run).
Returns
0.

Definition at line 116 of file c_move.c.

References move_internal().

+ Here is the call graph for this function:

int command_south ( object op,
char *  params 
)

'south' command.

Parameters
opplayer.
paramsoptional parameters for moving (fire, run).
Returns
0.

Definition at line 129 of file c_move.c.

References move_internal().

+ Here is the call graph for this function:

int command_southeast ( object op,
char *  params 
)

'southeast' command.

Parameters
opplayer.
paramsoptional parameters for moving (fire, run).
Returns
0.

Definition at line 142 of file c_move.c.

References move_internal().

+ Here is the call graph for this function:

int command_southwest ( object op,
char *  params 
)

'southwest' command.

Parameters
opplayer.
paramsoptional parameters for moving (fire, run).
Returns
0.

Definition at line 155 of file c_move.c.

References move_internal().

+ Here is the call graph for this function:

int command_stay ( object op,
char *  params 
)

'stay' command. Used to specify to fire under oneself.

Parameters
opplayer.
paramsoptional parameters for moving (fire, run).
Returns
0.

Definition at line 181 of file c_move.c.

References obj::contr, fire(), and pl::fire_on.

+ Here is the call graph for this function:

int command_west ( object op,
char *  params 
)

'west' command.

Parameters
opplayer.
paramsoptional parameters for moving (fire, run).
Returns
0.

Definition at line 168 of file c_move.c.

References move_internal().

+ Here is the call graph for this function:

static int move_internal ( object op,
char *  params,
int  dir 
)
static

A player is moving in a direction, but this may indicate firing.

Parameters
opplayer moving.
paramsoptional parameters for moving (fire, run).
dirmoving direction.
Returns
0.

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: