Crossfire Server, Trunk  1.75.0
random_house_generator.cpp File Reference
#include <stdarg.h>
#include <assert.h>
#include <string.h>
#include "global.h"
#include "object.h"
#include "sproto.h"
+ Include dependency graph for random_house_generator.cpp:

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

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...
 
static int cfrhg_globalEventListener (int *type,...)
 Global server event handling. 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...
 
static int is_suitable_exit (object *exit)
 Should we add a random map to this exit? More...
 
void random_house_generator_close ()
 Close the module. More...
 
void random_house_generator_init (Settings *settings)
 Module initialisation. More...
 

Variables

static event_registration eg
 
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 random_house_generator.cpp.