# _PTK_owner_nodes
_PTK_owner_nodesStores the ptk owner nodes collection used by the p tick subsystem.
src/p_tick.mlOwns the intrusive thinker list and advances all world thinkers once per unpaused game tic.
doomstat.ml → src/doomstat.mlp_local.ml → src/p_local.mlp_spec.ml → src/p_spec.mlp_user.ml → src/p_user.mlz_zone.ml → src/z_zone.ml_PTK_owner_nodesStores the ptk owner nodes collection used by the p tick subsystem.
_PTK_owner_valsStores the ptk owner vals collection used by the p tick subsystem.
leveltimeTracks the mutable leveltime value used by the p tick subsystem.
function P_AddThinker(thinker)Adds thinker entries to the play simulation.
| Parameter | Type | Default | Description |
|---|---|---|---|
thinker | dynamic | — | Thinker value supplied to `P_AddThinker`. |
function P_AllocateThinker(thinker)Constructs an unlinked thinker node with an empty callback and owner slot.
| Parameter | Type | Default | Description |
|---|---|---|---|
thinker | dynamic | — | Thinker value supplied to `P_AllocateThinker`. |
function P_InitThinkers()Resets the thinker sentinel into an empty circular doubly linked list and clears owner bookkeeping.
function P_RegisterThinkerOwner(node, owner)Associates a thinker node with its owning gameplay object in the fallback owner registry.
| Parameter | Type | Default | Description |
|---|---|---|---|
node | dynamic | — | Node value supplied to `P_RegisterThinkerOwner`. |
owner | dynamic | — | Owner value supplied to `P_RegisterThinkerOwner`. |
function P_RemoveThinker(thinker)Removes remove Thinker data from the play simulation system.
| Parameter | Type | Default | Description |
|---|---|---|---|
thinker | dynamic | — | Thinker value supplied to `P_RemoveThinker`. |
function P_ResolveThinkerOwner(node)Returns a thinker's direct owner or resolves it from the fallback registry used by legacy nodes.
| Parameter | Type | Default | Description |
|---|---|---|---|
node | dynamic | — | Node value supplied to `P_ResolveThinkerOwner`. |
function P_RunFrozenPlayerMobjs()Advances only active player mobjs while the developer freeze suspends every other world thinker.
function P_RunThinkers()Walks the thinker list safely across removals and invokes each active callback with its resolved owner.
function P_Ticker()Advances players, thinkers, and sector specials once per unpaused game tic, then increments level time.
function P_UnregisterThinkerOwner(node)Removes a thinker-to-owner association when the node leaves the active thinker list.
| Parameter | Type | Default | Description |
|---|---|---|---|
node | dynamic | — | Node value supplied to `P_UnregisterThinkerOwner`. |
thinkercapTracks the mutable thinkercap value used by the p tick subsystem.