Atrinik Server  4.0
Functions
resetmaps.c File Reference
#include <global.h>
#include <object.h>

Go to the source code of this file.

Functions

static int command_resetmaps_internal (mapstruct *tiled, mapstruct *map, mapstruct ***maps, size_t *maps_num)
 
void command_resetmaps (object *op, const char *command, char *params)
 

Detailed Description

Implements the /resetmaps command.

Author
Alex Tokar

Definition in file resetmaps.c.

Function Documentation

void command_resetmaps ( object op,
const char *  command,
char *  params 
)

Format for a command handler function.

Parameters
opThe player.
commandThe command's name.
paramsOptional arguments for the command.

Definition at line 58 of file resetmaps.c.

static int command_resetmaps_internal ( mapstruct tiled,
mapstruct map,
mapstruct ***  maps,
size_t *  maps_num 
)
static

Internally used by command_resetmaps() to create an array of the maps to reset.

Parameters
tiledTiled map.
mapMap.
[out]mapsArray of maps that will be reset.
[out]maps_numNumber of maps in 'maps'.
Returns
0.

Definition at line 47 of file resetmaps.c.