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

void command_east (object *op, const char *params)
 
void command_north (object *op, const char *params)
 
void command_northeast (object *op, const char *params)
 
void command_northwest (object *op, const char *params)
 
void command_south (object *op, const char *params)
 
void command_southeast (object *op, const char *params)
 
void command_southwest (object *op, const char *params)
 
void command_stay (object *op, const char *params)
 
void command_west (object *op, const char *params)
 
void do_goto (object *op, const char *name, int x, int y)
 
static void move_internal (object *op, const char *params, int dir)
 

Detailed Description

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

Definition in file c_move.c.

Function Documentation

◆ command_east()

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(), give::op, and roll-o-matic::params.

Referenced by commands_init().

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

◆ command_north()

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(), give::op, and roll-o-matic::params.

Referenced by commands_init().

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

◆ command_northeast()

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(), give::op, and roll-o-matic::params.

Referenced by commands_init().

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

◆ command_northwest()

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(), give::op, and roll-o-matic::params.

Referenced by commands_init().

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

◆ command_south()

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(), give::op, and roll-o-matic::params.

Referenced by commands_init().

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

◆ command_southeast()

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(), give::op, and roll-o-matic::params.

Referenced by commands_init().

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

◆ command_southwest()

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(), give::op, and roll-o-matic::params.

Referenced by commands_init().

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

◆ command_stay()

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 fire(), give::op, and roll-o-matic::params.

Referenced by commands_init().

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

◆ command_west()

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(), give::op, and roll-o-matic::params.

Referenced by commands_init().

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

◆ do_goto()

void do_goto ( object op,
const char *  name,
int  x,
int  y 
)

Definition at line 151 of file c_move.c.

References add_string(), enter_exit(), EXIT_PATH, EXIT_X, EXIT_Y, FREE_OBJ_NO_DESTROY_CALLBACK, obj::map, give::name, obj::name, object_free(), object_new(), give::op, diamondslots::x, and diamondslots::y.

Referenced by command_goto().

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

◆ move_internal()

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 move_player(), give::op, and roll-o-matic::params.

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: