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

#include <mapobject.hpp>

Inheritance diagram for CMapObject:
CObjectFrame CObjectFrame CObjectFrame CObjectFrame CObjectFrame CObjectFrame CObjectFrame CObjectFrame CMapParts

Public Member Functions

virtual void Draw ()
 
void Initialize ()
 
void DrawShadow (int unknown0)
 
virtual void Draw ()
 
void Initialize ()
 
void DrawShadow (int fast)
 
virtual void Draw ()
 
void Initialize ()
 
void DrawShadow (int fast)
 
virtual void Draw ()
 
void Initialize ()
 
void DrawShadow (int fast)
 
virtual void Draw ()
 
void Initialize ()
 
void DrawShadow (int fast)
 
virtual void Draw ()
 
void Initialize ()
 
void DrawShadow (int fast)
 
virtual void Draw ()
 
void Initialize ()
 
void DrawShadow (int fast)
 
CFrame * GetCollisionFrame ()
 
virtual void FrameObjectOnOff (char *name, int on)
 
virtual void Draw ()
 
virtual void DrawLOD (float *distance, int lowest, int highest, int *out_level)
 
void DrawShadow (int fast)
 
void DrawShade ()
 
void Initialize ()
 
 CMapObject ()
 
- Public Member Functions inherited from CObjectFrame
void SetFrame (CFrameVu1 *frame, int unknown0)
 
void SetFrame (CFrameVu1 *frame, int level)
 
void SetFrame (CFrameVu1 *frame, int level)
 
void SetFrame (CFrameVu1 *frame, int level)
 
void SetFrame (CFrameVu1 *frame, int level)
 
void SetFrame (CFrameVu1 *frame, int level)
 
void SetFrame (CFrameVu1 *frame, int level)
 
virtual void SetMoment (CVector3_f_ moment)
 
virtual void SetRotation (CVector3_f_ rotation)
 
virtual void SetRotation (float x, float y, float z)
 
virtual void SetRotVelocity (CVector3_f_ rot_velocity)
 
virtual void SetRotAcceleration (CVector3_f_ rot_acceleration)
 
void SetFrame (CFrameVu1 *frame, int level)
 
void Initialize (CFrameVu1 *frame)
 
 CObjectFrame ()
 
- Public Member Functions inherited from CObject
CObject & operator= (const CObject &source)
 
virtual void Step ()
 
float GetDistance (CObject &other)
 
void GetDir (CObject &other, float *out_direction)
 
virtual void SetMass (float mass)
 
virtual void SetPosition (CVector3_f_ position)
 
virtual void SetPosition (float *position)
 
virtual void SetPosition (float x, float y, float z)
 
virtual void SetVelocity (CVector3_f_ velocity)
 
virtual void SetAcceleration (CVector3_f_ acceleration)
 
virtual void SetGravity (CVector3_f_ gravity)
 
virtual void SetRotation (float *rotation)
 
virtual float GetMass ()
 
virtual void GetPosition (CVector3_f_ *out_position)
 
virtual void GetVelocity (CVector3_f_ *out_velocity)
 
virtual void GetAcceleration (CVector3_f_ *out_acceleration)
 
virtual void GetGravity (CVector3_f_ *out_gravity)
 
virtual void GetMoment (CVector3_f_ *out_moment)
 
virtual void GetRotation (float *out_rotation)
 
virtual void GetRotation (CVector3_f_ *out_rotation)
 
virtual void GetRotVelocity (CVector3_f_ *out_rot_velocity)
 
virtual void GetRotAcceleration (CVector3_f_ *out_rot_acceleration)
 
virtual CVector3_f_ * GetVelocity ()
 
virtual CVector3_f_ * GetAcceleration ()
 
virtual CVector3_f_ * GetGravity ()
 
virtual CVector3_f_ * GetMoment ()
 
virtual CVector3_f_ * GetRotation ()
 
virtual CVector3_f_ * GetRotVelocity ()
 
virtual CVector3_f_ * GetRotAcceleration ()
 
virtual void SetScale (float x, float y, float z)
 
virtual void SetScale (float *scale)
 
virtual void GetScale (float *out_scale)
 
 CObject (float mass=1.0f)
 
void Initialize (float mass)
 

Public Attributes

CFrameVu1 * collision_frame
 
CFrameVu1 * shadow_frame
 
