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

Public Member Functions

EDITPARTS_INFO * GetPartsInfo (int index)
 
int CheckComplete (int index)
 
void SetCompEvent (int index, int completed)
 
int GetCompEvent (int index)
 
int GetRequest (int index)
 
int GetNextPartsNum (int index)
 
int GetNextParts (int index)
 
void Clear ()
 
void Save (int georama_no, CSaveData *save_data)
 
void Load (int georama_no, CSaveData *save_data, int load_requests)
 
void Initialize (int georama_no)
 
void Initialize (int index, EPARTS_INFO_HEADER *header)
 

Public Attributes

s32 parts_max
 
s32 request [24]
 
EDITPARTS_INFO parts [24]
 
s32 unk_1624
 

Detailed Description

Definition at line 113 of file editpartsinfo.hpp.

Member Function Documentation

◆ GetPartsInfo()

EDITPARTS_INFO * CEditPartsInfo::GetPartsInfo ( int  index)

Returns the record of one editable map part, or NULL.

Mangled name:
GetPartsInfo__14CEditPartsInfoFi
Address:
0x199FD0
Size:
0x44

Definition at line 20 of file editpartsinfo.cpp.

◆ CheckComplete()

int CEditPartsInfo::CheckComplete ( int  index)

Reports whether one georama part has every element it wants.

Mangled name:
CheckComplete__14CEditPartsInfoFi
Address:
0x19A020
Size:
0x80

Definition at line 28 of file editpartsinfo.cpp.

◆ SetCompEvent()

void CEditPartsInfo::SetCompEvent ( int  index,
int  completed 
)

Sets whether one editable part has completed its associated event.

Mangled name:
SetCompEvent__14CEditPartsInfoFii
Address:
0x19A0A0
Size:
0x60

Definition at line 45 of file editpartsinfo.cpp.

◆ GetCompEvent()

int CEditPartsInfo::GetCompEvent ( int  index)

Reports whether one editable part has completed its associated event.

Mangled name:
GetCompEvent__14CEditPartsInfoFi
Address:
0x19A100
Size:
0x40

Definition at line 58 of file editpartsinfo.cpp.

◆ GetRequest()

int CEditPartsInfo::GetRequest ( int  index)

Gives the villager request one georama part belongs to.

Mangled name:
GetRequest__14CEditPartsInfoFi
Address:
0x19A140
Size:
0x38

Definition at line 68 of file editpartsinfo.cpp.

◆ GetNextPartsNum()

int CEditPartsInfo::GetNextPartsNum ( int  index)

Counts the georama parts after one that still have work left.

Mangled name:
GetNextPartsNum__14CEditPartsInfoFi
Address:
0x19A180
Size:
0x88

Definition at line 76 of file editpartsinfo.cpp.

◆ GetNextParts()

int CEditPartsInfo::GetNextParts ( int  index)

Returns the next valid editable part after an index, or -1.

Mangled name:
GetNextParts__14CEditPartsInfoFi
Address:
0x19A210
Size:
0x70

Definition at line 94 of file editpartsinfo.cpp.

◆ Clear()

void CEditPartsInfo::Clear ( )

Empties every georama part definition.

Mangled name:
Clear__14CEditPartsInfoFv
Address:
0x19A280
Size:
0x40

Definition at line 109 of file editpartsinfo.cpp.

◆ Save()

void CEditPartsInfo::Save ( int  georama_no,
CSaveData *  save_data 
)

Writes the georama part definitions into the save file.

Mangled name:
Save__14CEditPartsInfoFiP9CSaveData
Address:
0x19A2C0
Size:
0x128

Definition at line 115 of file editpartsinfo.cpp.

◆ Load()

void CEditPartsInfo::Load ( int  georama_no,
CSaveData *  save_data,
int  load_requests 
)

Reads the georama part definitions back out of the save file.

Mangled name:
Load__14CEditPartsInfoFiP9CSaveDatai
Address:
0x19A3F0
Size:
0x178

Definition at line 144 of file editpartsinfo.cpp.

◆ Initialize() [1/2]

void CEditPartsInfo::Initialize ( int  georama_no)

Clears the georama part definitions of one map.

Mangled name:
Initialize__14CEditPartsInfoFi
Address:
0x19A570
Size:
0x1C8

Definition at line 187 of file editpartsinfo.cpp.

◆ Initialize() [2/2]

void CEditPartsInfo::Initialize ( int  index,
EPARTS_INFO_HEADER *  header 
)

Fills one georama part definition from its packed header.

Mangled name:
Initialize__14CEditPartsInfoFiP18EPARTS_INFO_HEADER
Address:
0x19A740
Size:
0x64

Definition at line 238 of file editpartsinfo.cpp.

Member Data Documentation

◆ parts_max

s32 CEditPartsInfo::parts_max

Parts the map's own catalogue holds.

Definition at line 115 of file editpartsinfo.hpp.

◆ request

s32 CEditPartsInfo::request[24]

Villager request each part belongs to.

Definition at line 116 of file editpartsinfo.hpp.

◆ parts

EDITPARTS_INFO CEditPartsInfo::parts[24]

Every part the map can hold.

Definition at line 117 of file editpartsinfo.hpp.

◆ unk_1624

s32 CEditPartsInfo::unk_1624

Definition at line 118 of file editpartsinfo.hpp.