DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
scfader.cpp
1
#include "title/scfader.hpp"
2
3
int
CScFader::In
() {
4
if
(
value
< 128) {
5
value
+= 2;
6
7
if
(
value
> 128) {
8
value
= 128;
9
}
10
11
return
0;
12
}
13
14
return
1;
15
}
16
17
int
CScFader::In2
() {
18
if
(
value
< 128) {
19
value
+= 8;
20
21
if
(
value
> 128) {
22
value
= 128;
23
}
24
25
return
0;
26
}
27
28
return
1;
29
}
30
31
int
CScFader::Out
() {
32
if
(
value
> -4) {
33
value
-= 2;
34
35
if
(
value
< -4) {
36
value
= -4;
37
}
38
39
return
0;
40
}
41
42
return
1;
43
}
44
45
int
CScFader::Get
(
int
limit) {
46
if
(
value
< limit) {
47
if
(
value
< 0) {
48
return
0;
49
}
50
51
return
value
;
52
}
53
54
return
limit;
55
}
56
57
void
CScFader::Skip
() {
58
value
= 128;
59
}
CScFader::Skip
void Skip()
Definition
scfader.cpp:57
CScFader::In
int In()
Definition
scfader.cpp:3
CScFader::In2
int In2()
Definition
scfader.cpp:17
CScFader::Get
int Get(int limit)
Definition
scfader.cpp:45
CScFader::value
int value
Definition
scfader.hpp:10
CScFader::Out
int Out()
Definition
scfader.cpp:31
ps2
src
title
scfader.cpp
Generated by
1.9.8