|
DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
|
#include <camerafollow.hpp>
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 |
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.
| 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.
Definition at line 144 of file camerafollow.cpp.
|
virtual |
Definition at line 155 of file camerafollow.cpp.
| CCameraFollow & CCameraFollow::operator= | ( | const CCameraFollow & | src | ) |
Copies the position, the distance and the height of another camera.
Definition at line 79 of file camerafollow.cpp.
|
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.
Reimplemented from CCamera.
Definition at line 11 of file camerafollow.cpp.
|
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.
Reimplemented from CCamera.
Definition at line 70 of file camerafollow.cpp.
| void CCameraFollow::SetFollow | ( | float | x, |
| float | y, | ||
| float | z | ||
| ) |
Sets the world position that the eye circles.
Definition at line 89 of file camerafollow.cpp.
| void CCameraFollow::FollowOn | ( | ) |
Makes the eye circle the position again.
Definition at line 95 of file camerafollow.cpp.
| void CCameraFollow::FollowOff | ( | ) |
Leaves the eye where it is, and makes it take the angle that the base camera measures.
Definition at line 99 of file camerafollow.cpp.
| void CCameraFollow::SetAngle | ( | float | angle | ) |
Sets the angle that the eye turns to, which it reaches over several steps.
Definition at line 103 of file camerafollow.cpp.
| 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.
Definition at line 107 of file camerafollow.cpp.
| float CCameraFollow::GetAngle | ( | ) |
Returns the angle that the eye is at now.
Definition at line 112 of file camerafollow.cpp.
| void CCameraFollow::AddAngle | ( | float | delta | ) |
Adds to the angle that the eye turns to.
Definition at line 116 of file camerafollow.cpp.
| void CCameraFollow::SetDistance | ( | float | distance | ) |
Sets the distance from the eye to the position that it circles.
Definition at line 120 of file camerafollow.cpp.
| float CCameraFollow::GetDistance | ( | ) |
Returns the distance from the eye to the position that it circles.
Definition at line 124 of file camerafollow.cpp.
| void CCameraFollow::AddDistance | ( | float | delta | ) |
Adds to the distance from the eye to the position that it circles.
Definition at line 128 of file camerafollow.cpp.
| void CCameraFollow::SetHeight | ( | float | height | ) |
Sets the height of the eye above the position that it circles.
Definition at line 132 of file camerafollow.cpp.
| float CCameraFollow::GetHeight | ( | ) |
Returns the height of the eye above the position that it circles.
Definition at line 136 of file camerafollow.cpp.
| void CCameraFollow::AddHeight | ( | float | delta | ) |
Adds to the height of the eye above the position that it circles.
Definition at line 140 of file camerafollow.cpp.
| float CCameraFollow::follow[4] |
World position that the eye circles and looks at.
Definition at line 17 of file camerafollow.hpp.
| float CCameraFollow::distance |
Distance from the eye to the position, on the horizontal plane.
Definition at line 18 of file camerafollow.hpp.
| float CCameraFollow::height |
Height of the eye above the position.
Definition at line 19 of file camerafollow.hpp.
| float CCameraFollow::next_angle |
Angle, in radians, that the eye turns to.
Definition at line 20 of file camerafollow.hpp.
| float CCameraFollow::angle |
Angle, in radians, of the eye about the position.
Definition at line 21 of file camerafollow.hpp.
| 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.