Atrinik Server 2.5
Functions
commands/move.c File Reference
#include <global.h>

Go to the source code of this file.

Functions

static int move_internal (object *op, char *params, int dir)
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_west (object *op, char *params)
int command_stay (object *op, char *params)
int command_turn_right (object *op, char *params)
int command_turn_left (object *op, char *params)
int command_push_object (object *op, char *params)

Detailed Description

Handles main movement commands.

Definition in file move.c.


Function Documentation

int command_east ( object op,
char *  params 
)

Move player to east.

Parameters:
opObject to move.
paramsCommand parameters.
Returns:
Always returns 0.

Definition at line 67 of file move.c.

int command_north ( object op,
char *  params 
)

Move player to north.

Parameters:
opObject to move.
paramsCommand parameters.
Returns:
Always returns 0.

Definition at line 77 of file move.c.

int command_northeast ( object op,
char *  params 
)

Move player to northeast.

Parameters:
opObject to move.
paramsCommand parameters.
Returns:
Always returns 0.

Definition at line 87 of file move.c.

int command_northwest ( object op,
char *  params 
)

Move player to northwest.

Parameters:
opObject to move.
paramsCommand parameters.
Returns:
Always returns 0.

Definition at line 97 of file move.c.

int command_push_object ( object op,
char *  params 
)

Push object in front of the player.

Parameters:
opObject.
paramsParameters.
Returns:
0.

Definition at line 197 of file move.c.

int command_south ( object op,
char *  params 
)

Move player to south.

Parameters:
opObject to move.
paramsCommand parameters.
Returns:
Always returns 0.

Definition at line 107 of file move.c.

int command_southeast ( object op,
char *  params 
)

Move player to southeast.

Parameters:
opObject to move.
paramsCommand parameters.
Returns:
Always returns 0.

Definition at line 117 of file move.c.

int command_southwest ( object op,
char *  params 
)

Move player to southwest.

Parameters:
opObject to move.
paramsCommand parameters.
Returns:
Always returns 0.

Definition at line 127 of file move.c.

int command_stay ( object op,
char *  params 
)

Stay command.

Parameters:
opThe object.
paramsCommand parameters.
Returns:
Always returns 0.

Definition at line 147 of file move.c.

int command_turn_left ( object op,
char *  params 
)

Turn object to face one direction to left.

Parameters:
opObject.
paramsParameters.
Returns:
1.

Definition at line 180 of file move.c.

int command_turn_right ( object op,
char *  params 
)

Turn object to face one direction to right.

Parameters:
opObject.
paramsParameters.
Returns:
11.

Definition at line 163 of file move.c.

int command_west ( object op,
char *  params 
)

Move player to west.

Parameters:
opObject to move.
paramsCommand parameters.
Returns:
Always returns 0.

Definition at line 137 of file move.c.

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

Static command for commands like east, west, etc to use.

Parameters:
opObject to move.
paramsParameters, controls things like running and firing.
dirDirection to move.
Returns:
Always returns 0.

Definition at line 38 of file move.c.