mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-24 11:22:39 +01:00
c40d40bd22
- moved necessary data to new sources - running intro with TOMB5 HLE emulator
65 lines
2.5 KiB
C
65 lines
2.5 KiB
C
#ifndef CIV_AI_H
|
|
#define CIV_AI_H
|
|
|
|
|
|
extern int InitCar(struct _CAR_DATA *cp, int direction, long (*startPos)[4], unsigned char control, int model, int palette, char *extraData); // 0x00023DE8
|
|
|
|
extern struct _CAR_DATA * FindClosestCar(int x, int y, int z, int *distToCarSq); // 0x0002D11C
|
|
|
|
extern int NotTravellingAlongCurve(int x, int z, int dir, struct DRIVER2_CURVE *cv); // 0x0002D24C
|
|
|
|
extern void CivCarFX(struct _CAR_DATA *cp); // 0x0002D084
|
|
|
|
extern int GetNextRoadInfo(struct _CAR_DATA *cp, int randomExit, int *turnAngle, int *startDist, struct CIV_ROUTE_ENTRY *oldNode); // 0x00024028
|
|
|
|
extern void InitNodeList(struct _CAR_DATA *cp, char *extraData); // 0x00026964
|
|
|
|
extern int GetNodePos(struct DRIVER2_STRAIGHT *straight, struct DRIVER2_JUNCTION *junction, struct DRIVER2_CURVE *curve, int distAlongPath, struct _CAR_DATA *cp, int *x, int *z, int laneNo); // 0x00026CAC
|
|
|
|
extern int CheckChangeLanes(struct DRIVER2_STRAIGHT *straight, struct DRIVER2_CURVE *curve, int distAlongSegment, struct _CAR_DATA *cp, int tryToPark); // 0x00026F20
|
|
|
|
extern int CreateNewNode(struct _CAR_DATA *cp); // 0x00027530
|
|
|
|
extern int InitCivState(struct _CAR_DATA *cp, char *extraData); // 0x000280D8
|
|
|
|
extern int PingOutCar(struct _CAR_DATA *cp); // 0x0002CF80
|
|
|
|
extern int PingOutAllSpecialCivCars(); // 0x000282E8
|
|
|
|
extern int PingOutAllCivCarsAndCopCars(); // 0x0002840C
|
|
|
|
extern int CheckPingOut(struct _CAR_DATA *cp); // 0x00028554
|
|
|
|
extern void SetUpTrafficLightPhase(); // 0x0002D220
|
|
|
|
extern int TrafficLightCycle(int exit); // 0x0002CF18
|
|
|
|
extern void InitCivCars(); // 0x0002CDA4
|
|
|
|
extern int CreateCivCarWotDrivesABitThenStops(int direction, long (*startPos)[4], long (*stopPos)[4], unsigned char internalModel, int palette); // 0x000286E0
|
|
|
|
extern int CreateStationaryCivCar(int direction, long orientX, long orientZ, long (*startPos)[4], int externalModel, int palette, int controlFlags); // 0x00028960
|
|
|
|
extern int PingInCivCar(int minPingInDist); // 0x00028DB4
|
|
|
|
extern void AttemptUnPark(struct _CAR_DATA *cp); // 0x0002A4C4
|
|
|
|
extern int CivControl(struct _CAR_DATA *cp); // 0x0002CE10
|
|
|
|
extern int CivAccelTrafficRules(struct _CAR_DATA *cp, int *distToNode); // 0x0002A5FC
|
|
|
|
extern void SetUpCivCollFlags(); // 0x0002ABA8
|
|
|
|
extern int CivAccel(struct _CAR_DATA *cp); // 0x0002B26C
|
|
|
|
extern int CivSteerAngle(struct _CAR_DATA *cp); // 0x0002B53C
|
|
|
|
extern int CivFindStation(struct _CAR_DATA *cp); // 0x0002B8E4
|
|
|
|
extern int CivFindPointOnPath(struct _CAR_DATA *cp, int station, struct VECTOR *ppoint); // 0x0002BAEC
|
|
|
|
extern void CreateRoadblock(); // 0x0002BCF4
|
|
|
|
|
|
#endif
|