blob: e7b35c8f9c574a565fb6992b57b5ee47d9e3fdfe (
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
|
/**
* c_bg_s_chk.cpp
*
*/
#include "SSystem/SComponent/c_bg_s_chk.h"
#include "f_pc/f_pc_manager.h"
cBgS_Chk::cBgS_Chk() {
mPolyPassChk = NULL;
mGrpPassChk = NULL;
mSameActorChk = true;
}
cBgS_Chk::~cBgS_Chk() {}
void cBgS_Chk::SetExtChk(cBgS_Chk& other) {
mPolyPassChk = other.mPolyPassChk;
mGrpPassChk = other.mGrpPassChk;
mActorPid = other.mActorPid;
mSameActorChk = other.mSameActorChk;
}
bool cBgS_Chk::ChkSameActorPid(fpc_ProcID pid) const {
if (mActorPid == fpcM_ERROR_PROCESS_ID_e || pid == fpcM_ERROR_PROCESS_ID_e || !mSameActorChk) {
return FALSE;
} else if (mActorPid == pid) {
return TRUE;
} else {
return FALSE;
}
}
|