|
DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
|
#include <userstatus.hpp>
Public Member Functions | |
| int | ChkEventFlag (int flag_no) |
| void | ClearEventFlag () |
| void | AddDrink (int chara_no, s16 amount, float ratio) |
| void | AddNowLife (int chara_no, s16 amount, float ratio) |
| int | CheckLife () |
| void | SetNextLife (int chara_no, s16 value, float ratio) |
| void | Step (int mode) |
| void | Init () |
Public Attributes | ||
| s8 | cur_georama | |
| char | unk_01 [1] | |
| s8 | cur_floor | |
| s8 | prev_floor | |
| s8 | cur_chara | |
| s8 | party_size | |
| s16 | max_hp [6] | |
| s16 | hp [6] | |
| char | unk_01E [0x25A] | |
| s32 | atra_grid [6][40][8] | |
| ATRA_SAVE | atra_registry [6][100] | |
| s16 | kills [6][100] | |
| char | unk_4148 [200] | |
| char | res_limit_zone_id [6][25] | |
| char | unk_42A6 [25] | |
| s8 | floor_reached [7] | |
| char | unk_42C6 [2] | |
| s32 | ailments [6] | |
| s16 | ailment_frames [6] | |
| float | water_max [6] | |
| float | water_now [6] | |
| s32 | overflow_flag | |
| s32 | special_flag_238 | |
| s32 | skill_owned [6] | |
| s32 | minimap_status | |
| s8 | equipped_weapon_slot [6] | |
| union { | ||
| u16 money | ||
| s16 money_signed | ||
| }; | ||
| s32 | defense [6] | |
| union { | ||
| ITEM_PACK item_pack | ||
| s16 active_item [3] | ||
| }; | ||
| char | unk_450A [2] | |
| WEAPON_HAVE | chara_weapons [6][11] | |
| DNG_CONSUMABLE | consumable_items [43] | |
| s16 | next_hp [6] | |
| s16 | life_step [6] | |
| s32 | unk_8A74 [6] | |
| s32 | unk_8A8C [6] | |
| s8 | event_flags [50] | |
| s16 | drink_next [6] | |
| s16 | drink_step [6] | |
| char | unk_8AEE [2] | |
| float | thirst_damage [6] | |
| s32 | water_drain_disable | |
| s32 | step_disable | |
| s32 | res_limit_zone_current | |
| s32 | active_item_vol [3] | |
Stores the party's characters, inventory, and dungeon progress.
Definition at line 78 of file userstatus.hpp.
| int CUserStatus::ChkEventFlag | ( | int | flag_no | ) |
Definition at line 104 of file dngstatusdata.cpp.
| void CUserStatus::ClearEventFlag | ( | ) |
Definition at line 114 of file dngstatusdata.cpp.
| void CUserStatus::AddDrink | ( | int | chara_no, |
| s16 | amount, | ||
| float | ratio | ||
| ) |
Definition at line 493 of file dngstatusdata.cpp.
| void CUserStatus::AddNowLife | ( | int | chara_no, |
| s16 | amount, | ||
| float | ratio | ||
| ) |
Definition at line 530 of file dngstatusdata.cpp.
| int CUserStatus::CheckLife | ( | ) |
Definition at line 582 of file dngstatusdata.cpp.
| void CUserStatus::SetNextLife | ( | int | chara_no, |
| s16 | value, | ||
| float | ratio | ||
| ) |
Definition at line 597 of file dngstatusdata.cpp.
| void CUserStatus::Step | ( | int | mode | ) |
Drains the active character's water, then moves every water and HP gauge one step.
Definition at line 634 of file dngstatusdata.cpp.
| void CUserStatus::Init | ( | ) |
Definition at line 723 of file dngstatusdata.cpp.
| s8 CUserStatus::cur_georama |
Current town and dungeon index.
Definition at line 82 of file userstatus.hpp.
| char CUserStatus::unk_01[1] |
Definition at line 83 of file userstatus.hpp.
| s8 CUserStatus::cur_floor |
Floor the party stands on.
Definition at line 84 of file userstatus.hpp.
| s8 CUserStatus::prev_floor |
Floor occupied before the current floor.
Definition at line 85 of file userstatus.hpp.
| s8 CUserStatus::cur_chara |
Index of the currently controlled party member.
Definition at line 86 of file userstatus.hpp.
| s8 CUserStatus::party_size |
Party members who have joined.
Definition at line 87 of file userstatus.hpp.
| s16 CUserStatus::max_hp[6] |
Maximum life of each party member.
Definition at line 88 of file userstatus.hpp.
| s16 CUserStatus::hp[6] |
Current displayed life of each party member.
Definition at line 89 of file userstatus.hpp.
| char CUserStatus::unk_01E[0x25A] |
Definition at line 90 of file userstatus.hpp.
| s32 CUserStatus::atra_grid[6][40][8] |
Atla each floor slot asks for, or -1 empty, -2 any atla, -3 collected.
Definition at line 91 of file userstatus.hpp.
| ATRA_SAVE CUserStatus::atra_registry[6][100] |
Atla each dungeon's floor slots still ask for.
Definition at line 92 of file userstatus.hpp.
| s16 CUserStatus::kills[6][100] |
Monsters defeated on each dungeon floor.
Definition at line 93 of file userstatus.hpp.
| char CUserStatus::unk_4148[200] |
Definition at line 94 of file userstatus.hpp.
| char CUserStatus::res_limit_zone_id[6][25] |
Restriction-zone identifiers by dungeon and floor.
Definition at line 95 of file userstatus.hpp.
| char CUserStatus::unk_42A6[25] |
Definition at line 96 of file userstatus.hpp.
| s8 CUserStatus::floor_reached[7] |
Deepest floor reached in each dungeon, or -1 if never entered.
Definition at line 97 of file userstatus.hpp.
| char CUserStatus::unk_42C6[2] |
Definition at line 98 of file userstatus.hpp.
| s32 CUserStatus::ailments[6] |
Status ailments each party member suffers.
Definition at line 99 of file userstatus.hpp.
| s16 CUserStatus::ailment_frames[6] |
Frames left of each party member's status ailment.
Definition at line 100 of file userstatus.hpp.
| float CUserStatus::water_max[6] |
Most water each character can hold, ten to a drop.
Definition at line 101 of file userstatus.hpp.
| float CUserStatus::water_now[6] |
Water each character holds now.
Definition at line 102 of file userstatus.hpp.
| s32 CUserStatus::overflow_flag |
Whether the player carries more items than the pack holds.
Definition at line 103 of file userstatus.hpp.
| s32 CUserStatus::special_flag_238 |
Set when item 238 is picked up.
Definition at line 104 of file userstatus.hpp.
| s32 CUserStatus::skill_owned[6] |
Whether each character has received their event skill.
Definition at line 105 of file userstatus.hpp.
| s32 CUserStatus::minimap_status |
Current minimap visibility mode.
Definition at line 106 of file userstatus.hpp.
| s8 CUserStatus::equipped_weapon_slot[6] |
Specifies each character's equipped weapon slot.
Definition at line 107 of file userstatus.hpp.
| u16 CUserStatus::money |
Gilda the party carries.
Definition at line 110 of file userstatus.hpp.
| s16 CUserStatus::money_signed |
Signed view of the Gilda the party carries.
Definition at line 111 of file userstatus.hpp.
| s32 CUserStatus::defense[6] |
Defense of each party member, raised by their favourite food up to 99.
Definition at line 114 of file userstatus.hpp.
| ITEM_PACK CUserStatus::item_pack |
Dungeon items the player carries.
Definition at line 117 of file userstatus.hpp.
| s16 CUserStatus::active_item[3] |
The pack read as halfwords from its start, indexed by 1-based quick-use slot: [slot] is that slot's item and [slot + 3] its count.
Definition at line 123 of file userstatus.hpp.
| char CUserStatus::unk_450A[2] |
Definition at line 126 of file userstatus.hpp.
| WEAPON_HAVE CUserStatus::chara_weapons[6][11] |
Specifies the weapons owned by each character.
Definition at line 127 of file userstatus.hpp.
| DNG_CONSUMABLE CUserStatus::consumable_items[43] |
Specifies the stored consumable items.
Definition at line 128 of file userstatus.hpp.
| s16 CUserStatus::next_hp[6] |
Life each party member's gauge is moving towards.
Definition at line 129 of file userstatus.hpp.
| s16 CUserStatus::life_step[6] |
Life each party member's gauge moves by each step, or 0 when still.
Definition at line 130 of file userstatus.hpp.
| s32 CUserStatus::unk_8A74[6] |
Definition at line 131 of file userstatus.hpp.
| s32 CUserStatus::unk_8A8C[6] |
Definition at line 132 of file userstatus.hpp.
| s8 CUserStatus::event_flags[50] |
Flags the dungeon's event scripts set and read.
Definition at line 133 of file userstatus.hpp.
| s16 CUserStatus::drink_next[6] |
Water each party member's gauge is moving towards.
Definition at line 134 of file userstatus.hpp.
| s16 CUserStatus::drink_step[6] |
Water each party member's gauge moves by each step, or 0 when still.
Definition at line 135 of file userstatus.hpp.
| char CUserStatus::unk_8AEE[2] |
Definition at line 136 of file userstatus.hpp.
| float CUserStatus::thirst_damage[6] |
Progress towards the next point of life lost to an empty water gauge.
Definition at line 137 of file userstatus.hpp.
| s32 CUserStatus::water_drain_disable |
1 while the active character's water does not drain.
Definition at line 138 of file userstatus.hpp.
| s32 CUserStatus::step_disable |
1 while the gauges, and the player's status ailments, stand still.
Definition at line 139 of file userstatus.hpp.
| s32 CUserStatus::res_limit_zone_current |
Restriction zone the party is fenced into.
Definition at line 140 of file userstatus.hpp.
| s32 CUserStatus::active_item_vol[3] |
Uses left of the item in each quick-use slot.
Definition at line 141 of file userstatus.hpp.