summaryrefslogtreecommitdiff
path: root/include/d/col/c/c_bg_s_lin_chk.h
blob: 5cbd38de8fd749be90661b35ca4ca5de7a1f4cd5 (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
61
62
63
64
65
66
67
68
#ifndef C_BG_S_LIN_CHK_H
#define C_BG_S_LIN_CHK_H

#include "d/col/c/c_bg_s_chk.h"
#include "d/col/c/c_bg_s_poly_info.h"
#include "d/col/c/c_m3d_g_lin.h"

class cBgS_LinChk : public cBgS_Chk, public cBgS_PolyInfo {
public:
    /* 0x54 */ cM3dGLin mLin;
    /* 0x6C */ mVec3_c field_0x6C;
    /* 0x78 */ bool mFrontFlag;
    /* 0x79 */ bool mBackFlag;
    /* 0x7A */ bool mHit;
    /* 0x7B */ bool mPreRoofChk;
    /* 0x7C */ bool mPreWallChk;
    /* 0x7D */ bool mPreGroundChk;

    cBgS_LinChk();
    virtual ~cBgS_LinChk();
    virtual void SetEnd(const mVec3_c *);

    void Ct();
    void Set2(const mVec3_c &, const mVec3_c &, u32);

    bool ChkHit() const {
        return mHit;
    }
    void ClrHit() {
        mHit = false;
    }
    void SetHit() {
        mHit = true;
    }
    bool ChkBackFlag() const {
        return mBackFlag;
    }
    void OnBackFlag() {
        mBackFlag = true;
    }
    bool ChkFrontFlag() const {
        return mFrontFlag;
    }
    void OnFrontFlag() {
        mFrontFlag = true;
    }
    bool GetPreWallChk() const {
        return mPreWallChk;
    }
    bool GetPreGroundChk() const {
        return mPreGroundChk;
    }
    void SetPreRoofChk(bool b) {
        mPreRoofChk = b;
    }
    bool GetPreRoofChk() const {
        return mPreRoofChk;
    }

    const mVec3_c &GetLinStart() const {
        return mLin.mStart;
    }
    const mVec3_c &GetLinEnd() const {
        return mLin.mEnd;
    }
};

#endif