Subversion Repositories Games.Carmageddon

Rev

Rev 1 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 pmbaty 1
#ifndef _NEWGAME_H_
2
#define _NEWGAME_H_
3
 
4
#include "dr_types.h"
5
 
6
extern tU8* gFrank_flic_data;
7
extern tU8* gAnne_flic_data;
8
extern int gNet_storage_allocated;
9
extern tRadio_bastards gRadio_bastards__newgame[11]; // suffix added to avoid duplicate symbol
10
extern char* gBasic_car_names[2];
11
extern tNet_game_options gNet_settings[8];
12
extern tJoinable_game gGames_to_join[6];
13
extern tNet_game_options* gOptions;
14
extern int gNet_target[7];
18 pmbaty 15
extern int gLast_graph_sel__newgame;                   // suffix added to avoid duplicate symbol
16
extern tInterface_spec* gThe_interface_spec__newgame;  // suffix added to avoid duplicate symbol
1 pmbaty 17
extern tNet_sequence_type gNet_race_sequence__newgame; // suffix added to avoid duplicate symbol
18
extern tNet_game_type gLast_game_type;
19
extern int gCurrent_net_game_count;
20
extern tU32 gAnne_flic_data_length;
21
extern int gShifted_default_yet;
22
extern char* gNet_name;
23
extern tU32 gFrank_flic_data_length;
24
extern int gLast_net_choose_box;
25
extern int gCurrent_game_selection;
26
extern int gRace_index;
27
extern int gRadio_selected;
28
 
29
void StartRollingPlayerNamesIn(void);
30
 
31
void FrankAnneStart1(void);
32
 
33
void FrankAnneStart2(void);
34
 
35
void GetPlayerName(int pStarting_to_type, int pCurrent_choice, char* pString, int* pMax_length);
36
 
37
int FrankAnneDone(int pCurrent_choice, int pCurrent_mode, int pGo_ahead, int pEscaped, int pTimed_out);
38
 
39
void FrankAnneDraw(int pCurrent_choice, int pCurrent_mode);
40
 
41
int FrankieOrAnnie(void);
42
 
43
int SelectSkillLevel(void);
44
 
45
int DoOnePlayerStart(void);
46
 
47
int NewNetGameUp(int* pCurrent_choice, int* pCurrent_mode);
48
 
49
int NewNetGameDown(int* pCurrent_choice, int* pCurrent_mode);
50
 
51
void DisposeJoinableGame(int pIndex);
52
 
53
void DrawAnItem__newgame(int pX, int pY_index, int pFont_index, char* pText);
54
 
55
void DrawColumnHeading__newgame(int pStr_index, int pX);
56
 
57
void DrawGames(int pCurrent_choice, int pCurrent_mode);
58
 
59
void InitGamesToJoin(void);
60
 
61
void DisposeJoinList(int pExemption);
62
 
63
void AddToJoinList(tNet_game_details* pGame);
64
 
65
void NewNetStart1(void);
66
 
67
void NewNetStart2(void);
68
 
69
void NewNetGetName(int pStarting_to_type, int pCurrent_choice, char* pString, int* pMax_length);
70
 
71
int NewNetDone(int pCurrent_choice, int pCurrent_mode, int pGo_ahead, int pEscaped, int pTimed_out);
72
 
73
int NewNetGoAhead(int* pCurrent_choice, int* pCurrent_mode);
74
 
75
tJoin_or_host_result JoinOrHostGame(tNet_game_details** pGame_to_join);
76
 
77
void GetNetOptions(tNet_game_options* pGame_options);
78
 
79
void SetNetOptions(tNet_game_options* pGame_options);
80
 
81
void NetPlayCheckboxOn2(int pIndex);
82
 
83
void NetPlayCheckboxOff2(int pIndex);
84
 
85
void NetPlayCheckboxOn(int pIndex);
86
 
87
void NetPlayCheckboxOff(int pIndex);
88
 
89
void NetPlayRadioOn2(int pIndex, int pValue);
90
 
91
void NetPlayRadioOff2(int pIndex, int pValue);
92
 
93
void NetPlayRadioOn(int pIndex, int pValue);
94
 
95
void NetPlayRadioOff(int pIndex, int pValue);
96
 
97
void DrawNOptInitialRadios(void);
98
 
99
void NetRadioChanged(int pIndex, int pNew_value);
100
 
101
void NetCheckboxChanged(int pIndex);
102
 
103
int NetOptLeft(int* pCurrent_choice, int* pCurrent_mode);
104
 
105
int NetOptRight(int* pCurrent_choice, int* pCurrent_mode);
106
 
107
int NetOptUp(int* pCurrent_choice, int* pCurrent_mode);
108
 
109
int NetOptDown(int* pCurrent_choice, int* pCurrent_mode);
110
 
111
int NetRadioClick(int* pCurrent_choice, int* pCurrent_mode, int pX_offset, int pY_offset);
112
 
113
void RevertToDefaults(void);
114
 
115
void DefaultNetSettings(void);
116
 
117
int NetOptGoAhead(int* pCurrent_choice, int* pCurrent_mode);
118
 
119
void NetPlotAGraphBox(int pIndex, int pColour_value);
120
 
121
void NetDrawAGraphBox(int pIndex);
122
 
123
void NetEraseAGraphBox(int pIndex);
124
 
125
void DrawNetOptBox(int pCurrent_choice, int pCurrent_mode);
126
 
127
void DoNetOptions(tNet_game_options* pGame_options);
128
 
129
// Suffix added to avoid duplicate symbol
130
void PlayRadioOn__newgame(int pIndex);
131
 
132
// Suffix added to avoid duplicate symbol
133
void PlayRadioOff__newgame(int pIndex);
134
 
135
void SetOptions(tNet_game_type pGame_type, tNet_game_options* pGame_options);
136
 
137
void DrawNetChooseInitial(void);
138
 
139
int NetChooseGoAhead(int* pCurrent_choice, int* pCurrent_mode);
140
 
141
// Suffix added to avoid duplicate symbol
142
void PlotAGraphBox__newgame(int pIndex, int pColour_value);
143
 
144
// Suffix added to avoid duplicate symbol
145
void DrawAGraphBox__newgame(int pIndex);
146
 
147
// Suffix added to avoid duplicate symbol
148
void EraseAGraphBox__newgame(int pIndex);
149
 
150
void DrawNetChoose(int pCurrent_choice, int pCurrent_mode);
151
 
152
int NetChooseLR(int* pCurrent_choice, int* pCurrent_mode);
153
 
154
void SetGameTarget(tNet_game_type* pGame_type, tNet_game_options* pGame_options);
155
 
156
int NetGameChoices(tNet_game_type* pGame_type, tNet_game_options* pGame_options, int* pRace_index);
157
 
158
void ReadNetGameChoices(tNet_game_type* pGame_type, tNet_game_options* pGame_options, int* pRace_index);
159
 
160
int ChooseStartRace(int* pRank);
161
 
162
void SetUpOtherNetThings(tNet_game_details* pNet_game);
163
 
164
void RequestCarDetails(tNet_game_details* pNet_game);
165
 
166
int PickARandomCar(void);
167
 
168
void PollCarDetails(tNet_game_details* pNet_game);
169
 
170
void SetNetAvailability(tNet_game_options* pOptions);
171
 
172
int ChooseNetCar(tNet_game_details* pNet_game, tNet_game_options* pOptions, int* pCar_index, int pIm_the_host_so_fuck_off);
173
 
174
void InitNetStorageSpace(void);
175
 
176
void DisposeNetStorageSpace(void);
177
 
178
int DoMultiPlayerStart(void);
179
 
180
#endif