summaryrefslogtreecommitdiff
path: root/include/d/t/d_t_stream.h
blob: 9a52f1d9f2c24248503d5587d04ed32100b5f938 (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
#ifndef D_T_STREAM_H
#define D_T_STREAM_H

#include "d/t/d_tg.h"
#include "f/f_list_mg.h"
#include "f/f_list_nd.h"
#include "m/m_mtx.h"
#include "m/m_vec.h"

class dTgStream_c : public dTg_c {
public:
    dTgStream_c() : mStreamNode(this) {}
    virtual ~dTgStream_c() {}

    virtual int create() override;
    virtual int doDelete() override;
    virtual int actorExecute() override;

    // The following lists are defined in the dol
    static fLiMgBa_c sStreamList;
    static fLiMgBa_c sSandStreamList;

    void addToList(fLiMgBa_c &list);

    static bool getForce(const mVec3_c &position, mVec3_c &force, const fLiMgBa_c &list = sStreamList);

private:
    /* 0x0FC */ u8 mSceneflag; ///< Sceneflag to indicate when to flow
    /* 0x0FD */ u8 mAreaIdx;
    /* 0x0FE */ u8 mSpeed;
    /* 0x0FF */ u8 mOrder;
    /* 0x100 */ u8 mIsSand;
    /* 0x101 */ u8 field_0x101;
    /* 0x104 */ mMtx_c mArea;

    /* 0x134 */ fLiNdBa_c mStreamNode;
};

#endif