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

#include <map.hpp>

Public Member Functions

void Initialize ()
 
void Draw ()
 
CMapObject * SetObject (CFrameVu1 *frame, int category_no, int handle)
 
CMapObject * SetObject (int no, CFrameVu1 *frame, int category_no, int handle)
 
CMapObject * GetObject (int no)
 
void Initialize ()
 
CMapObject * SetObject (CFrameVu1 *frame, int category_no, int handle)
 
CMapObject * SetObject (int no, CFrameVu1 *frame, int category_no, int handle)
 
CMapObject * GetObject (int no)
 
void Draw ()
 
void Initialize ()
 
CMapObject * SetObject (CFrameVu1 *frame, int category_no, int handle)
 
CMapObject * SetObject (int index, CFrameVu1 *frame, int category_no, int handle)
 
CMapObject * GetObject (int index)
 
void Draw ()
 
void Initialize ()
 
CMapObject * SetObject (CFrameVu1 *frame, int category_no, int handle)
 
CMapObject * SetObject (int index, CFrameVu1 *frame, int category_no, int handle)
 
CMapObject * GetObject (int index)
 
void Draw ()
 
CMapObject * SetObject (int index, CFrameVu1 *frame, int category_no, int handle)
 
CMapObject * SetObject (CFrameVu1 *frame, int category_no, int handle)
 
CMapObject * GetObject (int index)
 
void Draw ()
 
void Initialize ()
 

Public Attributes

CategoryAttr category [16]
 
CMapObject object [10]
 
char unk_AE0 [16]
 
char unk_180 [2416]
 
char unk_00 [2800]
 
CMapCategoryAttr category [16]
 
s32 draw_on
 

Detailed Description

Owns the categories and scenery objects drawn by one map.

Definition at line 90 of file op_a.cpp.

Constructor & Destructor Documentation

◆ CMap()

CMap::CMap ( )
inline

Definition at line 96 of file op_a.cpp.

Member Function Documentation

◆ Initialize() [1/2]

void CMap::Initialize ( )

Definition at line 66 of file map.cpp.

◆ Draw() [1/2]

void CMap::Draw ( )

Definition at line 41 of file map.cpp.

◆ SetObject() [1/4]

CMapObject * CMap::SetObject ( CFrameVu1 *  frame,
int  category_no,
int  handle 
)

Definition at line 17 of file map.cpp.

◆ SetObject() [2/4]

CMapObject * CMap::SetObject ( int  no,
CFrameVu1 *  frame,
int  category_no,
int  handle 
)

Definition at line 3 of file map.cpp.

◆ GetObject() [1/2]

CMapObject * CMap::GetObject ( int  no)

Definition at line 33 of file map.cpp.

◆ SetObject() [3/4]

CMapObject * CMap::SetObject ( int  index,
CFrameVu1 *  frame,
int  category_no,
int  handle 
)
Mangled name:
SetObject__4CMapFiP9CFrameVu1ii
Address:
0x143870
Size:
0x74 Places a frame in a numbered object slot and returns that object, or null when the slot number is invalid.

◆ SetObject() [4/4]

CMapObject * CMap::SetObject ( CFrameVu1 *  frame,
int  category_no,
int  handle 
)
Mangled name:
SetObject__4CMapFP9CFrameVu1ii
Address:
0x1438F0
Size:
0x84 Places a frame in the first free object slot and returns that object, or null when every slot is occupied.

◆ GetObject() [2/2]

CMapObject * CMap::GetObject ( int  index)

Returns the map object in a numbered slot, or null for an invalid slot.

Mangled name:
GetObject__4CMapFi
Address:
0x143980
Size:
0x3C

◆ Draw() [2/2]

void CMap::Draw ( )
Mangled name:
Draw__4CMapFv
Address:
0x1439C0
Size:
0xD4 Draws every placed object, using its category's level-of-detail range when range selection is enabled.

◆ Initialize() [2/2]

void CMap::Initialize ( )
Mangled name:
Initialize__4CMapFv
Address:
0x143AA0
Size:
0xAC Resets the category ranges and every object slot to their defaults.

Member Data Documentation

◆ category [1/2]

CategoryAttr CMap::category

Category rows the scenery is sorted by.

Level-of-detail ranges for the map's object categories.

Definition at line 92 of file op_a.cpp.

◆ object

CMapObject CMap::object

Scenery pieces the map holds.

Scenery objects placed in this map.

Definition at line 93 of file op_a.cpp.

◆ unk_AE0

char CMap::unk_AE0[16]

Definition at line 94 of file op_a.cpp.

◆ unk_180

char CMap::unk_180[2416]

Definition at line 1377 of file opening.cpp.

◆ unk_00

char CMap::unk_00

Definition at line 177 of file rushmovi.cpp.

◆ category [2/2]

CMapCategoryAttr CMap::category[16]

Level-of-detail ranges for the map's object categories.

Definition at line 23 of file map.hpp.

◆ draw_on

s32 CMap::draw_on

Selects level-of-detail drawing when nonzero.

Definition at line 26 of file map.hpp.