summaryrefslogtreecommitdiff
path: root/include/d/d_detect.h
blob: 1cacf15ce99e3ebc7b23e0ec5b735c775b92097f (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
#ifndef D_D_DETECT_H
#define D_D_DETECT_H

#include "SSystem/SComponent/c_xyz.h"

class dDetectPlace_c {
public:
    dDetectPlace_c();
    ~dDetectPlace_c();
    bool chk_enable() const;

    /* 0x00 */ cXyz mPos;
    /* 0x0C */ s16 mTimer;
};

class dDetect_c {
public:
    struct Attr_c {
        /* 0x00 */ f32 maxDistXZ;
        /* 0x04 */ f32 maxY;
        /* 0x08 */ f32 minY;
    };

    dDetect_c();
    ~dDetect_c();

    void proc();
    bool chk_quake(const cXyz*) const;
    void set_quake(const cXyz*);
    bool chk_quake_area(const cXyz*) const;
    static void* search_tag_light(void*, void*);
    bool chk_light(const cXyz*) const;
    bool chk_attention(cXyz*) const;

    inline const Attr_c& attr() const { return M_attr; }

    static const Attr_c M_attr;

    /* 0x00 */ dDetectPlace_c mPlace[1];
    /* 0x10 */ s16 mTimer;
};  // Size: 0x14

#endif /* D_D_DETECT_H */