Shiptest 13 - Modules - TypesVar Details - Proc Details

overmap

Vars

controlled_shipsList of all simulated ships. All ships in this list are fully initialized.
eventsList of all events
events_enabledShould events be processed
generator_typeDefines which generator to use for the overmap
overmap_containerThe two-dimensional list that contains every single tile in the overmap as a sublist.
overmap_objectsList of all overmap objects.
overmap_vlevelThe virtual level that contains the overmap
radius_positionsMap of tiles at each radius (represented by index) around the sun
sizeWidth/height of the overmap "zlevel"

Procs

InitializeCreates an overmap object for shuttles, triggers initialization procs for ships
create_mapThe proc that creates all the objects on the overmap, split into seperate procs for redundancy.
get_overmap_object_by_locationGets the parent overmap object (e.g. the planet the atom is on) for a given atom.
get_unused_overmap_squareIf we have a map generator, don't ChangeTurf's in fill_in. Just to ChangeTurf them once again. Returns a random, usually empty turf in the overmap
get_unused_overmap_square_in_radiusReturns a random turf in a radius from the star, or a random empty turf if OVERMAP_GENERATOR_RANDOM is the active generator.
spawn_dynamic_encounterReserves a square dynamic encounter area, and spawns a ruin in it if one is supplied.
spawn_event_clusterSee /datum/controller/subsystem/overmap/proc/spawn_events, spawns "veins" (like ores) of events
spawn_eventsVERY Simple random generation for overmap events, spawns the event in a random turf and sometimes spreads it out similar to ores
spawn_ruin_levelsCreates an overmap object for each ruin level, making them accessible.

Var Details

controlled_ships

List of all simulated ships. All ships in this list are fully initialized.

events

List of all events

events_enabled

Should events be processed

generator_type

Defines which generator to use for the overmap

overmap_container

The two-dimensional list that contains every single tile in the overmap as a sublist.

overmap_objects

List of all overmap objects.

overmap_vlevel

The virtual level that contains the overmap

radius_positions

Map of tiles at each radius (represented by index) around the sun

size

Width/height of the overmap "zlevel"

Proc Details

Initialize

Creates an overmap object for shuttles, triggers initialization procs for ships

create_map

The proc that creates all the objects on the overmap, split into seperate procs for redundancy.

get_overmap_object_by_location

Gets the parent overmap object (e.g. the planet the atom is on) for a given atom.

get_unused_overmap_square

If we have a map generator, don't ChangeTurf's in fill_in. Just to ChangeTurf them once again. Returns a random, usually empty turf in the overmap

get_unused_overmap_square_in_radius

Returns a random turf in a radius from the star, or a random empty turf if OVERMAP_GENERATOR_RANDOM is the active generator.

spawn_dynamic_encounter

Reserves a square dynamic encounter area, and spawns a ruin in it if one is supplied.

spawn_event_cluster

See /datum/controller/subsystem/overmap/proc/spawn_events, spawns "veins" (like ores) of events

spawn_events

VERY Simple random generation for overmap events, spawns the event in a random turf and sometimes spreads it out similar to ores

spawn_ruin_levels

Creates an overmap object for each ruin level, making them accessible.