summaryrefslogtreecommitdiff
path: root/include/d/d_path.h
blob: 9c83e611d9885d2ab6b5ad9a320e7315e6b35553 (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
#ifndef D_PATH_H
#define D_PATH_H

#include "d/d_bg_s.h"
#include "dolphin/types.h"

struct dPnt {
    /* 0x00 */ u8 mArg0;
    /* 0x01 */ u8 mArg1;
    /* 0x02 */ u8 mArg2;
    /* 0x03 */ u8 mArg3;
    /* 0x04 */ cXyz m_position;
};

struct dPath {
    /* 0x00 */ u16 m_num;
    /* 0x02 */ u16 m_nextID;
    /* 0x04 */ u8 mArg0;
    /* 0x05 */ u8 m_closed;
    /* 0x06 */ u8 field4_0x6;
    /* 0x07 */ u8 field5_0x7;
    /* 0x08 */ dPnt* m_points;
};

inline BOOL dPath_ChkClose(dPath* i_path) { return (i_path->m_closed & 1) != 0; }

dPath* dPath_GetRoomPath(int, int);
dPath* dPath_GetNextRoomPath(dPath*, int);
dPnt* dPath_GetPnt(dPath*, int);
bool dPath_GetPolyRoomPathVec(cBgS_PolyInfo&, cXyz*, int*);

#endif /* D_PATH_H */