summaryrefslogtreecommitdiff
path: root/include/d/t/d_t_sound_area.h
blob: 2f2cee1435d1903e8ef24153d2114c13fbf3b43a (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
#ifndef D_T_SOUND_AREA_H
#define D_T_SOUND_AREA_H

#include "d/t/d_tg.h"
#include "m/m_mtx.h"
#include "m/m_vec.h"
#include "toBeSorted/d_path.h"

class dTgSndAr_c : public dTg_c {
public:
    dTgSndAr_c() {}
    virtual ~dTgSndAr_c() {}
    virtual int draw() override;
    virtual int actorExecute() override;
    virtual int doDelete() override;
    virtual int create() override;

private:
    int getTypeFromParams() {
        return mParams >> 0x1C;
    }
    bool checkPosInArea(mVec3_c &pos);

    bool checkAlg0(const mVec3_c &pos);
    bool checkAlg1(const mVec3_c &pos);
    bool checkAlg2(const mVec3_c &pos);
    bool checkAlg3(const mVec3_c &pos);

    mMtx_c mtx;
    dPath_c mRail;
};

#endif