home *** CD-ROM | disk | FTP | other *** search
/ AI Game Programming Wisdom / AIGameProgrammingWisdom.iso / SourceCode / 09 Racing and Sports AI / 04 Adzima / aiObstacle.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-11-14  |  815 b   |  33 lines

  1. #ifndef AI_OBSTACLE_H
  2. #define AI_OBSTACLE_H
  3.  
  4. class Vector3;
  5. class Matrix34;
  6. class aiPath;
  7.  
  8. class aiObstacle
  9. {
  10.     public:
  11.         aiObstacle(float Front,float Back,float LSide,float RSide,Matrix34 *pMatrix);
  12.         ~aiObstacle();
  13.  
  14.         bool IsBlockingTarget(Vector3& Pos,Vector3& Target,float fMaxDist,float fVWidth);
  15.         void PreAvoid(const Vector3& Pos,const Vector3& Heading,float fVehHWidth,Vector3& LTarget,Vector3& RTarget);
  16.         int  CurrentRoadIdx(aiPath **ppRoads,bool baDir[3],int *pnVIdx);
  17.  
  18.         void Position(Vector3& Pos);
  19.         aiObstacle* NextObstacle();    // return the next obstacle in the current chain.
  20.  
  21.     protected:
  22.         Matrix34 *m_pMatrix;
  23.  
  24.         float m_fFrontBumperDistance;
  25.         float m_fBackBumperDistance;
  26.         float m_fLSideDistance;
  27.         float m_fRSideDistance;
  28.  
  29.         aiObstacle *m_pNObstacle;
  30. };
  31.  
  32. #endif
  33.