blob: cb207254ea51eb32e1337767aaceae67b4eb59b0 (
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
|
/**
* c_bg_s_lin_chk.cpp
*
*/
#include "SSystem/SComponent/c_bg_s_lin_chk.h"
#include "f_pc/f_pc_manager.h"
cBgS_LinChk::cBgS_LinChk() {
ct();
}
cBgS_LinChk::~cBgS_LinChk() {}
void cBgS_LinChk::ct() {
cXyz start_end(cXyz::Zero);
mLin.SetStartEnd(start_end, start_end);
field_0x40 = start_end;
SetActorPid(fpcM_ERROR_PROCESS_ID_e);
mStts = 0;
mFrontFlag = 1;
mBackFlag = 0;
}
void cBgS_LinChk::Set2(cXyz const* startPos, cXyz const* endPos, unsigned int actorPid) {
mLin.SetStartEnd(*startPos, *endPos);
field_0x40 = *endPos;
SetActorPid(actorPid);
mStts &= ~STTS_HIT;
ClearCheckIndex();
}
void cBgS_LinChk::PreCalc() {
mPreWallChk = !ChkSttsWallOff();
mPreGroundChk = !ChkSttsGroundOff();
mPreRoofChk = !ChkSttsRoofOff();
}
|