This commit is contained in:
parent
3eabd82c8e
commit
8470b76ba1
7 changed files with 85 additions and 22 deletions
|
@ -41,16 +41,18 @@ class CNpcPath
|
|||
private:
|
||||
CNpcWaypoint waypoint[NPC_MAX_WAYPOINTS];
|
||||
NPC_PATH_TYPE pathType;
|
||||
u8 currentWaypoint;
|
||||
u8 waypointCount;
|
||||
u8 lastWaypoint;
|
||||
bool reversePath;
|
||||
|
||||
public:
|
||||
u8 currentWaypoint;
|
||||
|
||||
void initPath();
|
||||
void addWaypoint( DVECTOR newPos );
|
||||
void setPathType( NPC_PATH_TYPE newPathType );
|
||||
bool incPath();
|
||||
s32 think( DVECTOR currentPos, bool *pathComplete );
|
||||
s32 think( DVECTOR currentPos, bool *pathComplete, bool *waypointChange );
|
||||
bool getDistToNextWaypoint( DVECTOR currentPos, s32 *distX, s32 *distY );
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue