|
DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
|
#include <savedata.hpp>
Public Member Functions | |
| CSaveData () | |
| void | Initialize () |
| void * | GetConfigData () |
| CMenuCursor * | GetMenuCursor () |
| s16 * | GetCharaName (int chara_no) |
| void | AddPlayTime (int time) |
| int | GetPlayTime () |
| void | SetNowTime (float time) |
| float | GetNowTime () |
| void | AddNowTime (float add) |
| void | SetDay (int day) |
| int | GetDay () |
| void | AddDay (int add) |
| void | AddFishingPoint (int add) |
| void | SetFishingPoint (int value) |
| void | SetFishingRank (int fish_id, float score) |
| SV_FISH_DATA * | GetFishingRank (int rank_index) |
| SV_GEORAMA_DATA * | GetGrdData (int georama_no) |
| SV_EDIT_PARTS_INFO * | GetEditPartsInfo (int georama_no, int plot_no) |
| SV_GRD_PART * | GetParts (int georama_no, int *out_count) |
| SV_GRD_NPC * | GetGrdNPCData (int map_no, int npc_no) |
| s16 * | GetElemData (int georama_no) |
| CDngStatusData * | GetDngStatus () |
| CStockItem * | GetStockItem () |
| int | GetGameFlag (int flag_no) |
| int | SetGameFlag (int flag_no, int value) |
| int | GetGameIntFlag (int flag_no) |
| int | SetGameIntFlag (int flag_no, int value) |
| int | GetMapFlag (int map_no, int flag_no) |
| int | SetMapFlag (int map_no, int flag_no, int value) |
| int | GetMapInitFlag (int map_no, int flag_no) |
| int | SetMapInitFlag (int map_no, int flag_no, int value) |
| int | AtraPartsGet (int georama_no, int plot_no) |
| int | AtraChipGet (int georama_no, int chip_id) |
| int | VisitMap (int map_no, int add) |
| int | QuestDungeon (int dungeon_no, int add) |
| void | ConvertConfig (SV_CONFIG_SYS *out) |
| int | InvertConfig (SV_CONFIG_SYS *in) |
| s32 | GetFishingPoint () const |
| s32 | GetMardanGareyanFlag () const |
Private Attributes | |
| s32 | config [18] |
| s16 | chara_name [6][32] |
| s32 | map_no |
| s32 | unk_1CC |
| float | now_time |
| s32 | play_time |
| s32 | day |
| s32 | fishing_point |
| SV_FISH_DATA | fish_data [64] |
| char | unk_5E0 [112] |
| CMenuCursor | menu_cursor |
| SV_GEORAMA_DATA | georama [6] |
| s16 | elem_data [6][128] |
| char | special_npc [320] |
| CDngStatusData | dng_status |
| CStockItem | stock_item |
| u32 | game_flags [256] |
| s32 | game_int_flag [32] |
| u32 | map_flags [80][16] |
| u32 | map_init_flags [80][16] |
| s16 | visit_map [80] |
| s16 | quest_dungeon [6] |
| s32 | mardan_garayan_caught |
| s32 | quest_dungeon_total |
| char | unk_12F9C [548] |
Friends | |
| class | CMemoryCardAccess |
| void | EdMoveChara () |
Contains the data of one save slot.
Definition at line 107 of file savedata.hpp.
| CSaveData::CSaveData | ( | ) |
Sets all save data fields to their initial state.
Definition at line 669 of file savedata.cpp.
| void CSaveData::Initialize | ( | ) |
Sets all save data fields to their initial state.
Definition at line 628 of file savedata.cpp.
| void * CSaveData::GetConfigData | ( | ) |
Returns the configuration values.
Returns the definition table entry of a Georama plot.
Definition at line 33 of file savedata.cpp.
| CMenuCursor * CSaveData::GetMenuCursor | ( | ) |
Returns the menu cursor.
Definition at line 37 of file savedata.cpp.
| s16 * CSaveData::GetCharaName | ( | int | chara_no | ) |
Returns the name of a character, or NULL if the character number is not valid.
Definition at line 41 of file savedata.cpp.
| void CSaveData::AddPlayTime | ( | int | time | ) |
Adds a value to the play time.
Definition at line 49 of file savedata.cpp.
| int CSaveData::GetPlayTime | ( | ) |
Returns the play time.
Definition at line 53 of file savedata.cpp.
| void CSaveData::SetNowTime | ( | float | time | ) |
Sets the time of day.
Definition at line 57 of file savedata.cpp.
| float CSaveData::GetNowTime | ( | ) |
Returns the time of day.
Definition at line 61 of file savedata.cpp.
| void CSaveData::AddNowTime | ( | float | add | ) |
Adds a value to the time of day and starts a new day if necessary.
Definition at line 65 of file savedata.cpp.
| void CSaveData::SetDay | ( | int | day | ) |
Sets the day count and keeps the count in the permitted range.
Definition at line 84 of file savedata.cpp.
| int CSaveData::GetDay | ( | ) |
Returns the day count.
Definition at line 96 of file savedata.cpp.
| void CSaveData::AddDay | ( | int | add | ) |
Adds a value to the day count.
Definition at line 100 of file savedata.cpp.
| void CSaveData::AddFishingPoint | ( | int | add | ) |
Adds a value to the fishing points and keeps the points in the permitted range.
Definition at line 105 of file savedata.cpp.
| void CSaveData::SetFishingPoint | ( | int | value | ) |
Sets the fishing points and keeps the points in the permitted range.
Definition at line 117 of file savedata.cpp.
| void CSaveData::SetFishingRank | ( | int | fish_id, |
| float | score | ||
| ) |
Puts a fish score in the leaderboard and sorts the leaderboard again.
Definition at line 129 of file savedata.cpp.
| SV_FISH_DATA * CSaveData::GetFishingRank | ( | int | rank_index | ) |
Returns a leaderboard entry, or NULL if the entry is empty.
Definition at line 163 of file savedata.cpp.
| SV_GEORAMA_DATA * CSaveData::GetGrdData | ( | int | georama_no | ) |
Returns the Georama data of a town, or NULL if the town number is not valid.
Definition at line 175 of file savedata.cpp.
| SV_EDIT_PARTS_INFO * CSaveData::GetEditPartsInfo | ( | int | georama_no, |
| int | plot_no | ||
| ) |
Returns the state of a Georama plot, or NULL if a number is not valid.
Definition at line 183 of file savedata.cpp.
| SV_GRD_PART * CSaveData::GetParts | ( | int | georama_no, |
| int * | out_count | ||
| ) |
Returns the Georama parts of a town and gives the number of parts that the town has.
Definition at line 195 of file savedata.cpp.
| SV_GRD_NPC * CSaveData::GetGrdNPCData | ( | int | map_no, |
| int | npc_no | ||
| ) |
Returns an NPC slot of a map, or NULL if a number is not valid.
Definition at line 215 of file savedata.cpp.
| s16 * CSaveData::GetElemData | ( | int | georama_no | ) |
Returns the chips of a town, or NULL if the town number is not valid.
Definition at line 242 of file savedata.cpp.
| CDngStatusData * CSaveData::GetDngStatus | ( | ) |
Returns the dungeon status data.
Definition at line 250 of file savedata.cpp.
| CStockItem * CSaveData::GetStockItem | ( | ) |
Returns the stock inventory.
Definition at line 254 of file savedata.cpp.
| int CSaveData::GetGameFlag | ( | int | flag_no | ) |
Returns the value of a game flag, or zero if the flag number is not valid.
Definition at line 258 of file savedata.cpp.
| int CSaveData::SetGameFlag | ( | int | flag_no, |
| int | value | ||
| ) |
Sets a game flag and returns the new value.
Definition at line 279 of file savedata.cpp.
| int CSaveData::GetGameIntFlag | ( | int | flag_no | ) |
Returns the value of a game integer flag, or zero if the flag number is not valid.
Definition at line 310 of file savedata.cpp.
| int CSaveData::SetGameIntFlag | ( | int | flag_no, |
| int | value | ||
| ) |
Sets a game integer flag and returns the new value.
Definition at line 318 of file savedata.cpp.
| int CSaveData::GetMapFlag | ( | int | map_no, |
| int | flag_no | ||
| ) |
Returns the value of a map flag, or zero if a number is not valid.
Definition at line 327 of file savedata.cpp.
| int CSaveData::SetMapFlag | ( | int | map_no, |
| int | flag_no, | ||
| int | value | ||
| ) |
Sets a map flag and returns the new value.
Definition at line 356 of file savedata.cpp.
| int CSaveData::GetMapInitFlag | ( | int | map_no, |
| int | flag_no | ||
| ) |
Returns the value of a map initialization flag, or zero if a number is not valid.
Definition at line 391 of file savedata.cpp.
| int CSaveData::SetMapInitFlag | ( | int | map_no, |
| int | flag_no, | ||
| int | value | ||
| ) |
Sets a map initialization flag and returns the new value.
Definition at line 420 of file savedata.cpp.
| int CSaveData::AtraPartsGet | ( | int | georama_no, |
| int | plot_no | ||
| ) |
Gives the player a Georama building and returns one if the state changed.
Definition at line 455 of file savedata.cpp.
| int CSaveData::AtraChipGet | ( | int | georama_no, |
| int | chip_id | ||
| ) |
Puts a chip in the first empty chip slot of a town and returns one if a slot was empty.
Definition at line 494 of file savedata.cpp.
| int CSaveData::VisitMap | ( | int | map_no, |
| int | add | ||
| ) |
Adds a value to the visit count of a map and returns the new count.
Definition at line 521 of file savedata.cpp.
| int CSaveData::QuestDungeon | ( | int | dungeon_no, |
| int | add | ||
| ) |
Adds a value to the quest count of a dungeon and returns the new count.
Definition at line 535 of file savedata.cpp.
| void CSaveData::ConvertConfig | ( | SV_CONFIG_SYS * | out | ) |
Writes the configuration values in the format that the memory card uses.
Definition at line 559 of file savedata.cpp.
| int CSaveData::InvertConfig | ( | SV_CONFIG_SYS * | in | ) |
Reads the configuration values from the memory card and returns zero if the copies do not agree.
Definition at line 580 of file savedata.cpp.
|
inline |
Returns the fishing points the player holds.
Definition at line 492 of file savedata.hpp.
|
inline |
Returns the state of the Mardan Garayan fishing quest.
Definition at line 495 of file savedata.hpp.
|
friend |
Definition at line 110 of file savedata.hpp.
|
friend |
Runs the player character for one editor frame.
Definition at line 1504 of file ebattle.cpp.
|
private |
Contains the configuration values.
Definition at line 118 of file savedata.hpp.
|
private |
Contains the name of each character, as sixteen-bit characters.
Definition at line 119 of file savedata.hpp.
|
private |
Map that the game resumes on.
Definition at line 120 of file savedata.hpp.
|
private |
Definition at line 121 of file savedata.hpp.
|
private |
Contains the time of day.
Definition at line 122 of file savedata.hpp.
|
private |
Contains the play time.
Definition at line 123 of file savedata.hpp.
|
private |
Contains the day count.
Definition at line 124 of file savedata.hpp.
|
private |
Contains the fishing points.
Definition at line 125 of file savedata.hpp.
|
private |
Contains the fishing leaderboard.
Definition at line 126 of file savedata.hpp.
|
private |
Definition at line 127 of file savedata.hpp.
|
private |
Contains the menu positions.
Definition at line 128 of file savedata.hpp.
|
private |
Contains the Georama data of each town.
Definition at line 129 of file savedata.hpp.
|
private |
Contains the chips of each town.
Definition at line 130 of file savedata.hpp.
|
private |
Contains the NPC slots that the sub-maps share.
Definition at line 131 of file savedata.hpp.
|
private |
Contains the dungeon status data.
Definition at line 136 of file savedata.hpp.
|
private |
Contains the stock inventory.
Definition at line 137 of file savedata.hpp.
|
private |
Contains the game flag bits.
Definition at line 138 of file savedata.hpp.
|
private |
Contains the game integer flags.
Definition at line 139 of file savedata.hpp.
|
private |
Contains the map flag bits of each map.
Definition at line 140 of file savedata.hpp.
|
private |
Contains the map initialization flag bits of each map.
Definition at line 141 of file savedata.hpp.
|
private |
Contains the visit count of each map.
Definition at line 142 of file savedata.hpp.
|
private |
Contains the quest count of each dungeon.
Definition at line 143 of file savedata.hpp.
|
private |
Number of Mardan Garayan caught.
Definition at line 144 of file savedata.hpp.
|
private |
Contains the quest count of all the dungeons.
Definition at line 145 of file savedata.hpp.
|
private |
Definition at line 146 of file savedata.hpp.