Crossfire Server, Trunk
|
#include "global.h"
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "commands.h"
#include "sproto.h"
Go to the source code of this file.
Macros | |
#define | tolower(C) (((C) >= 'A' && (C) <= 'Z') ? (C)-'A'+'a' : (C)) |
Functions | |
void | command_face (object *op, const char *params) |
void | command_fire (object *op, const char *params) |
void | command_fire_stop (object *op, const char *params) |
void | command_run (object *op, const char *params) |
void | command_run_stop (object *op, const char *params) |
This file deals with administrative commands from the client.
Definition in file c_new.c.
void command_face | ( | object * | op, |
const char * | params | ||
) |
Player wants to face a given direction.
op | player. |
params | additional parameters. |
Definition at line 111 of file c_new.c.
References draw_ext_info(), draw_ext_info_format(), face_player(), MSG_TYPE_COMMAND, MSG_TYPE_COMMAND_ERROR, NDI_UNIQUE, give::op, and roll-o-matic::params.
Referenced by commands_init().
void command_fire | ( | object * | op, |
const char * | params | ||
) |
Player wants to start furing.
op | player. |
params | additional parameters. |
Definition at line 77 of file c_new.c.
References draw_ext_info(), move_player(), MSG_TYPE_COMMAND, MSG_TYPE_COMMAND_ERROR, NDI_UNIQUE, give::op, and roll-o-matic::params.
Referenced by commands_init().
void command_fire_stop | ( | object * | op, |
const char * | params | ||
) |
Player wants to stop firing.
op | player. |
params | ignored. |
Definition at line 98 of file c_new.c.
References give::op, roll-o-matic::params, and nlohmann::detail::void().
Referenced by commands_init().
void command_run | ( | object * | op, |
const char * | params | ||
) |
Player wants to start running.
op | player. |
params | additional parameters. |
Definition at line 41 of file c_new.c.
References draw_ext_info(), move_player(), MSG_TYPE_COMMAND, MSG_TYPE_COMMAND_ERROR, NDI_UNIQUE, give::op, and roll-o-matic::params.
Referenced by commands_init().
void command_run_stop | ( | object * | op, |
const char * | params | ||
) |
Player wants to stop running.
op | player. |
params | ignored. |
Definition at line 64 of file c_new.c.
References give::op, roll-o-matic::params, and nlohmann::detail::void().
Referenced by commands_init().