code/__DEFINES/turfs.dm ![code/__DEFINES/turfs.dm0](git.png)
RANGE_TURFS | Returns a list of turf in a square |
---|---|
Z_TURFS | Returns all turfs in a zlevel |
ALL_TURFS | Returns all currently loaded turfs |
CORNER_BLOCK | Returns a list of turfs in the rectangle specified by BOTTOM LEFT corner and height/width, checks for being outside the world border for you |
CORNER_BLOCK_OFFSET | Returns a list of turfs similar to CORNER_BLOCK but with offsets |
CORNER_OUTLINE | Returns an outline (neighboring turfs) of the given block |
TURF_NEIGHBORS | Returns a list of around us |
UNDERFLOOR_HIDDEN | The pipes, disposals, and wires are hidden |
UNDERFLOOR_VISIBLE | The pipes, disposals, and wires are visible but cannot be interacted with |
UNDERFLOOR_INTERACTABLE | The pipes, disposals, and wires are visible and can be interacted with |
TURF_DRY | Turf is dry and mobs won't slip |
TURF_WET_WATER | Turf has water on the floor and mobs will slip unless walking or using galoshes |
TURF_WET_PERMAFROST | Turf has a thick layer of ice on the floor and mobs will slip in the direction until they bump into something |
TURF_WET_ICE | Turf has a thin layer of ice on the floor and mobs will slip |
TURF_WET_LUBE | Turf has lube on the floor and mobs will slip |
TURF_WET_SUPERLUBE | Turf has superlube on the floor and mobs will slip even if they are crawling |
MAXIMUM_WET_TIME | Maximum amount of time, (in deciseconds) a tile can be wet for. |
get_turf | Get the turf that A resides in, regardless of any containers. |
get_area | Get the ultimate area of A , similarly to get_turf. |
TURF_PATHING_PASS_DENSITY | Turf will be passable if density is 0 |
TURF_PATHING_PASS_PROC | Turf will be passable depending on [CanAStarPass] return value |
TURF_PATHING_PASS_NO | Turf is never passable |
DECAL_ALPHA | Define the alpha for holiday/colored tile decals |
PATTERN_DEFAULT | Generate horizontal striped color turf decals |
PATTERN_VERTICAL_STRIPE | Generate vertical striped color turf decals |
PATTERN_RANDOM | Generate random color turf decals |
PATTERN_RAINBOW | Generate rainbow color turf decals |
TURF_MIDPOINT | Finds the midpoint of two given turfs. |
LARGE_TURF_SMOOTHING_X_OFFSET | Defines the x offset to apply to larger smoothing turfs (such as grass). |
LARGE_TURF_SMOOTHING_Y_OFFSET | Defines the y offset to apply to larger smoothing turfs (such as grass). |
BASALT_LIGHT_POWER | Defines a consistent light power for our various basalt turfs |
BASALT_LIGHT_RANGE_BRIGHT | Defines a consistent light range for basalt turfs that have a bigger area of lava |
BASALT_LIGHT_RANGE_DIM | Defines a consistent light range for basalt turfs that have a smaller area of lava |
ADD_TURF_TRANSPARENCY | Makes the set turf transparent |
REMOVE_TURF_TRANSPARENCY | Removes the transparency from the set turf |
Define Details
ADD_TURF_TRANSPARENCY ![code/__DEFINES/turfs.dm 128](git.png)
Makes the set turf transparent
ALL_TURFS ![code/__DEFINES/turfs.dm 26](git.png)
Returns all currently loaded turfs
BASALT_LIGHT_POWER ![code/__DEFINES/turfs.dm 121](git.png)
Defines a consistent light power for our various basalt turfs
BASALT_LIGHT_RANGE_BRIGHT ![code/__DEFINES/turfs.dm 123](git.png)
Defines a consistent light range for basalt turfs that have a bigger area of lava
BASALT_LIGHT_RANGE_DIM ![code/__DEFINES/turfs.dm 125](git.png)
Defines a consistent light range for basalt turfs that have a smaller area of lava
CORNER_BLOCK ![code/__DEFINES/turfs.dm 31](git.png)
Returns a list of turfs in the rectangle specified by BOTTOM LEFT corner and height/width, checks for being outside the world border for you
CORNER_BLOCK_OFFSET ![code/__DEFINES/turfs.dm 34](git.png)
Returns a list of turfs similar to CORNER_BLOCK but with offsets
CORNER_OUTLINE ![code/__DEFINES/turfs.dm 37](git.png)
Returns an outline (neighboring turfs) of the given block
DECAL_ALPHA ![code/__DEFINES/turfs.dm 100](git.png)
Define the alpha for holiday/colored tile decals
LARGE_TURF_SMOOTHING_X_OFFSET ![code/__DEFINES/turfs.dm 116](git.png)
Defines the x offset to apply to larger smoothing turfs (such as grass).
LARGE_TURF_SMOOTHING_Y_OFFSET ![code/__DEFINES/turfs.dm 118](git.png)
Defines the y offset to apply to larger smoothing turfs (such as grass).
MAXIMUM_WET_TIME ![code/__DEFINES/turfs.dm 68](git.png)
Maximum amount of time, (in deciseconds) a tile can be wet for.
PATTERN_DEFAULT ![code/__DEFINES/turfs.dm 102](git.png)
Generate horizontal striped color turf decals
PATTERN_RAINBOW ![code/__DEFINES/turfs.dm 108](git.png)
Generate rainbow color turf decals
PATTERN_RANDOM ![code/__DEFINES/turfs.dm 106](git.png)
Generate random color turf decals
PATTERN_VERTICAL_STRIPE ![code/__DEFINES/turfs.dm 104](git.png)
Generate vertical striped color turf decals
RANGE_TURFS ![code/__DEFINES/turfs.dm 13](git.png)
Returns a list of turf in a square
REMOVE_TURF_TRANSPARENCY ![code/__DEFINES/turfs.dm 133](git.png)
Removes the transparency from the set turf
TURF_DRY ![code/__DEFINES/turfs.dm 55](git.png)
Turf is dry and mobs won't slip
TURF_MIDPOINT ![code/__DEFINES/turfs.dm 113](git.png)
Finds the midpoint of two given turfs.
TURF_NEIGHBORS ![code/__DEFINES/turfs.dm 44](git.png)
Returns a list of around us
TURF_PATHING_PASS_DENSITY ![code/__DEFINES/turfs.dm 93](git.png)
Turf will be passable if density is 0
TURF_PATHING_PASS_NO ![code/__DEFINES/turfs.dm 97](git.png)
Turf is never passable
TURF_PATHING_PASS_PROC ![code/__DEFINES/turfs.dm 95](git.png)
Turf will be passable depending on [CanAStarPass] return value
TURF_WET_ICE ![code/__DEFINES/turfs.dm 61](git.png)
Turf has a thin layer of ice on the floor and mobs will slip
TURF_WET_LUBE ![code/__DEFINES/turfs.dm 63](git.png)
Turf has lube on the floor and mobs will slip
TURF_WET_PERMAFROST ![code/__DEFINES/turfs.dm 59](git.png)
Turf has a thick layer of ice on the floor and mobs will slip in the direction until they bump into something
TURF_WET_SUPERLUBE ![code/__DEFINES/turfs.dm 65](git.png)
Turf has superlube on the floor and mobs will slip even if they are crawling
TURF_WET_WATER ![code/__DEFINES/turfs.dm 57](git.png)
Turf has water on the floor and mobs will slip unless walking or using galoshes
UNDERFLOOR_HIDDEN ![code/__DEFINES/turfs.dm 47](git.png)
The pipes, disposals, and wires are hidden
UNDERFLOOR_INTERACTABLE ![code/__DEFINES/turfs.dm 51](git.png)
The pipes, disposals, and wires are visible and can be interacted with
UNDERFLOOR_VISIBLE ![code/__DEFINES/turfs.dm 49](git.png)
The pipes, disposals, and wires are visible but cannot be interacted with
Z_TURFS ![code/__DEFINES/turfs.dm 23](git.png)
Returns all turfs in a zlevel
get_area ![code/__DEFINES/turfs.dm 83](git.png)
Get the ultimate area of A
, similarly to get_turf.
Use instead of A.loc.loc
.
get_turf ![code/__DEFINES/turfs.dm 76](git.png)
Get the turf that A
resides in, regardless of any containers.
Use in favor of A.loc
or src.loc
so that things work correctly when
stored inside an inventory, locker, or other container.