|
Crossfire Server, Branch 1.12
R12190
|
This file is part of the city life plugin. More...

Go to the source code of this file.
Data Structures | |
| struct | mapzone |
| Options for a map. More... | |
| struct | spawn_point |
| Point from which a NPC can come when the map is loaded. More... | |
| struct | spawn_zone |
| Zone in which to add NPCs when the map was just loaded. More... | |
Defines | |
| #define | FIRST_MOVE_KEY "citylife_first_move" |
| Key to contain whether it's the first move of the NPC or not. | |
Functions | |
| CF_PLUGIN int | citylife_runPluginCommand (object *op, char *params) |
| CF_PLUGIN void * | getPluginProperty (int *type,...) |
| Gets a plugin property. | |
| CF_PLUGIN int | initPlugin (const char *iversion, f_plug_api gethooksptr) |
| Plugin initialisation function. | |
Variables | |
| static const char *const | scorn_archs [] |
| Archetypes to spawn in Scorn. | |
| static const spawn_point | scorn_ne_points [] |
| Points for map 105_115. | |
| static const spawn_zone | scorn_ne_zones [] |
| Zones for map 105_115. | |
| static const spawn_point | scorn_nw_points [] |
| Points for map 104_115. | |
| static const spawn_zone | scorn_nw_zones [] |
| Zones for map 104_115. | |
| static const spawn_point | scorn_se_points [] |
| Points for map 105_116. | |
| static const spawn_zone | scorn_se_zones [] |
| Zones for map 105_116. | |
| static const spawn_point | scorn_sw_points [] |
| Points for map 104_116. | |
| static const spawn_zone | scorn_sw_zones [] |
| Zones for map 104_116. | |
| static const mapzone | available_zones [] |
| All maps we work on. | |
| static const mapzone * | get_zone_for_map (mapstruct *map) |
| Finds if a map has a zone defined. | |
| static object * | get_npc (const mapzone *zone) |
| Creates a NPC for the specified zone, and do needed initialization. | |
| static void | add_npc_to_zone (const mapzone *zone, mapstruct *map) |
| Add an NPC somewhere in a spawn zone. | |
| static void | add_npc_to_point (const mapzone *zone, mapstruct *map) |
| Add an NPC somewhere at a spawn point. | |
| static void | add_npcs_to_map (mapstruct *map) |
| Add some NPCs to the map, based on the zone definition. | |
| static void | add_npc_to_random_map (void) |
| Find a suitable map loaded and add an NPC to it. | |
| CF_PLUGIN void * | citylife_globalEventListener (int *type,...) |
| CF_PLUGIN int | postInitPlugin (void) |
| Plugin was initialized, now to finish. | |
| CF_PLUGIN void * | eventListener (int *type,...) |
| Handles an object-related event. | |
| CF_PLUGIN int | closePlugin (void) |
| Close the plugin. | |
This file is part of the city life plugin.
See this page for more information.
Definition in file citylife.c.
1.7.6.1