CFrameVu1 * shade_frame
 
CFrameVu1 * camera_frame
 
float shadow_offset
 
int unk_34
 
int handle
 
char unk_EC [4]
 
char unk_3C [4]
 
CFrameVu1 * unk_D4
 
float unk_E0
 
int unk_E4
 
int unk_E8
 
int category_no
 
char unk_18 [36]
 
char unk_4C [8]
 
CFrame * collision_frame
 
CFrame * shadow_frame
 
CFrame * shade_frame
 
CFrame * camera_frame
 
s32 category_no
 
s32 handle
 
s32 unk_0EC
 
- Public Attributes inherited from CObjectFrame
CFrameVu1 * frame [4]
 
s32 rotation_changed
 
s32 draw_on
 
- Public Attributes inherited from CObject
float mass
 
float unk_004 [3]
 
float pos [4]
 
CVector3_f_ velocity
 
CVector3_f_ acceleration
 
CVector3_f_ gravity
 
CVector3_f_ moment
 
CVector3_f_ rotation
 
CVector3_f_ rot_velocity
 
CVector3_f_ rot_acceleration
 
float scale [4]
 

Detailed Description

Draws one object of a map, together with the shadow it casts, the shade that lies on it and the shape that collision reads.

Definition at line 88 of file op_b.cpp.

Constructor & Destructor Documentation

◆ CMapObject() [1/2]

CMapObject::CMapObject ( )

Definition at line 167 of file mapobject.cpp.

◆ CMapObject() [2/2]

CMapObject::CMapObject ( )

Makes an object that a map has yet to place.

Mangled name:
__ct__10CMapObjectFv
Address:
0x157970
Size:
0x6C

Member Function Documentation

◆ Draw() [1/8]

void CMapObject::Draw ( )
virtual

Reimplemented from CObjectFrame.

Definition at line 78 of file mapobject.cpp.

◆ Initialize() [1/2]

void CMapObject::Initialize ( )

Definition at line 157 of file mapobject.cpp.

◆ DrawShadow() [1/2]

void CMapObject::DrawShadow ( int  unknown0)

Definition at line 108 of file mapobject.cpp.

◆ Draw() [2/8]

virtual void CMapObject::Draw ( )
virtual

Reimplemented from CObjectFrame.

◆ Draw() [3/8]

virtual void CMapObject::Draw ( )
virtual

Reimplemented from CObjectFrame.

◆ Draw() [4/8]

virtual void CMapObject::Draw ( )
virtual

Reimplemented from CObjectFrame.

◆ Draw() [5/8]

virtual void CMapObject::Draw ( )
virtual

Reimplemented from CObjectFrame.

◆ Draw() [6/8]

virtual void CMapObject::Draw ( )
virtual

Reimplemented from CObjectFrame.

◆ Draw() [7/8]

virtual void CMapObject::Draw ( )
virtual

Reimplemented from CObjectFrame.

◆ GetCollisionFrame()

CFrame * CMapObject::GetCollisionFrame ( )

Puts the collision frame where the object is and gives it back.

Mangled name:
GetCollisionFrame__10CMapObjectFv
Address:
0x1574F0
Size:
0x98

Definition at line 12 of file mapobject.cpp.

◆ FrameObjectOnOff()

void CMapObject::FrameObjectOnOff ( char *  name,
int  on 
)
virtual

Turns a named part of every frame the object holds on or off.

Mangled name:
FrameObjectOnOff__10CMapObjectFPci
Address:
0x157590
Size:
0x124

Reimplemented from CObjectFrame.

Reimplemented in CMapParts.

Definition at line 27 of file mapobject.cpp.

◆ Draw() [8/8]

virtual void CMapObject::Draw ( )
virtual

Draws the object.

Mangled name:
Draw__10CMapObjectFv
Address:
0x1576C0
Size:
0x38

Reimplemented from CObjectFrame.

◆ DrawLOD()

void CMapObject::DrawLOD ( float *  distance,
int  lowest,
int  highest,
int *  out_level 
)
virtual

Draws the object at the level of detail that suits its distance from the eye, and gives back the level that it drew.

Mangled name:
DrawLOD__10CMapObjectFPfiiPi
Address:
0x157700
Size:
0x58

Reimplemented from CObjectFrame.

Reimplemented in CMapParts.

Definition at line 90 of file mapobject.cpp.

