|
DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
|
Go to the source code of this file.
Classes | |
| struct | ED_EVENT_PARAM |
| struct | ED_MOVE_CHARA_INFO |
| struct | EDIT_OBJECT_TIMER |
| struct | ED_EVENT_INFO |
| struct | DEPTH_OF_FIELD_INFO |
Enumerations | |
| enum | EdEventReturn { ED_EVENT_RETURN_NONE = 0 , ED_EVENT_RETURN_INTERIOR = 4 , ED_EVENT_RETURN_DUNGEON = 5 , ED_EVENT_RETURN_CONTINUE = 6 , ED_EVENT_RETURN_OUTSIDE = 7 , ED_EVENT_RETURN_MAP_JUMP = 8 , ED_EVENT_RETURN_TALK = 9 , ED_EVENT_RETURN_EXIT = 10 , ED_EVENT_RETURN_FISHING = 11 } |
| enum | EdMenuKind { ED_MENU_RESET = -1 , ED_MENU_NONE = 0 , ED_MENU_EDIT = 1 , ED_MENU_BATTLE = 2 , ED_MENU_SHOP = 3 , ED_MENU_UNK_4 = 4 , ED_MENU_USE_ITEM = 5 , ED_MENU_NAME_REGISTRY = 6 , ED_MENU_WORLD_MAP = 7 , ED_MENU_FISHING_EXCHANGE = 8 , ED_MENU_CHANGE_ESA = 9 , ED_MENU_FISH_RANKING = 10 } |
| enum | ED_SOUND_ID { ED_SOUND_NONE , ED_SOUND_COUNT = 15 } |
Functions | |
| STATIC_ASSERT (sizeof(ED_EVENT_PARAM)==0x60) | |
| STATIC_ASSERT (sizeof(ED_MOVE_CHARA_INFO)==0xb0) | |
| STATIC_ASSERT (sizeof(EDIT_OBJECT_TIMER)==0x20) | |
| STATIC_ASSERT (sizeof(ED_EVENT_INFO)==0x450) | |
| int | EdEventMode (CCameraFollow *camera, int kind) |
| void | EdInitCameraParam (CCameraFollow *camera) |
| void | EdAmbientPlay (float time) |
| void | EdSetAmbientVol (float volume) |
| void | GetEditDataDir (char *name) |
| void | EdDDebug (int on) |
| void | EdDSetFont (CDebugFont *font) |
| void | EdDDrawFont () |
| void | EdDCheck () |
| void | EdOutPutFile () |
| void | EdDPrintVector (char *name, float *vector) |
| void | EdDPrint (char *text) |
| void | EdDMoveCamera (float *position, float *reference) |
| void | EdDMoveCameraRef (float *position, float *reference) |
| void | EdDMoveChara (CCharacter *character, CCamera *camera) |
| void | EdInitSoundSrc () |
| void | EdPlaySoundSrc () |
| void | EdStopSoundSrc () |
| void | EdSetSoundSrcVol (float time, CMapParts **parts, int count, float *camera_pos, float *camera_dir) |
| void | EdDoorOpenSe (int door_no, float *position) |
| void | EdDoorCloseSe (int door_no, float *position) |
| void | EdSetDOFLevel (int level) |
| void | EdSetDOF (DEPTH_OF_FIELD_INFO *info) |
| void | EdDrawDOF (int level) |
| void | EdInitThunderEffect () |
| void | EdThunderEffect (int map, CEditGround *ground) |
| void | EdDrawCharacter (CCharacter *player, int player_draw_mask, int npc_count, CNPCharacter *npcs, int *npc_draw_masks, int draw_shadows, ED_EVENT_INFO *event) |
| void | EnterPartsEffect (CMapParts *parts, EPARTS_FUNC_DATA *func_data, EDIT_EFFECT_INFO *effects, int count) |
| void | EdUseItemInit () |
| void | EdSetUseItem (int *items) |
| void | EdGetItemFile (int item_no, char *model_path, char *texture_path) |
| void | EdDrawItem () |
| int | EdGetUseItem () |
| void | EdSetNameRegChara (int character) |
| void | EdSetShopNo (int shop) |
| int | EdInitMenu (int mode) |
| int | EdInitModeFinish (CCamera *camera, CTexture *texture) |
| void | EdExitMenu () |
| int | EdMenuMode () |
| void | EdGetItem (int item, int count, int attachment) |
| int | EdAddMaxItem (int amount) |
| int | EdCheckItemOver () |
| void | EdClearItemOverFlag () |
| int | EdCheckItem (int item) |
| void | EdSetSoundOffCount (int count) |
| int | EdCheckGetItem (int item) |
| void | EdSetSystemMes (int mes_no, int count, int position, int input_key, int *args, int value) |
| void | EdSetHelpMes (int mes_no, int count, int position, int *args, int value) |
| void | EdClearSystemMes () |
| int | EdSystemMesCheck () |
| void | EdSystemMesStep () |
| void | EdSystemMesDraw () |
| void | EdEditMainHelpMes (int building) |
| void | EdWalkToEditMes (int wait) |
| void | EdEditBuildHelpMes (int part_no) |
| void | EdEditMoveHelpMes () |
| void | EdFishingWalkHelpMes (int bait) |
| void | EdFishingAngleHelpMEs (int bait) |
| void | EdFishingLostEsaMes () |
| void | EdItemGetMes (int item, int kind, int attachment, int duration) |
| void | EdInitOpenItemBox (CFrameVu1 *frame, CFrameVu1 *base) |
| void | EdSetOpenItemBox (float *position, float *rotation) |
| void | EdStepOpenItemBox () |
| void | EdDrawOpenItemBox () |
| float | ConvertTime (float hour) |
| float | InvertTime (float time) |
| int | EdCheckViewMode () |
| void | EdCreateVillagerTable (EDIT_MAP_INFO *info) |
| void | EdEventPointDraw (ED_EVENT_POINT *points, int count, float time) |
| int | EdGetDoorMotion (int door_no, int state) |
| int | EdInitEventParam () |
| int | EdInitEventPoint (CMapParts *parts, short *indices, EPARTS_FUNC_DATA *functions, int function_count, ED_EVENT_POINT *points, int point_count) |
| void | EdInitHashigo (ED_EVENT_INFO *info, ED_EVENT_PARAM *param) |
| int | EdInitGotoInterior (ED_EVENT_INFO *info, ED_EVENT_PARAM *param) |
| int | EdMenuLoop (ClsMes *message) |
| int | EdInitToEPInfo (INIT_PARTSINFO *init, EPARTS_INFO_HEADER *header) |
| void | EdInitVillagerControl () |
| void | EdInitVillagerTable (float clock, EDIT_MAP_INFO *info) |
| void | EdMoveChara () |
| void | EdMoveCharaInit () |
| void | EdMoveVillager (VILLAGER_INFO *villagers) |
| void | EdMoveVillagerSubMap (VILLAGER_INFO *villagers) |
| void | EdSaveFrameImageTask () |
| void | EdSaveFrameImageInit () |
| void | EdSePlay (ED_SOUND_ID sound, int pan) |
| int | EdSearchEvent (ED_EVENT_PARAM *param, char *name, int map_no, float time) |
| void | EdSetBgmVol (float time) |
| void | EdSetLightParam (float clock, int fixed, EDIT_MAP_INFO *info, CFrameVu1 *sky) |
| void | EdDrawSky (float clock, CFrameVu1 **sky, CFrame **sun, CFrameVu1 *clouds, CCamera *camera, int *follow_axes) |
| int | EdTalkMode (CCharacter *player, CCameraFollow *camera, int mode, int *selection) |
| void | LimitEditCursorPos (float *position, float *movement) |
Declares the shared editor helpers implemented by retail editetc.cpp.
Definition in file edit.hpp.
| enum EdEventReturn |
What a town event asks for when it ends, as ED_EVENT_INFO::return_code holds it.
| enum EdMenuKind |
Menus a town script can open, as EdInitMenu takes them.
| enum ED_SOUND_ID |
| int EdEventMode | ( | CCameraFollow * | camera, |
| int | kind | ||
| ) |
Steps the editor's event system, and says what the event asks the loop to do.
Steps the editor's event system and reports the action requested by the script.
Definition at line 8688 of file editloop3.cpp.
| void EdInitCameraParam | ( | CCameraFollow * | camera | ) |
Puts the camera back on the parameters the editor uses outside events.
Definition at line 1407 of file ebattle.cpp.
| void EdAmbientPlay | ( | float | time | ) |
| void EdSetAmbientVol | ( | float | volume | ) |
| void GetEditDataDir | ( | char * | name | ) |
Writes the root directory used by editor map resources.
Copies the current editor resource directory into a caller buffer.
Definition at line 320 of file editloop.cpp.
| void EdDDebug | ( | int | on | ) |
| void EdDSetFont | ( | CDebugFont * | font | ) |
| void EdDDrawFont | ( | ) |
| void EdDCheck | ( | ) |
| void EdOutPutFile | ( | ) |
| void EdDPrintVector | ( | char * | name, |
| float * | vector | ||
| ) |
| void EdDPrint | ( | char * | text | ) |
| void EdDMoveCamera | ( | float * | position, |
| float * | reference | ||
| ) |
| void EdDMoveCameraRef | ( | float * | position, |
| float * | reference | ||
| ) |
| void EdDMoveChara | ( | CCharacter * | character, |
| CCamera * | camera | ||
| ) |
| void EdInitSoundSrc | ( | ) |
| void EdPlaySoundSrc | ( | ) |
| void EdStopSoundSrc | ( | ) |
| void EdSetSoundSrcVol | ( | float | time, |
| CMapParts ** | parts, | ||
| int | count, | ||
| float * | camera_pos, | ||
| float * | camera_dir | ||
| ) |
| void EdDoorOpenSe | ( | int | door_no, |
| float * | position | ||
| ) |
| void EdDoorCloseSe | ( | int | door_no, |
| float * | position | ||
| ) |
| void EdSetDOFLevel | ( | int | level | ) |
| void EdSetDOF | ( | DEPTH_OF_FIELD_INFO * | info | ) |
| void EdDrawDOF | ( | int | level | ) |
| void EdInitThunderEffect | ( | ) |
| void EdThunderEffect | ( | int | map, |
| CEditGround * | ground | ||
| ) |
| void EdDrawCharacter | ( | CCharacter * | player, |
| int | player_draw_mask, | ||
| int | npc_count, | ||
| CNPCharacter * | npcs, | ||
| int * | npc_draw_masks, | ||
| int | draw_shadows, | ||
| ED_EVENT_INFO * | event | ||
| ) |
| void EnterPartsEffect | ( | CMapParts * | parts, |
| EPARTS_FUNC_DATA * | func_data, | ||
| EDIT_EFFECT_INFO * | effects, | ||
| int | count | ||
| ) |
| void EdUseItemInit | ( | ) |
| void EdSetUseItem | ( | int * | items | ) |
| void EdGetItemFile | ( | int | item_no, |
| char * | model_path, | ||
| char * | texture_path | ||
| ) |
| void EdDrawItem | ( | ) |
| int EdGetUseItem | ( | ) |
| void EdSetNameRegChara | ( | int | character | ) |
| void EdSetShopNo | ( | int | shop | ) |
| int EdInitMenu | ( | int | mode | ) |
| void EdExitMenu | ( | ) |
| int EdMenuMode | ( | ) |
| void EdGetItem | ( | int | item, |
| int | count, | ||
| int | attachment | ||
| ) |
| int EdAddMaxItem | ( | int | amount | ) |
| int EdCheckItemOver | ( | ) |
| void EdClearItemOverFlag | ( | ) |
| int EdCheckItem | ( | int | item | ) |
| void EdSetSoundOffCount | ( | int | count | ) |
Sets the number of event sound channels which remain disabled.
Sets the editor sound-suppression counter within its valid range.
Definition at line 2016 of file editmapscript.cpp.
| int EdCheckGetItem | ( | int | item | ) |
| void EdSetSystemMes | ( | int | mes_no, |
| int | count, | ||
| int | position, | ||
| int | input_key, | ||
| int * | args, | ||
| int | value | ||
| ) |
| void EdSetHelpMes | ( | int | mes_no, |
| int | count, | ||
| int | position, | ||
| int * | args, | ||
| int | value | ||
| ) |
| void EdClearSystemMes | ( | ) |
| int EdSystemMesCheck | ( | ) |
| void EdSystemMesStep | ( | ) |
| void EdSystemMesDraw | ( | ) |
| void EdEditMainHelpMes | ( | int | building | ) |
| void EdWalkToEditMes | ( | int | wait | ) |
| void EdEditBuildHelpMes | ( | int | part_no | ) |
| void EdEditMoveHelpMes | ( | ) |
| void EdFishingWalkHelpMes | ( | int | bait | ) |
| void EdFishingAngleHelpMEs | ( | int | bait | ) |
| void EdFishingLostEsaMes | ( | ) |
| void EdItemGetMes | ( | int | item, |
| int | kind, | ||
| int | attachment, | ||
| int | duration | ||
| ) |
| void EdSetOpenItemBox | ( | float * | position, |
| float * | rotation | ||
| ) |
| void EdStepOpenItemBox | ( | ) |
| void EdDrawOpenItemBox | ( | ) |
| float ConvertTime | ( | float | hour | ) |
| float InvertTime | ( | float | time | ) |
| int EdCheckViewMode | ( | ) |
Gives back which of the editor views is on screen.
Definition at line 1453 of file ebattle.cpp.
| void EdCreateVillagerTable | ( | EDIT_MAP_INFO * | info | ) |
Builds the villager table a map description asks for.
Definition at line 673 of file editloop3.cpp.
| void EdEventPointDraw | ( | ED_EVENT_POINT * | points, |
| int | count, | ||
| float | time | ||
| ) |
Draws the markers of the event points active at the given time.
Definition at line 394 of file editloop3.cpp.
| int EdGetDoorMotion | ( | int | door_no, |
| int | state | ||
| ) |
| int EdInitEventParam | ( | ) |
Clears the parameters an editor event script reads.
Definition at line 8442 of file editloop3.cpp.
| int EdInitEventPoint | ( | CMapParts * | parts, |
| short * | indices, | ||
| EPARTS_FUNC_DATA * | functions, | ||
| int | function_count, | ||
| ED_EVENT_POINT * | points, | ||
| int | point_count | ||
| ) |
Fills the event points one map-parts entry describes.
Definition at line 122 of file editloop3.cpp.
| void EdInitHashigo | ( | ED_EVENT_INFO * | info, |
| ED_EVENT_PARAM * | param | ||
| ) |
Copies ladder endpoints and event parameters into the active event.
Definition at line 2817 of file ebattle.cpp.
| int EdInitGotoInterior | ( | ED_EVENT_INFO * | info, |
| ED_EVENT_PARAM * | param | ||
| ) |
Prepares the event that walks the player into an interior.
Definition at line 2834 of file ebattle.cpp.
| int EdMenuLoop | ( | ClsMes * | message | ) |
| int EdInitToEPInfo | ( | INIT_PARTSINFO * | init, |
| EPARTS_INFO_HEADER * | header | ||
| ) |
Copies a parts-info header into the editor parts record.
Definition at line 2249 of file editloop3.cpp.
| void EdInitVillagerControl | ( | ) |
Clears what the editor knows about villager movement.
Definition at line 665 of file editloop3.cpp.
| void EdInitVillagerTable | ( | float | clock, |
| EDIT_MAP_INFO * | info | ||
| ) |
Fills the villager table for one time of day.
Definition at line 708 of file editloop3.cpp.
| void EdMoveChara | ( | ) |
Runs the player character for one editor frame.
Definition at line 112 of file ebattle.cpp.
| void EdMoveCharaInit | ( | ) |
Clears the editor movement state before a map runs.
Definition at line 1414 of file ebattle.cpp.
| void EdMoveVillager | ( | VILLAGER_INFO * | villagers | ) |
Runs one villager for a frame on the current map.
Advances and positions the selected villagers on the editable town map.
Definition at line 1379 of file editloop3.cpp.
| void EdMoveVillagerSubMap | ( | VILLAGER_INFO * | villagers | ) |
Runs one villager for a frame on the interior map.
Definition at line 1511 of file editloop3.cpp.
| void EdSaveFrameImageTask | ( | ) |
| void EdSaveFrameImageInit | ( | ) |
| void EdSePlay | ( | ED_SOUND_ID | sound, |
| int | pan | ||
| ) |
Plays one of the editor sound effects.
Definition at line 2609 of file editloop3.cpp.
| int EdSearchEvent | ( | ED_EVENT_PARAM * | param, |
| char * | name, | ||
| int | map_no, | ||
| float | time | ||
| ) |
Finds the event a name and a range select.
Definition at line 512 of file editloop3.cpp.
| void EdSetBgmVol | ( | float | time | ) |
| void EdSetLightParam | ( | float | clock, |
| int | fixed, | ||
| EDIT_MAP_INFO * | info, | ||
| CFrameVu1 * | sky | ||
| ) |
Applies a map description lighting preset to a frame.
Definition at line 2114 of file editloop3.cpp.
| void EdDrawSky | ( | float | clock, |
| CFrameVu1 ** | sky, | ||
| CFrame ** | sun, | ||
| CFrameVu1 * | clouds, | ||
| CCamera * | camera, | ||
| int * | follow_axes | ||
| ) |
Draws the editor sky dome, celestial layers, and their time-of-day transitions.
Definition at line 1757 of file editloop3.cpp.
| int EdTalkMode | ( | CCharacter * | player, |
| CCameraFollow * | camera, | ||
| int | mode, | ||
| int * | selection | ||
| ) |
Runs the talking-to-a-villager mode for a frame.
Runs the talking-to-a-villager mode for one frame.
Camera offsets from the speakers' midpoint for each of the three talk-camera views.
Definition at line 9324 of file editloop3.cpp.
| void LimitEditCursorPos | ( | float * | position, |
| float * | movement | ||
| ) |
Holds the edit cursor inside the area the map allows.
Definition at line 2432 of file editloop3.cpp.
| ED_EVENT_INFO EdEventInfo |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |