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