◆ DrawShadow() [2/2]

void CMapObject::DrawShadow ( int  fast)

Drops the shadow of the object onto the ground below it.

Mangled name:
DrawShadow__10CMapObjectFi
Address:
0x157760
Size:
0x10C

◆ DrawShade()

void CMapObject::DrawShade ( )

Draws the shade that lies on the object.

Mangled name:
DrawShade__10CMapObjectFv
Address:
0x157870
Size:
0x94

Definition at line 139 of file mapobject.cpp.

◆ Initialize() [2/2]

void CMapObject::Initialize ( )

Puts the object at rest at the world origin with no frame of its own.

Mangled name:
Initialize__10CMapObjectFv
Address:
0x157910
Size:
0x54

Member Data Documentation

◆ collision_frame [1/2]

CFrameVu1 * CMapObject::collision_frame

Frame that collision reads; zero where the object has none.

Definition at line 90 of file op_b.cpp.

◆ shadow_frame [1/2]

CFrameVu1 * CMapObject::shadow_frame

Model the object's shadow is drawn from.

Model the object's shadow is drawn from; zero where it casts none.

Definition at line 91 of file op_b.cpp.

◆ shade_frame [1/2]

CFrameVu1 * CMapObject::shade_frame

Frame that the shade draws from; zero where the object takes none.

Definition at line 92 of file op_b.cpp.

◆ camera_frame [1/2]

CFrameVu1 * CMapObject::camera_frame

Collision frame the camera reads; zero where the object has none.

Definition at line 93 of file op_b.cpp.

◆ shadow_offset

float CMapObject::shadow_offset

Height the shadow drops below the object.

Height that the shadow drops below the object.

Definition at line 94 of file op_b.cpp.

◆ unk_34

int CMapObject::unk_34

Map category the object is sorted under.

Category of map part the object belongs to.

Category row of the map the object draws with.

Definition at line 95 of file op_b.cpp.

◆ handle [1/2]

int CMapObject::handle

Map handle; below zero leaves the object undrawn.

Handle the map gave the object.

Handle the map gave the object; below zero where the slot is free.

Definition at line 96 of file op_b.cpp.

◆ unk_EC

char CMapObject::unk_EC

Definition at line 97 of file op_b.cpp.

◆ unk_3C

char CMapObject::unk_3C

Definition at line 93 of file op_c.cpp.

◆ unk_D4

CFrameVu1 * CMapObject::unk_D4

Definition at line 1350 of file opening.cpp.

◆ unk_E0

float CMapObject::unk_E0

Definition at line 1353 of file opening.cpp.

◆ unk_E4

int CMapObject::unk_E4

Definition at line 122 of file rushmovi.cpp.

◆ unk_E8

int CMapObject::unk_E8

Definition at line 123 of file rushmovi.cpp.

◆ category_no [1/2]

int CMapObject::category_no

Category the map filed the object under.

Definition at line 134 of file title.cpp.

◆ unk_18

char CMapObject::unk_18[36]

Definition at line 151 of file titleloop.cpp.

◆ unk_4C

char CMapObject::unk_4C[8]

Definition at line 153 of file titleloop.cpp.

◆ collision_frame [2/2]

CFrame* CMapObject::collision_frame

Frame that collision reads; zero where the object has none.

Definition at line 24 of file mapobject.hpp.

◆ shadow_frame [2/2]

CFrame* CMapObject::shadow_frame

Frame that the shadow draws from; zero where the object casts none.

Definition at line 25 of file mapobject.hpp.

◆ shade_frame [2/2]

CFrame* CMapObject::shade_frame

Frame that the shade draws from; zero where the object takes none.

Definition at line 26 of file mapobject.hpp.

◆ camera_frame [2/2]

CFrame* CMapObject::camera_frame

Collision frame the camera reads; zero where the object has none.

Definition at line 27 of file mapobject.hpp.

◆ category_no [2/2]

s32 CMapObject::category_no

Category whose level-of-detail range and draw pass the object uses; below zero for a free slot.

Definition at line 29 of file mapobject.hpp.

◆ handle [2/2]

s32 CMapObject::handle

Handle the map gave the object; below zero where the slot is free.

Definition at line 30 of file mapobject.hpp.

◆ unk_0EC

s32 CMapObject::unk_0EC

Definition at line 31 of file mapobject.hpp.