Crossfire Server, Trunk  R20513
Data Structures | Typedefs | Functions | Variables
cfrhg.c File Reference

This file is part of the random house generation plugin. More...

#include <stdarg.h>
#include <assert.h>
#include <string.h>
#include <cfrhg.h>
#include <cfrhg_proto.h>
#include <svnversion.h>
Include dependency graph for cfrhg.c:

Go to the source code of this file.

Data Structures

struct  house_zone_struct
 Link between a map and the exits to generate for it. More...
 

Typedefs

typedef struct house_zone_struct house_zone_struct
 Link between a map and the exits to generate for it. More...
 

Functions

static void add_exit_to_item (object *exit, const house_zone_struct *zone, const mapstruct *map)
 Change an empty exit to point to a random map. More...
 
static void add_exits_to_map (const mapstruct *map)
 Checks if the map should be processed, and if so process it. More...
 
CF_PLUGIN int cfrhg_globalEventListener (int *type,...)
 Global server event handling. More...
 
CF_PLUGIN int cfrhg_runPluginCommand (object *op, char *params)
 Unused. More...
 
CF_PLUGIN int closePlugin (void)
 Unloading of plugin. More...
 
CF_PLUGIN int eventListener (int *type,...)
 Unused. More...
 
static int get_exit_seed (const object *exit, const mapstruct *map)
 Get the random map seed. More...
 
static const house_zone_structget_map_zone (const mapstruct *map)
 Get the random map parameters of a map. More...
 
CF_PLUGIN void * getPluginProperty (int *type,...)
 Get the plugin identification or full name. More...
 
CF_PLUGIN int initPlugin (const char *iversion, f_plug_api gethooksptr)
 Plugin initialization. More...
 
static int is_suitable_exit (object *exit)
 Should we add a random map to this exit? More...
 
CF_PLUGIN int postInitPlugin (void)
 Plugin initialisation. More...
 

Variables

CF_PLUGIN char SvnRevPlugin [] = SVN_REV
 
static const house_zone_struct zones []
 Maps we work on. More...
 

Detailed Description

This file is part of the random house generation plugin.

See this page for more information.

Definition in file cfrhg.c.