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 _NETGAME_H_
2
#define _NETGAME_H_
3
 
20 pmbaty 4
#include "brender/br_types.h"
1 pmbaty 5
#include "dr_types.h"
6
 
7
extern int gPowerup_cost[4];
8
extern int gGame_scores[6];
9
extern int gPed_target;
10
extern int gNot_shown_race_type_headup;
11
extern tU32 gLast_it_change;
12
extern tU32 gTime_for_punishment;
13
extern tNet_game_player_info* gLast_lepper;
14
extern int gInitialised_grid;
15
extern int gIt_or_fox;
16
 
17
void SendCarData(tU32 pNext_frame_time);
18
 
19
void ReceivedRecover(tNet_contents* pContents);
20
 
21
void CopyMechanics(tCar_spec* pCar, tNet_contents* pContents);
22
 
23
void ReceivedMechanics(tNet_contents* pContents);
24
 
25
void ReceivedCopInfo(tNet_contents* pContents);
26
 
27
void SendAllNonCarPositions(void);
28
 
29
void ReceivedNonCarPosition(tNet_contents* pContents);
30
 
31
void ReceivedNonCar(tNet_contents* pContents);
32
 
33
void SignalToStartRace2(int pIndex);
34
 
35
void SignalToStartRace(void);
36
 
37
void SetUpNetCarPositions(void);
38
 
39
void ReinitialiseCar(tCar_spec* pCar);
40
 
41
void RepositionPlayer(int pIndex);
42
 
43
void DisableCar(tCar_spec* pCar);
44
 
45
void EnableCar(tCar_spec* pCar);
46
 
47
void DoNetworkHeadups(int pCredits);
48
 
49
int SortNetHeadAscending(void* pFirst_one, void* pSecond_one);
50
 
51
int SortNetHeadDescending(void* pFirst_one, void* pSecond_one);
52
 
53
void ClipName(char* pName, tDR_font* pFont, int pMax_width);
54
 
55
void DoNetScores2(int pOnly_sort_scores);
56
 
57
void DoNetScores(void);
58
 
59
void InitNetHeadups(void);
60
 
61
void DisposeNetHeadups(void);
62
 
63
void EverybodysLost(void);
64
 
65
void DeclareWinner(int pWinner_index);
66
 
67
void PlayerIsIt(tNet_game_player_info* pPlayer);
68
 
69
int FarEnoughAway(tNet_game_player_info* pPlayer_1, tNet_game_player_info* pPlayer_2);
70
 
71
void CarInContactWithItOrFox(tNet_game_player_info* pPlayer);
72
 
73
void SelectRandomItOrFox(int pNot_this_one);
74
 
75
void CalcPlayerScores(void);
76
 
77
void SendPlayerScores(void);
78
 
79
void DoNetGameManagement(void);
80
 
81
void InitialisePlayerScore(tNet_game_player_info* pPlayer);
82
 
83
void InitPlayers(void);
84
 
85
void BuyPSPowerup(int pIndex);
86
 
87
void BuyArmour(void);
88
 
89
void BuyPower(void);
90
 
91
void BuyOffense(void);
92
 
93
void UseGeneralScore(int pScore);
94
 
95
void NetSendEnvironmentChanges(tNet_game_player_info* pPlayer);
96
 
97
void UpdateEnvironments(void);
98
 
99
void ReceivedGameplay(tNet_contents* pContents, tNet_message* pMessage, tU32 pReceive_time);
100
 
101
void SendGameplay(tPlayer_ID pPlayer, tNet_gameplay_mess pMess, int pParam_1, int pParam_2, int pParam_3, int pParam_4);
102
 
103
void SendGameplayToAllPlayers(tNet_gameplay_mess pMess, int pParam_1, int pParam_2, int pParam_3, int pParam_4);
104
 
105
void SendGameplayToHost(tNet_gameplay_mess pMess, int pParam_1, int pParam_2, int pParam_3, int pParam_4);
106
 
107
void InitNetGameplayStuff(void);
108
 
109
void DefaultNetName(void);
110
 
111
void NetSendPointCrush(tCar_spec* pCar, tU16 pCrush_point_index, br_vector3* pEnergy_vector);
112
 
113
void RecievedCrushPoint(tNet_contents* pContents);
114
 
115
void GetReducedMatrix(tReduced_matrix* m1, br_matrix34* m2);
116
 
117
void GetExpandedMatrix(br_matrix34* m1, tReduced_matrix* m2);
118
 
119
void NetEarnCredits(tNet_game_player_info* pPlayer, tS32 pCredits);
120
 
121
#endif