Crossfire Server, Trunk
|
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) |
Move-related (north, east, ...) commands.
Definition in file c_move.c.
void command_east | ( | object * | op, |
const char * | params | ||
) |
'east' command.
op | player. |
params | optional 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().
void command_north | ( | object * | op, |
const char * | params | ||
) |
'north' command.
op | player. |
params | optional 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().
void command_northeast | ( | object * | op, |
const char * | params | ||
) |
'northeast' command.
op | player. |
params | optional 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().
void command_northwest | ( | object * | op, |
const char * | params | ||
) |
'northwest' command.
op | player. |
params | optional 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().
void command_south | ( | object * | op, |
const char * | params | ||
) |
'south' command.
op | player. |
params | optional 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().
void command_southeast | ( | object * | op, |
const char * | params | ||
) |
'southeast' command.
op | player. |
params | optional 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().
void command_southwest | ( | object * | op, |
const char * | params | ||
) |
'southwest' command.
op | player. |
params | optional 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().
void command_stay | ( | object * | op, |
const char * | params | ||
) |
'stay' command. Used to specify to fire under oneself.
op | player. |
params | optional 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().
void command_west | ( | object * | op, |
const char * | params | ||
) |
'west' command.
op | player. |
params | optional 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().
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().
|
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 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().