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

#include <camerafollow.hpp>

Inheritance diagram for CCameraFollow:
CCamera

Public Member Functions

CCameraFollow & operator= (const CCameraFollow &src)
 
virtual void Step (int steps)
 
virtual void Stay ()
 
void SetFollow (float x, float y, float z)
 
void FollowOn ()
 
void FollowOff ()
 
void SetAngle (float angle)
 
void SetAngleSoon (float angle)
 
float GetAngle ()
 
void AddAngle (float delta)
 
void SetDistance (float distance)
 
float GetDistance ()
 
void AddDistance (float delta)
 
void SetHeight (float height)
 
float GetHeight ()
 
void AddHeight (float delta)
 
 CCameraFollow (float distance, float height, float angle, float speed)
 
virtual ~CCameraFollow ()
 
- Public Member Functions inherited from CCamera
void SetPos (CFrame *parent, float x, float y, float z)
 
void SetPos (float *pos)
 
void SetNextPos (CFrame *parent, float x, float y, float z)
 
void SetRef (CFrame *parent, float x, float y, float z)
 
void SetRef (float *ref)
 
void SetRef (float x, float y, float z)
 
void SetNextRef (CFrame *parent, float x, float y, float z)
 
void GetDir (float *dir)
 
void GetCameraMatrix (float(*matrix)[4])
 
void SetSpeed (float speed)
 
void SetRoll (float roll)
 
void GetPos (float *pos)
 
void GetRef (float *ref)
 
float GetAngleH ()
 
float GetRoll ()
 
 CCamera (float speed)
 
virtual ~CCamera ()
 

Public Attributes

float follow [4]
 
float distance
 
float height
 
float next_angle
 
float angle
 
s32 follow_on
 
- Public Attributes inherited from CCamera
CFrame frame
 
float pos [4]
 
float ref [4]
 
float next_pos [4]
 
float next_ref [4]
 
float roll
 
s32 limit_move
 
float speed
 
float angle_h
 
float angle_v
 
float snap_range
 

Additional Inherited Members

- Static Public Attributes inherited from CCamera
static s32 StopCamera
 

Detailed Description

Follows a point in the world, keeping the eye on that point. The eye sits on a circle about the point, at a set height and distance.

Definition at line 15 of file camerafollow.hpp.

Constructor & Destructor Documentation

◆ CCameraFollow()

CCameraFollow::CCameraFollow ( float  distance,
float  height,
float  angle,
float  speed 
)

Puts the eye on the circle that the given distance, height and angle describe, about the origin.

Mangled name:
__ct__13CCameraFollowFffff
Address:
0x124BF0
Size:
0x88

Definition at line 144 of file camerafollow.cpp.

◆ ~CCameraFollow()

CCameraFollow::~CCameraFollow ( )
virtual
Mangled name:
__dt__13CCameraFollowFv
Address:
0x124C80
Size:
0x70

Definition at line 155 of file camerafollow.cpp.

Member Function Documentation

◆ operator=()

CCameraFollow & CCameraFollow::operator= ( const CCameraFollow &  src)

Copies the position, the distance and the height of another camera.

Mangled name:
__as__13CCameraFollowFRC13CCameraFollow
Address:
0x124AA0
Size:
0x3C

Definition at line 79 of file camerafollow.cpp.

◆ Step()

void CCameraFollow::Step ( int  steps)
virtual

Turns the eye one or more steps towards the angle that it turns to, and puts the eye and the look-at point where the circle wants them. A step count below zero turns the eye at once.

Mangled name:
Step__13CCameraFollowFi
Address:
0x1247D0
Size:
0x27C

Reimplemented from CCamera.

Definition at line 11 of file camerafollow.cpp.

◆ Stay()

void CCameraFollow::Stay ( )
virtual

Puts the position that the eye circles onto the point that the eye looks at, and the angle that the eye turns to onto its angle, so that nothing moves.

Mangled name:
Stay__13CCameraFollowFv
Address:
0x124A50
Size:
0x50

Reimplemented from CCamera.

Definition at line 70 of file camerafollow.cpp.

◆ SetFollow()

void CCameraFollow::SetFollow ( float  x,
float  y,
float  z 
)

Sets the world position that the eye circles.

Mangled name:
SetFollow__13CCameraFollowFfff
Address:
0x124AE0
Size:
0x14

Definition at line 89 of file camerafollow.cpp.

