NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
d_wm_en_path.hpp
1#pragma once
2#include <game/bases/d_wm_connect.hpp>
3#include <game/mLib/m_vec.hpp>
5
6/// @unofficial
8 const char *mpName;
9 int mIndex;
10 int mPointIndex;
11 dWmPathPoint_s *mpNext;
12 dWmPathPoint_s *mpPrev;
13};
14
15class dWmEnPath_c {
16public:
17 dWmEnPath_c();
18 virtual ~dWmEnPath_c();
19
20 /// @unofficial
21 bool init(const char **names, int count, dWmConnect_c *connect, bool cyclic, PATH_DIRECTION_e dir);
22
23 void SetStartPoint(int index);
24 int GetNextPointIdx();
25 int GetPathPointNo(const char *name);
26 dWmPathPoint_s *GetNextPointInfo(bool updateDirection);
27 void UpdatePoint();
28 bool isPointIn(int pointIndex);
29
31 dWmPathPoint_s *mpCurrentPoint;
32 PATH_DIRECTION_e mDir1;
33 PATH_DIRECTION_e mDir2;
34 bool mAdvancePoint;
35};
bool init(const char **names, int count, dWmConnect_c *connect, bool cyclic, PATH_DIRECTION_e dir)
#define WM_ENEMY_PATH_MAX_POINT_COUNT
The maximum number of keypoints for world map enemy paths.