|
Crossfire Server
1.75.0
|
This file deals with administrative commands from the client. More...
#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)) |
| Simple macro to convert a letter to lowercase. More... | |
Functions | |
| void | command_face (object *op, const char *params) |
| Player wants to face a given direction. More... | |
| void | command_fire (object *op, const char *params) |
| Player wants to start firing. More... | |
| void | command_fire_stop (object *op, const char *params) |
| Player wants to stop firing. More... | |
| void | command_run (object *op, const char *params) |
| Player wants to start running. More... | |
| void | command_run_stop (object *op, const char *params) |
| Player wants to stop running. More... | |
This file deals with administrative commands from the client.
Definition in file c_new.cpp.
| #define tolower | ( | C | ) | (((C) >= 'A' && (C) <= 'Z') ? (C)-'A'+'a' : (C)) |
Simple macro to convert a letter to lowercase.
Definition at line 30 of file c_new.cpp.
Referenced by cast_consecrate(), command_execute(), init_renderer_env(), knowledge_god_face(), re_match_token(), strlcpy(), and strtoint().
| 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.cpp.
References draw_ext_info(), draw_ext_info_format(), face_player(), MSG_TYPE_COMMAND, MSG_TYPE_COMMAND_ERROR, and NDI_UNIQUE.
Referenced by commands_init().
| void command_fire | ( | object * | op, |
| const char * | params | ||
| ) |
Player wants to start firing.
| op | player. |
| params | additional parameters. |
Definition at line 77 of file c_new.cpp.
References object::contr, draw_ext_info(), player::fire_on, move_player(), MSG_TYPE_COMMAND, MSG_TYPE_COMMAND_ERROR, and NDI_UNIQUE.
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.cpp.
References object::contr, and player::fire_on.
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.cpp.
References object::contr, draw_ext_info(), move_player(), MSG_TYPE_COMMAND, MSG_TYPE_COMMAND_ERROR, NDI_UNIQUE, and player::run_on.
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.cpp.
References object::contr, and player::run_on.
Referenced by commands_init().