Crossfire Server, Trunk  R20513
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

void command_east (object *op, const char *params)
 'east' command. More...
 
void command_north (object *op, const char *params)
 'north' command. More...
 
void command_northeast (object *op, const char *params)
 'northeast' command. More...
 
void command_northwest (object *op, const char *params)
 'northwest' command. More...
 
void command_south (object *op, const char *params)
 'south' command. More...
 
void command_southeast (object *op, const char *params)
 'southeast' command. More...
 
void command_southwest (object *op, const char *params)
 'southwest' command. More...
 
void command_stay (object *op, const char *params)
 'stay' command. More...
 
void command_west (object *op, const char *params)
 'west' command. More...
 
static void move_internal (object *op, const char *params, int dir)
 A player is moving in a direction, but this may indicate firing. More...
 

Detailed Description

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

Definition in file c_move.c.

Function Documentation

void command_east ( object op,
const char *  params 
)

'east' command.

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

Definition at line 57 of file c_move.c.

References move_internal().

Here is the call graph for this function:

void command_north ( object op,
const char *  params 
)

'north' command.

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

Definition at line 68 of file c_move.c.

References move_internal().

Here is the call graph for this function:

void command_northeast ( object op,
const char *  params 
)

'northeast' command.

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

Definition at line 79 of file c_move.c.

References move_internal().

Here is the call graph for this function:

void command_northwest ( object op,
const char *  params 
)

'northwest' command.

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

Definition at line 90 of file c_move.c.

References move_internal().

Here is the call graph for this function:

void command_south ( object op,
const char *  params 
)

'south' command.

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

Definition at line 101 of file c_move.c.

References move_internal().

Here is the call graph for this function:

void command_southeast ( object op,
const char *  params 
)

'southeast' command.

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

Definition at line 112 of file c_move.c.

References move_internal().

Here is the call graph for this function:

void command_southwest ( object op,
const char *  params 
)

'southwest' command.

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

Definition at line 123 of file c_move.c.

References move_internal().

Here is the call graph for this function:

void command_stay ( object op,
const char *  params 
)

'stay' command.

Used to specify to fire under oneself.

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

Definition at line 145 of file c_move.c.

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

Here is the call graph for this function:

void command_west ( object op,
const char *  params 
)

'west' command.

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

Definition at line 134 of file c_move.c.

References move_internal().

Here is the call graph for this function:

static void move_internal ( object op,
const 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.

Definition at line 35 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: