MiniDoom

src/console_cmd.ml

Parses console command text and performs gameplay or utility actions without owning any UI state.

Package
(global)
Reachable
Yes

Imports

Declarations

_CCMD_Ammo

function _CCMD_Ammo(includeKeys)

Implements IDFA and IDKFA with their original distinction over key ownership.

ParameterTypeDefaultDescription
includeKeysdynamic—Include keys value supplied to `_CCMD_Ammo`.

View source

_CCMD_Cheats

function _CCMD_Cheats()

Lists every supported single-player gameplay cheat with concise usage text.

View source

_CCMD_CurrentPlayer

inline function _CCMD_CurrentPlayer()

Resolves the checked local player record used by single-player cheat commands.

View source

_ccmd_direct_cheat_buffer

_ccmd_direct_cheat_buffer

Rolling gameplay-key suffix used for classic, console-free IDCLEV entry. Stores the mutable ccmd direct cheat buffer text used by the console cmd subsystem.

View source

_CCMD_Fps

function _CCMD_Fps()

Toggles the in-game presentation-rate overlay independently of the window title.

View source

_CCMD_Freeze

function _CCMD_Freeze()

Toggles suspension of non-player thinkers and world specials.

View source

_CCMD_God

function _CCMD_God()

Toggles canonical Doom god mode and restores a viable health value when enabling it.

View source

_CCMD_GrantArsenal

function _CCMD_GrantArsenal(player, includeKeys)

Gives armor, every weapon, full carried ammunition, and optionally every key to the local player.

ParameterTypeDefaultDescription
playerdynamic—Player state affected by the operation.
includeKeysdynamic—Include keys value supplied to `_CCMD_GrantArsenal`.

View source

_CCMD_Help

function _CCMD_Help()

Describes console activation, navigation, logging, pause behavior, and utility commands.

View source

_CCMD_IdClev

function _CCMD_IdClev(argument)

Validates a Doom II map number or Doom episode/map pair and queues the normal level transition.

ParameterTypeDefaultDescription
argumentdynamic—Argument value supplied to `_CCMD_IdClev`.

View source

_CCMD_Invisible

function _CCMD_Invisible()

Toggles persistent monster notarget behavior and immediately cancels existing locks and attacks when enabled.

View source

_CCMD_KillMonsters

function _CCMD_KillMonsters()

Applies lethal damage to every living counted monster, lost soul, and Icon of Sin brain in the level.

View source

_CCMD_Name

function _CCMD_Name(argument, setName)

Shows or changes the persistent local player name and announces it to an active multiplayer session.

ParameterTypeDefaultDescription
argumentdynamic—Argument value supplied to `_CCMD_Name`.
setNamedynamic—Set name value supplied to `_CCMD_Name`.

View source

_CCMD_NoClip

function _CCMD_NoClip()

Toggles the player's collision-bypass cheat flag.

View source

_CCMD_OnOff

inline function _CCMD_OnOff(enabled)

Formats a stable enabled/disabled suffix shared by toggle command responses.

ParameterTypeDefaultDescription
enableddynamic—Whether the requested feature should be enabled.

View source

_CCMD_ParsePositiveInt

function _CCMD_ParsePositiveInt(text)

Parses one whitespace-trimmed positive decimal integer and rejects every non-digit byte.

ParameterTypeDefaultDescription
textdynamic—Text to process.

View source

_CCMD_RequireGameplayCheat

inline function _CCMD_RequireGameplayCheat(requirePlayer)

Rejects world-mutating commands outside a live single-player level to avoid network desynchronization.

ParameterTypeDefaultDescription
requirePlayerdynamic—Require player value supplied to `_CCMD_RequireGameplayCheat`.

View source

_CCMD_ResolveMobj

inline function _CCMD_ResolveMobj(node)

Resolves one thinker node to its registered mobj owner for world command scans.

ParameterTypeDefaultDescription
nodedynamic—Node value supplied to `_CCMD_ResolveMobj`.

View source

_CCMD_Result

inline function _CCMD_Result(handled, message, clearLog, closeConsole)

Constructs one normalized command result for the console UI boundary.

ParameterTypeDefaultDescription
handleddynamic—Handled value supplied to `_CCMD_Result`.
messagedynamic—Message text or payload to process.
clearLogdynamic—Clear log value supplied to `_CCMD_Result`.
closeConsoledynamic—Close console value supplied to `_CCMD_Result`.

View source

CCMD_DirectCheatResponder

function CCMD_DirectCheatResponder(ev)

Detects classic IDCLEV plus two digits in ordinary gameplay without consuming movement keys.

ParameterTypeDefaultDescription
evdynamic—Input event to process.

View source

CCMD_Execute

function CCMD_Execute(line)

Normalizes one input line and dispatches it to isolated command implementations.

ParameterTypeDefaultDescription
linedynamic—Map line or text line affected by the operation.

View source

console_command_result_t struct