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

Go to the source code of this file.

Data Structures

struct  mapzone
 
struct  spawn_point
 
struct  spawn_zone
 

Macros

#define CITYLIFE_NAME   "citylife"
 
#define FIRST_MOVE_KEY   "citylife_first_move"
 

Functions

static void add_npc_to_point (const mapzone *zone, mapstruct *map)
 
static void add_npc_to_random_map (void)
 
static void add_npc_to_zone (const mapzone *zone, mapstruct *map)
 
static void add_npcs_to_map (mapstruct *map)
 
static void check_zone (const mapzone *zone, const char *path)
 
void citylife_close ()
 
static int citylife_globalEventListener (int *type,...)
 
void citylife_init (Settings *settings)
 
static int eventListener (int *type,...)
 
static objectget_npc (const mapzone *zone)
 
static const mapzoneget_zone_for_map (mapstruct *map)
 
static void load_citylife (BufferReader *reader, const char *filename)
 

Variables

static event_registration c
 
static event_registration m
 
static std::unordered_map< std::string, mapzone * > maps
 

Detailed Description

This file is part of the city life module. See this page for more information.

Definition in file citylife.cpp.