Files
src/p_floor.ml
Moves sector planes with collision handling and drives tagged floor-change thinkers.
- Package
(global)- Reachable
- Yes
Imports
Declarations
# _FloorAddThinkerIfPossible
inline function _FloorAddThinkerIfPossible(th)
Registers a floor thinker only when the thinker API is available, preserving compatibility with reduced test harnesses.
| Parameter | Type | Default | Description |
|---|
th | dynamic | — | Th value supplied to `_FloorAddThinkerIfPossible`. |
View source
# _FloorMakeThinker
inline function _FloorMakeThinker(fn)
Creates a floor-mover thinker with canonical links, callback, direction, speed, and destination defaults.
| Parameter | Type | Default | Description |
|---|
fn | dynamic | — | Fn value supplied to `_FloorMakeThinker`. |
View source
# _FloorSectorIndex
function _FloorSectorIndex(sec)
Resolves a sector object to its map-array index for neighbor and tag traversal.
| Parameter | Type | Default | Description |
|---|
sec | dynamic | — | Sec value supplied to `_FloorSectorIndex`. |
View source
# _FloorSoundOrg
inline function _FloorSoundOrg(sec)
Returns a sector sound origin when present, otherwise uses the sector itself as the positional sound source.
| Parameter | Type | Default | Description |
|---|
sec | dynamic | — | Sec value supplied to `_FloorSoundOrg`. |
View source
# _FloorStartSound
inline function _FloorStartSound(origin, snd)
Emits a positional floor-movement sound only when the sound subsystem is available.
| Parameter | Type | Default | Description |
|---|
origin | dynamic | — | Origin value supplied to `_FloorStartSound`. |
snd | dynamic | — | Snd value supplied to `_FloorStartSound`. |
View source
# _FloorTextureHeight
inline function _FloorTextureHeight(tex)
Looks up a floor texture's pixel height and converts it to fixed-point movement units, with a 64-unit fallback.
| Parameter | Type | Default | Description |
|---|
tex | dynamic | — | Texture identifier or texture data to process. |
View source
# EV_BuildStairs
function EV_BuildStairs(line, type)
Chains adjacent sectors with the same floor texture into progressively offset stair movers.
| Parameter | Type | Default | Description |
|---|
line | dynamic | — | Map line or text line affected by the operation. |
type | dynamic | — | Type value supplied to `EV_BuildStairs`. |
View source
# EV_DoFloor
function EV_DoFloor(line, floortype)
Configures and starts the selected floor movement for all sectors matching a trigger tag.
| Parameter | Type | Default | Description |
|---|
line | dynamic | — | Map line or text line affected by the operation. |
floortype | dynamic | — | Floortype value supplied to `EV_DoFloor`. |
View source
# T_MoveFloor
function T_MoveFloor(floor)
Advances one floor thinker, applies endpoint texture/special changes, emits movement sounds, and removes it at the destination.
| Parameter | Type | Default | Description |
|---|
floor | dynamic | — | Floor value supplied to `T_MoveFloor`. |
View source
# T_MovePlane
function T_MovePlane(sector, speed, dest, crush, floorOrCeiling, direction)
Steps a floor or ceiling toward a destination, rolls back blocked non-crushing moves, and reports progress, arrival, or crushing.
| Parameter | Type | Default | Description |
|---|
sector | dynamic | — | Map sector affected by the operation. |
speed | dynamic | — | Speed value supplied to `T_MovePlane`. |
dest | dynamic | — | Dest value supplied to `T_MovePlane`. |
crush | dynamic | — | Crush value supplied to `T_MovePlane`. |
floorOrCeiling | dynamic | — | Floor or ceiling value supplied to `T_MovePlane`. |
direction | dynamic | — | Direction value supplied to `T_MovePlane`. |
View source