blob: 8d6f273d66b09910d26471571f3f8d1659550a62 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
/**
* c_bg_s_poly_info.cpp
*
*/
#include "SSystem/SComponent/c_bg_s_poly_info.h"
#include "JSystem/JUtility/JUTAssert.h"
cBgS_PolyInfo::cBgS_PolyInfo() {
ClearPi();
}
cBgS_PolyInfo::~cBgS_PolyInfo() {}
bool cBgS_PolyInfo::ChkSetInfo() const {
if (mPolyIndex == 0xFFFF || mBgIndex == 0x100) {
return false;
} else {
return true;
}
}
void cBgS_PolyInfo::ClearPi() {
mPolyIndex = -1;
mBgIndex = 0x100;
unk_0x04 = 0;
mActorId = -1;
}
void cBgS_PolyInfo::SetPolyInfo(const cBgS_PolyInfo& poly) {
*this = poly;
}
void cBgS_PolyInfo::SetActorInfo(int bg_index, void* p_data, fpc_ProcID actor_id) {
JUT_ASSERT(74, 0 <= bg_index);
mBgIndex = bg_index;
unk_0x04 = p_data;
mActorId = actor_id;
}
bool cBgS_PolyInfo::ChkSafe(const void* param_1, fpc_ProcID actor_id) const {
if (unk_0x04 == param_1 && mActorId == actor_id) {
return true;
} else {
return false;
}
}
void cBgS_PolyInfo::SetPolyIndex(int poly_index) {
JUT_ASSERT(103, 0 <= poly_index);
mPolyIndex = poly_index;
}
bool cBgS_PolyInfo::ChkBgIndex() const {
if (mBgIndex == 0x100) {
return false;
}
return true;
}
|