![]() |
Crossfire Server, Trunk
1.75.0
|
#include "global.h"#include <stdlib.h>#include <string.h>#include <ctype.h>#include "commands.h"#include "sproto.h"
Include dependency graph for c_new.cpp: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.
| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the caller graph for this function: