This commit is contained in:
Charles 2001-02-05 14:55:11 +00:00
parent 2a71836478
commit b9ccd83f66
7 changed files with 72 additions and 6 deletions

View file

@ -40,16 +40,17 @@ private:
NPC_PATH_TYPE pathType;
u8 waypointCount;
bool reversePath;
CNpcWaypoint *currentWaypoint;
CNpcWaypoint *lastWaypoint;
public:
CNpcWaypoint *currentWaypoint;
void initPath();
void addWaypoint( DVECTOR newPos );
void removeAllWaypoints();
void setPathType( NPC_PATH_TYPE newPathType );
bool incPath();
void resetPath();
void reversePathDir();
s32 think( DVECTOR currentPos, bool *pathComplete, bool *waypointChange );
bool getDistToNextWaypoint( DVECTOR currentPos, s32 *distX, s32 *distY );
};