DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
main.hpp File Reference

Go to the source code of this file.

Enumerations

enum  GameMode {
  GAME_MODE_TITLE = 0 , GAME_MODE_RUSH_MOVIE = 1 , GAME_MODE_EDIT = 2 , GAME_MODE_DUNGEON = 3 ,
  GAME_MODE_UNUSED_4 = 4 , GAME_MODE_OPENING = 5 , GAME_MODE_UNUSED_6 = 6 , GAME_MODE_MENU = 7 ,
  GAME_MODE_UNUSED_8 = 8 , GAME_MODE_LOADER = 9 , GAME_MODE_MEMORY_CHECK = 10 , GAME_MODE_TRIAL_END = 11 ,
  GAME_MODE_UNUSED_12 = 12 , GAME_MODE_SAVE = 13 , GAME_MODE_LANGUAGE = 14
}
 

Functions

void * __ct__10CCharacterFv (void *self)
 
void * __ct__13CTextureAnimeFv (void *self)
 
void * __ct__7CObjectFv (void *self)
 
void * GeneratedMotionParamCtor (void *self)
 

Variables

s32 main_select_menu_no
 
short * SystemMes
 
int MapNo
 
sceVu0FVECTOR ambientlight
 
sceVu0FMATRIX light
 
sceVu0FMATRIX lightcolor
 
char gamemode_empty_string []
 

Detailed Description

Declarations of what ps2/src/main.cpp defines for the rest of the game.

Definition in file main.hpp.

Enumeration Type Documentation

◆ GameMode

enum GameMode

What the main loop runs; each mode loads its overlay and calls its own initialise and step functions.

Enumerator
GAME_MODE_TITLE 

Title screen (TitleInit, TitleLoop).

GAME_MODE_RUSH_MOVIE 

Attract movie before the title (RushInit).

GAME_MODE_EDIT 

Towns and the Georama editor (EditInit, EditLoop).

GAME_MODE_DUNGEON 

Dungeons (GameInit, GameLoop).

GAME_MODE_UNUSED_4 

Never entered; loads the dungeon overlay.

GAME_MODE_OPENING 

Opening movie (OpeningInit).

GAME_MODE_UNUSED_6 

Never entered; does nothing.

GAME_MODE_MENU 

Developer menu (MenuInit, MenuLoop).

GAME_MODE_UNUSED_8 

Never entered; does nothing.

GAME_MODE_LOADER 

Loads a dungeon before entering it (LoaderInit).

GAME_MODE_MEMORY_CHECK 

Memory card check at start-up (MemCheckInit).

GAME_MODE_TRIAL_END 

End of the trial version (TrialEndInit).

GAME_MODE_UNUSED_12 

Never entered; does nothing.

GAME_MODE_SAVE 

Save screen (InitSave, LoopSave).

GAME_MODE_LANGUAGE 

Language select (LangsetInit).

Definition at line 16 of file main.hpp.

Function Documentation

◆ __ct__10CCharacterFv()

void * __ct__10CCharacterFv ( void *  self)

Default constructor of CCharacter, written out by hand for the arrays main builds.

Mangled name:
__ct__10CCharacterFv
Address:
0x143530
Size:
0xd4

Constructs a character with no model, motion or texture animation.

Mangled name:
__ct__10CCharacterFv
Address:
0x143530
Size:
0xD4

Definition at line 1789 of file main.cpp.

◆ __ct__13CTextureAnimeFv()

void * __ct__13CTextureAnimeFv ( void *  self)

Default constructor of CTextureAnime, written out by hand for the arrays main builds.

Mangled name:
__ct__13CTextureAnimeFv
Address:
0x143620
Size:
0x28

Constructs a texture animation with no data attached.

Mangled name:
__ct__13CTextureAnimeFv
Address:
0x143620
Size:
0x28

Definition at line 1822 of file main.cpp.

◆ __ct__7CObjectFv()

void * __ct__7CObjectFv ( void *  self)

Default constructor of CObject, written out by hand for the arrays main builds.

Mangled name:
__ct__7CObjectFv
Address:
0x143650
Size:
0x28

Constructs an object at the origin with an identity transform.

Mangled name:
__ct__7CObjectFv
Address:
0x143650
Size:
0x28

Definition at line 1833 of file main.cpp.

◆ GeneratedMotionParamCtor()

void * GeneratedMotionParamCtor ( void *  self)

Default constructor of MotionParam under the name main's array constructors call it by.

Mangled name:
__ct__11MotionParamFv
Address:
0x143610
Size:
0xc

Variable Documentation

◆ main_select_menu_no

s32 main_select_menu_no
extern

Which entry the main menu has the cursor on.

Definition at line 130 of file main.cpp.

◆ SystemMes

short* SystemMes
extern

The system messages every message window shares.

Definition at line 135 of file main.cpp.

◆ MapNo

int MapNo
extern

Map the game is on or about to load.

Definition at line 131 of file main.cpp.

◆ ambientlight

sceVu0FVECTOR ambientlight
extern

Initial ambient-light colour used by the renderer.

Definition at line 369 of file main.cpp.

◆ light

sceVu0FMATRIX light
extern

Initial parallel-light direction matrix used by the renderer.

Definition at line 353 of file main.cpp.

◆ lightcolor

sceVu0FMATRIX lightcolor
extern

Initial parallel-light colour matrix used by the renderer.

Definition at line 361 of file main.cpp.

◆ gamemode_empty_string

char gamemode_empty_string[]
extern

Empty string the game-mode table names modes without a file by.