◆ FollowOn()

void CCameraFollow::FollowOn ( )

Makes the eye circle the position again.

Mangled name:
FollowOn__13CCameraFollowFv
Address:
0x124B00
Size:
0x10

Definition at line 95 of file camerafollow.cpp.

◆ FollowOff()

void CCameraFollow::FollowOff ( )

Leaves the eye where it is, and makes it take the angle that the base camera measures.

Mangled name:
FollowOff__13CCameraFollowFv
Address:
0x124B10
Size:
0xC

Definition at line 99 of file camerafollow.cpp.

◆ SetAngle()

void CCameraFollow::SetAngle ( float  angle)

Sets the angle that the eye turns to, which it reaches over several steps.

Mangled name:
SetAngle__13CCameraFollowFf
Address:
0x124B20
Size:
0xC

Definition at line 103 of file camerafollow.cpp.

◆ SetAngleSoon()

void CCameraFollow::SetAngleSoon ( float  angle)

Sets the angle of the eye, and the angle that it turns to, so that the eye moves at once.

Mangled name:
SetAngleSoon__13CCameraFollowFf
Address:
0x124B30
Size:
0x10

Definition at line 107 of file camerafollow.cpp.

◆ GetAngle()

float CCameraFollow::GetAngle ( )

Returns the angle that the eye is at now.

Mangled name:
GetAngle__13CCameraFollowFv
Address:
0x124B40
Size:
0xC

Definition at line 112 of file camerafollow.cpp.

◆ AddAngle()

void CCameraFollow::AddAngle ( float  delta)

Adds to the angle that the eye turns to.

Mangled name:
AddAngle__13CCameraFollowFf
Address:
0x124B50
Size:
0x14

Definition at line 116 of file camerafollow.cpp.

◆ SetDistance()

void CCameraFollow::SetDistance ( float  distance)

Sets the distance from the eye to the position that it circles.

Mangled name:
SetDistance__13CCameraFollowFf
Address:
0x124B70
Size:
0xC

Definition at line 120 of file camerafollow.cpp.

◆ GetDistance()

float CCameraFollow::GetDistance ( )

Returns the distance from the eye to the position that it circles.

Mangled name:
GetDistance__13CCameraFollowFv
Address:
0x124B80
Size:
0xC

Definition at line 124 of file camerafollow.cpp.

◆ AddDistance()

void CCameraFollow::AddDistance ( float  delta)

Adds to the distance from the eye to the position that it circles.

Mangled name:
AddDistance__13CCameraFollowFf
Address:
0x124B90
Size:
0x14

Definition at line 128 of file camerafollow.cpp.

◆ SetHeight()

void CCameraFollow::SetHeight ( float  height)

Sets the height of the eye above the position that it circles.

Mangled name:
SetHeight__13CCameraFollowFf
Address:
0x124BB0
Size:
0xC

Definition at line 132 of file camerafollow.cpp.

◆ GetHeight()

float CCameraFollow::GetHeight ( )

Returns the height of the eye above the position that it circles.

Mangled name:
GetHeight__13CCameraFollowFv
Address:
0x124BC0
Size:
0xC

Definition at line 136 of file camerafollow.cpp.

◆ AddHeight()

void CCameraFollow::AddHeight ( float  delta)

Adds to the height of the eye above the position that it circles.

Mangled name:
AddHeight__13CCameraFollowFf
Address:
0x124BD0
Size:
0x14

Definition at line 140 of file camerafollow.cpp.

Member Data Documentation

◆ follow

float CCameraFollow::follow[4]

World position that the eye circles and looks at.

Definition at line 17 of file camerafollow.hpp.

◆ distance

float CCameraFollow::distance

Distance from the eye to the position, on the horizontal plane.

Definition at line 18 of file camerafollow.hpp.

◆ height

float CCameraFollow::height

Height of the eye above the position.

Definition at line 19 of file camerafollow.hpp.

◆ next_angle

float CCameraFollow::next_angle

Angle, in radians, that the eye turns to.

Definition at line 20 of file camerafollow.hpp.

◆ angle

float CCameraFollow::angle

Angle, in radians, of the eye about the position.

Definition at line 21 of file camerafollow.hpp.

◆ follow_on

s32 CCameraFollow::follow_on

1 while the eye circles the position; 0 leaves the eye where it is.

Definition at line 22 of file camerafollow.hpp.