Crossfire Server, Trunk
c_new.c File Reference
#include "global.h"
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "commands.h"
#include "sproto.h"
+ Include dependency graph for c_new.c:

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)
 

Detailed Description

This file deals with administrative commands from the client.

Definition in file c_new.c.

Macro Definition Documentation

◆ tolower

#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.c.

Function Documentation

◆ command_face()

void command_face ( object *  op,
const char *  params 
)

Player wants to face a given direction.

Parameters
opplayer.
paramsadditional 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 manor::params.

Referenced by commands_init().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ command_fire()

void command_fire ( object *  op,
const char *  params 
)

Player wants to start furing.

Parameters
opplayer.
paramsadditional 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 manor::params.

Referenced by commands_init().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ command_fire_stop()

void command_fire_stop ( object *  op,
const char *  params 
)

Player wants to stop firing.

Parameters
opplayer.
paramsignored.

Definition at line 98 of file c_new.c.

References give::op, and manor::params.

Referenced by commands_init().

+ Here is the caller graph for this function:

◆ command_run()

void command_run ( object *  op,
const char *  params 
)

Player wants to start running.

Parameters
opplayer.
paramsadditional 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 manor::params.

Referenced by commands_init().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ command_run_stop()

void command_run_stop ( object *  op,
const char *  params 
)

Player wants to stop running.

Parameters
opplayer.
paramsignored.
Returns
1.

Definition at line 64 of file c_new.c.

References give::op, and manor::params.

Referenced by commands_init().

+ Here is the caller graph for this function: