Subversion Repositories Games.Carmageddon

Rev

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

Rev Author Line No. Line
1 pmbaty 1
#ifndef _OIL_H_
2
#define _OIL_H_
3
 
20 pmbaty 4
#include "brender/br_types.h"
1 pmbaty 5
#include "dr_types.h"
6
 
7
extern char* gOil_pixie_names[1];
8
extern int gNext_oil_pixie;
9
extern br_scalar gZ_buffer_diff;
10
extern br_scalar gMin_z_diff;
11
extern br_pixelmap* gOil_pixies[1];
12
extern tOil_spill_info gOily_spills[15];
13
 
14
void InitOilSpills(void);
15
 
16
void ResetOilSpills(void);
17
 
18
void QueueOilSpill(tCar_spec* pCar);
19
 
20
int OKToSpillOil(tOil_spill_info* pOil);
21
 
22
void Vector3Interpolate(br_vector3* pDst, br_vector3* pFrom, br_vector3* pTo, br_scalar pP);
23
 
24
void EnsureGroundDetailVisible(br_vector3* pNew_pos, br_vector3* pGround_normal, br_vector3* pOld_pos);
25
 
26
void MungeOilsHeightAboveGround(tOil_spill_info* pOil);
27
 
28
void MungeIndexedOilsHeightAboveGround(int pIndex);
29
 
30
void SetInitialOilStuff(tOil_spill_info* pOil, br_model* pModel);
31
 
32
void ProcessOilSpills(tU32 pFrame_period);
33
 
34
int GetOilSpillCount(void);
35
 
36
void GetOilSpillDetails(int pIndex, br_actor** pActor, br_scalar* pSize);
37
 
38
int PointInSpill(br_vector3* pV, int pSpill);
39
 
40
void GetOilFrictionFactors(tCar_spec* pCar, br_scalar* pFl_factor, br_scalar* pFr_factor, br_scalar* pRl_factor, br_scalar* pRr_factor);
41
 
42
void AdjustOilSpill(int pIndex, br_matrix34* pMat, br_scalar pFull_size, br_scalar pGrow_rate, tU32 pSpill_time, tU32 pStop_time, tCar_spec* pCar, br_vector3* pOriginal_pos, br_pixelmap* pPixelmap);
43
 
44
void ReceivedOilSpill(tNet_contents* pContents);
45
 
46
#endif