Utilities#
Here we document the helpers functions that are not part of any object.
They mostly help to deal with conversion of Doom’s engine types.
The declarations of all the enums can be found in the include/ViZDoomUtils.h
header file.
Time conversion functions#
doomTicsToMs
#
C++ |
|
---|---|
Python |
|
Changed in 1.1
Calculates how many tics will be made during given number of milliseconds.
msToDoomTics
#
C++ |
|
---|---|
Python |
|
Changed in 1.1
Calculates the number of milliseconds that will pass during specified number of tics.
doomTicsToSec
#
C++ |
|
---|---|
Python |
|
Added in 1.1
Calculates how many tics will be made during given number of seconds.
secToDoomTics
#
C++ |
|
---|---|
Python |
|
Added in 1.1
Calculates the number of seconds that will pass during specified number of tics.
Doom fixed point conversion functions#
doomFixedToDouble
#
C++ |
|
---|---|
Python |
`doom_fixed_to_double(doomFixed: int |
Converts fixed point numeral to a floating point value.
Doom’s engine internally use fixed point numbers.
If you read them directly from USERX
variables,
you may want to convert them to floating point numbers.
See also:
Python aliases (added in 1.1): doom_fixed_to_float(doomFixed: int | float) -> float