DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
CMenuItemStep Class Reference

#include <menuitemstep.hpp>

Public Member Functions

void Initialize ()
 
void LoopStep (int interval)
 
void CheckItemVolume ()
 

Public Attributes

s32 frame
 
s32 last_slot
 
s16 last_item
 
s16 dungeon_item_held
 
s16 enabled
 
s16 chara_no
 
s16 held_item [4]
 
s16 chara_slot [4]
 
s16 chara_item [4]
 
s32 pending_volume
 

Detailed Description

Accumulates elapsed play time and applies it to time-sensitive inventory items.

Definition at line 8 of file menuitemstep.hpp.

Member Function Documentation

◆ Initialize()

void CMenuItemStep::Initialize ( )

Resets item-volume timing and per-character state.

Mangled name:
Initialize__13CMenuItemStepFv
Address:
0x235650
Size:
0x7C

Definition at line 11 of file menuitemstep.cpp.

◆ LoopStep()

void CMenuItemStep::LoopStep ( int  interval)

Accumulates one frame toward the next inventory-volume step.

Mangled name:
LoopStep__13CMenuItemStepFi
Address:
0x2356D0
Size:
0x4C

Definition at line 28 of file menuitemstep.cpp.

◆ CheckItemVolume()

void CMenuItemStep::CheckItemVolume ( )

Applies pending volume loss to time-sensitive inventory items.

Mangled name:
CheckItemVolume__13CMenuItemStepFv
Address:
0x235720
Size:
0x2EC

Definition at line 44 of file menuitemstep.cpp.

Member Data Documentation

◆ frame

s32 CMenuItemStep::frame

Frames accumulated toward the next inventory-volume step.

Definition at line 10 of file menuitemstep.hpp.

◆ last_slot

s32 CMenuItemStep::last_slot

Inventory slot last stepped; reset to -1.

Definition at line 11 of file menuitemstep.hpp.

◆ last_item

s16 CMenuItemStep::last_item

Item last stepped; reset to -1.

Definition at line 12 of file menuitemstep.hpp.

◆ dungeon_item_held

s16 CMenuItemStep::dungeon_item_held

Set once the checked character holds a dungeon item.

Definition at line 13 of file menuitemstep.hpp.

◆ enabled

s16 CMenuItemStep::enabled

Enables periodic inventory-volume accumulation.

Definition at line 14 of file menuitemstep.hpp.

◆ chara_no

s16 CMenuItemStep::chara_no

Character whose held item CheckItemVolume inspects.

Definition at line 15 of file menuitemstep.hpp.

◆ held_item

s16 CMenuItemStep::held_item[4]

Item each character holds, checked for dungeon items.

Definition at line 16 of file menuitemstep.hpp.

◆ chara_slot

s16 CMenuItemStep::chara_slot[4]

Slot recorded for each character; reset to -1.

Definition at line 17 of file menuitemstep.hpp.

◆ chara_item

s16 CMenuItemStep::chara_item[4]

Item recorded for each character; reset to -1.

Definition at line 18 of file menuitemstep.hpp.

◆ pending_volume

s32 CMenuItemStep::pending_volume

Inventory-volume steps waiting to be applied.

Definition at line 19 of file menuitemstep.hpp.