|
DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
|
#include <object.hpp>
Public Member Functions | |
| 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 | SetMoment (CVector3_f_ moment) |
| virtual void | SetRotation (CVector3_f_ rotation) |
| virtual void | SetRotation (float x, float y, float z) |
| virtual void | SetRotation (float *rotation) |
| virtual void | SetRotVelocity (CVector3_f_ rot_velocity) |
| virtual void | SetRotAcceleration (CVector3_f_ rot_acceleration) |
| 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 | |
| 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] |
Places one object in the world.
Definition at line 14 of file object.hpp.
| CObject::CObject | ( | float | mass = 1.0f | ) |
Makes an object of a mass, and puts it at rest at the world origin.
Definition at line 180 of file object.cpp.
|
virtual |
Steps the object. The base object does nothing.
Reimplemented in CCharacter, CHitMark, and CNPCharacter.
Definition at line 13 of file object.cpp.
| float CObject::GetDistance | ( | CObject & | other | ) |
Gets the distance between this object and another.
Definition at line 16 of file object.cpp.
| void CObject::GetDir | ( | CObject & | other, |
| float * | out_direction | ||
| ) |
Gets the direction from this object to another.
Definition at line 25 of file object.cpp.
|
virtual |
Sets the mass of the object.
Definition at line 34 of file object.cpp.
|
virtual |
Puts the object at a world position.
Reimplemented in CCharacter.
Definition at line 38 of file object.cpp.
|
virtual |
Puts the object at a world position.
Reimplemented in CCharacter, and CMapParts.
Definition at line 11 of file savedata.cpp.
|
virtual |
Puts the object at a world position.
Reimplemented in CCharacter, and CMapParts.
Definition at line 44 of file object.cpp.
|
virtual |
Sets the distance that the position moves each step.
Definition at line 50 of file object.cpp.
|
virtual |
Sets the distance that the velocity gains each step.
Definition at line 54 of file object.cpp.
|
virtual |
Sets the part of the velocity that gravity gives.
Definition at line 58 of file object.cpp.
|
virtual |
Sets the moment of inertia about each axis.
Reimplemented in CObjectFrame.
Definition at line 62 of file object.cpp.
|
virtual |
Turns the object to an angle about each axis.
Reimplemented in CCharacter, and CObjectFrame.
Definition at line 66 of file object.cpp.
|
virtual |
Turns the object to an angle about each axis.
Reimplemented in CCharacter, CMapParts, and CObjectFrame.
Definition at line 70 of file object.cpp.
|
virtual |
Turns the object to an angle about each axis.
Reimplemented in CCharacter.
Definition at line 76 of file object.cpp.
|
virtual |
Sets the angle that the rotation turns each step.
Reimplemented in CObjectFrame.
Definition at line 82 of file object.cpp.
|
virtual |
Sets the angle that the rotational velocity gains each step.
Reimplemented in CObjectFrame.
Definition at line 86 of file object.cpp.
|
virtual |
Gets the mass of the object.
Definition at line 90 of file object.cpp.
|
virtual |
Gets the world position of the object.
Definition at line 94 of file object.cpp.
|
virtual |
Gets the distance that the position moves each step.
Definition at line 100 of file object.cpp.
|
virtual |
Gets the distance that the velocity gains each step.
Definition at line 104 of file object.cpp.
|
virtual |
Gets the part of the velocity that gravity gives.
Definition at line 108 of file object.cpp.
|
virtual |
Gets the moment of inertia about each axis.
Definition at line 112 of file object.cpp.
|
virtual |
Gets the angle of the object about each axis.
Definition at line 116 of file object.cpp.
|
virtual |
Gets the angle of the object about each axis.
Definition at line 122 of file object.cpp.
|
virtual |
Gets the angle that the rotation turns each step.
Definition at line 126 of file object.cpp.
|
virtual |
Gets the angle that the rotational velocity gains each step.
Definition at line 130 of file object.cpp.
|
virtual |
Gets the distance that the position moves each step.
Definition at line 134 of file object.cpp.
|
virtual |
Gets the distance that the velocity gains each step.
Definition at line 138 of file object.cpp.
|
virtual |
Gets the part of the velocity that gravity gives.
Definition at line 142 of file object.cpp.
|
virtual |
Gets the moment of inertia about each axis.
Definition at line 146 of file object.cpp.
|
virtual |
Gets the angle of the object about each axis.
Definition at line 150 of file object.cpp.
|
virtual |
Gets the angle that the rotation turns each step.
Definition at line 154 of file object.cpp.
|
virtual |
Gets the angle that the rotational velocity gains each step.
Definition at line 158 of file object.cpp.
|
virtual |
Sets the scale of the object along each axis.
Reimplemented in CCharacter.
Definition at line 162 of file object.cpp.
|
virtual |
Sets the scale of the object along each axis.
Reimplemented in CCharacter.
Definition at line 168 of file object.cpp.
|
virtual |
Gets the scale of the object along each axis.
Definition at line 174 of file object.cpp.
| void CObject::Initialize | ( | float | mass | ) |
Sets the mass of the object, puts it at the world origin at rest, and gives it a moment and a scale of one.
Definition at line 184 of file object.cpp.
| float CObject::mass |
Mass of the object.
Definition at line 16 of file object.hpp.
| float CObject::unk_004[3] |
Definition at line 17 of file object.hpp.
| float CObject::pos[4] |
World position of the object.
Definition at line 18 of file object.hpp.
| CVector3_f_ CObject::velocity |
Distance that the position moves each step.
Definition at line 19 of file object.hpp.
| CVector3_f_ CObject::acceleration |
Distance that the velocity gains each step.
Definition at line 20 of file object.hpp.
| CVector3_f_ CObject::gravity |
Part of the velocity that gravity gives.
Definition at line 21 of file object.hpp.
| CVector3_f_ CObject::moment |
Moment of inertia about each axis.
Definition at line 22 of file object.hpp.
| CVector3_f_ CObject::rotation |
Angle, in radians, about each axis.
Definition at line 23 of file object.hpp.
| CVector3_f_ CObject::rot_velocity |
Angle that the rotation turns each step.
Definition at line 24 of file object.hpp.
| CVector3_f_ CObject::rot_acceleration |
Angle that the rotational velocity gains each step.
Definition at line 25 of file object.hpp.
| float CObject::scale[4] |
Scale of the object along each axis.
Definition at line 26 of file object.hpp.