Crossfire Server, Branch 1.12  R12190
Functions
c_move.c File Reference

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

#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)
 'east' command.
int command_north (object *op, char *params)
 'north' command.
int command_northeast (object *op, char *params)
 'northeast' command.
int command_northwest (object *op, char *params)
 'northwest' command.
int command_south (object *op, char *params)
 'south' command.
int command_southeast (object *op, char *params)
 'southeast' command.
int command_southwest (object *op, char *params)
 'southwest' command.
int command_stay (object *op, char *params)
 'stay' command.
int command_west (object *op, char *params)
 'west' command.
static int move_internal (object *op, char *params, int dir)
 A player is moving in a direction, but this may indicate firing.

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

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

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: