DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
bound.hpp
1
#pragma once
2
3
#include "common.h"
4
5
#include <libvu0.h>
6
10
// clang-format off
11
enum
BoundFollowMode {
12
BOUND_FOLLOW_NONE = 0,
13
BOUND_FOLLOW_FRAME = 1,
14
BOUND_FOLLOW_SPAN = 2,
15
};
16
17
// clang-format on
18
19
// Forward declarations for the types these declarations name. The skeleton
20
// headers are generated from the retail symbol table, which knows the type
21
// names but not where they live.
22
class
CFrame
;
23
27
class
CBound
{
28
public
:
29
CBound
*
next
;
30
s32
mask_bit
;
31
u8 unk_08[8];
32
sceVu0FVECTOR
extent
;
33
sceVu0FVECTOR
reciprocal
;
34
float
friction
;
35
u8 unk_34[12];
36
sceVu0FMATRIX
matrix
;
37
sceVu0FMATRIX
inverse
;
38
sceVu0FVECTOR
position
;
39
sceVu0FVECTOR
direction
;
40
s32
follow_mode
;
41
CFrame
*
from_frame
;
42
CFrame
*
to_frame
;
43
u8 unk_EC[4];
44
sceVu0FVECTOR
from
;
45
sceVu0FVECTOR
to
;
46
sceVu0FVECTOR
up
;
47
float
to_stretch
;
48
float
from_stretch
;
57
virtual
int
Sizeof
();
58
66
virtual
int
InCheck
(
float
*point,
float
*result);
67
76
void
SetDir
(
CFrame
*frame,
float
*from_position,
float
*to_position,
float
*up_direction,
float
half_width,
float
half_height);
77
85
void
ChangeDir
(
float
*from_position,
float
*to_position,
float
*up_direction);
86
95
void
UpDateDir
();
96
105
void
SetDir
(
float
*
direction
,
float
*up_direction);
106
115
void
SetDir
(
float
*
direction
);
116
125
void
UpDateDirPos
();
126
134
void
UpDate
();
135
143
void
InitParam
();
144
153
CBound
(
float
half_width,
float
half_height,
float
half_depth);
154
};
155
156
STATIC_ASSERT(
sizeof
(
CBound
) == 0x130);
CBound
Definition
bound.hpp:27
CBound::inverse
sceVu0FMATRIX inverse
Definition
bound.hpp:37
CBound::direction
sceVu0FVECTOR direction
Definition
bound.hpp:39
CBound::from_frame
CFrame * from_frame
Definition
bound.hpp:41
CBound::UpDateDir
void UpDateDir()
Definition
bound.cpp:118
CBound::to
sceVu0FVECTOR to
Definition
bound.hpp:45
CBound::Sizeof
virtual int Sizeof()
Definition
dispctrl.cpp:38
CBound::follow_mode
s32 follow_mode
Definition
bound.hpp:40
CBound::ChangeDir
void ChangeDir(float *from_position, float *to_position, float *up_direction)
Definition
bound.cpp:112
CBound::InitParam
void InitParam()
Definition
bound.cpp:291
CBound::next
CBound * next
Definition
bound.hpp:29
CBound::to_stretch
float to_stretch
Definition
bound.hpp:47
CBound::UpDateDirPos
void UpDateDirPos()
Definition
bound.cpp:216
CBound::to_frame
CFrame * to_frame
Definition
bound.hpp:42
CBound::extent
sceVu0FVECTOR extent
Definition
bound.hpp:32
CBound::UpDate
void UpDate()
Definition
bound.cpp:276
CBound::position
sceVu0FVECTOR position
Definition
bound.hpp:38
CBound::InCheck
virtual int InCheck(float *point, float *result)
Definition
bound.cpp:25
CBound::from
sceVu0FVECTOR from
Definition
bound.hpp:44
CBound::friction
float friction
Definition
bound.hpp:34
CBound::SetDir
void SetDir(CFrame *frame, float *from_position, float *to_position, float *up_direction, float half_width, float half_height)
Definition
bound.cpp:86
CBound::from_stretch
float from_stretch
Definition
bound.hpp:48
CBound::mask_bit
s32 mask_bit
Definition
bound.hpp:30
CBound::reciprocal
sceVu0FVECTOR reciprocal
Definition
bound.hpp:33
CBound::up
sceVu0FVECTOR up
Definition
bound.hpp:46
CBound::matrix
sceVu0FMATRIX matrix
Definition
bound.hpp:36
CFrame
Definition
frame.hpp:58
ps2
include
bound.hpp
Generated by
1.9.8