Subversion Repositories Games.Carmageddon

Rev

Rev 18 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. #ifndef _OPPOPROC_H_
  2. #define _OPPOPROC_H_
  3.  
  4. #include "brender/br_types.h"
  5. #include "dr_types.h"
  6.  
  7. int StraightestArcForCorner2D(br_vector2* pCent, br_scalar* pRadius, br_scalar* pEntry_length, int* pLeft_not_right, br_vector2* p1, br_vector2* p2, br_vector2* p3, br_scalar pWidth12, br_scalar pWidth23);
  8.  
  9. br_scalar CornerFudge(tCar_spec* pCar_spec);
  10.  
  11. br_scalar MaxCurvatureForCarSpeed(tCar_spec* pCar, br_scalar pSpeed);
  12.  
  13. br_scalar Vector2Cross(br_vector2* pA, br_vector2* pB);
  14.  
  15. tFollow_path_result EndOfPath(tOpponent_spec* pOpponent_spec);
  16.  
  17. int RoughlyColinear(br_vector2* p1, br_vector2* p2, br_vector2* p3);
  18.  
  19. int GetStraight(br_vector2* pStart, br_vector2* pFinish, br_scalar* pWidth, int section1, tOpponent_spec* pOpponent_spec, tFollow_path_data* data);
  20.  
  21. tFollow_path_result ProcessFollowPath(tOpponent_spec* pOpponent_spec, tProcess_objective_command pCommand, int pPursuit_mode, int pIgnore_end, int pNever_struggle);
  22.  
  23. tFollow_path_result FollowCheatyPath(tOpponent_spec* pOpponent_spec);
  24.  
  25. #endif
  26.