MiniDoom

src/doomtype.ml

Defines primitive numeric limits, byte masks, booleans, and legacy aliases used by translated Doom code.

Package
(global)
Reachable
Yes

Declarations

asByte

inline function asByte(x)

Converts byte values for the engine.

ParameterTypeDefaultDescription
xdynamic—Horizontal map- or screen-space coordinate.

View source

BYTE_MASK

const BYTE_MASK = 255

Defines byte mask for the doomtype subsystem.

View source

BYTE_MAX

const BYTE_MAX = 255

Defines the maximum byte max accepted by the doomtype subsystem.

View source

MAXCHAR

const MAXCHAR = 127

Defines the maximum maxchar accepted by the doomtype subsystem.

View source

MAXINT

const MAXINT = 2147483647

Defines the maximum maxint accepted by the doomtype subsystem.

View source

MAXLONG

const MAXLONG = 2147483647

Defines the maximum maxlong accepted by the doomtype subsystem.

View source

MAXSHORT

const MAXSHORT = 32767

Defines the maximum maxshort accepted by the doomtype subsystem.

View source

MINCHAR

const MINCHAR = 128

Defines the minimum minchar accepted by the doomtype subsystem.

View source

MININT

const MININT = 2147483648

Defines the minimum minint accepted by the doomtype subsystem.

View source

MINLONG

const MINLONG = 2147483648

Defines the minimum minlong accepted by the doomtype subsystem.

View source

MINSHORT

const MINSHORT = 32768

Defines the minimum minshort accepted by the doomtype subsystem.

View source