Rev 18 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | pmbaty | 1 | #ifndef _RACESTRT_H_ |
2 | #define _RACESTRT_H_ |
||
3 | |||
20 | pmbaty | 4 | #include "brender/br_types.h" |
1 | pmbaty | 5 | #include "dr_types.h" |
6 | |||
7 | extern int gGrid_number_colour[4]; |
||
8 | extern int gJust_bought_part; |
||
9 | extern tU32 gLast_host_query; |
||
10 | extern br_pixelmap* gDead_car; |
||
11 | extern int gFade_away_parts_shop; |
||
12 | extern tU32 gDare_start_time; |
||
13 | extern int gRefund_rate; |
||
14 | extern int gSwap_grid_2; |
||
15 | extern int gSwap_grid_1; |
||
16 | extern int gChange_race_net_mode; |
||
17 | extern tParts_category gPart_category; |
||
18 | extern tU32 gNet_synch_start; |
||
19 | extern tNet_game_details* gChoose_car_net_game; |
||
20 | extern int gPart_index; |
||
21 | extern int gChallenger_index__racestrt; // suffix added to avoid duplicate symbol |
||
22 | extern tGrid_draw gDraw_grid_status; |
||
23 | extern tNet_sequence_type gNet_race_sequence__racestrt; // suffix added to avoid duplicate symbol |
||
24 | extern br_pixelmap* gTaken_image; |
||
25 | extern int gGrid_number_x_coords[31]; |
||
26 | extern int gGrid_transition_stage; |
||
27 | extern int gGrid_y_adjust; |
||
28 | extern br_pixelmap* gBullet_image; |
||
29 | extern br_pixelmap* gDeceased_image; |
||
30 | extern int gBest_pos_available; |
||
31 | extern int gChallenger_position; |
||
32 | extern int gOpponent_index; |
||
33 | extern int gChallenge_time; |
||
34 | extern int gOriginal_position; |
||
35 | extern int gCurrent_race_index; |
||
36 | extern tInterface_spec* gStart_interface_spec; |
||
37 | extern int gCurrent_car_index; |
||
38 | extern int gOur_starting_position; |
||
39 | |||
40 | void DrawRaceList(int pOffset); |
||
41 | |||
42 | void MoveRaceList(int pFrom, int pTo, tS32 pTime_to_move); |
||
43 | |||
44 | int UpRace(int* pCurrent_choice, int* pCurrent_mode); |
||
45 | |||
46 | int DownRace(int* pCurrent_choice, int* pCurrent_mode); |
||
47 | |||
48 | int ClickOnRace(int* pCurrent_choice, int* pCurrent_mode, int pX_offset, int pY_offset); |
||
49 | |||
50 | int UpClickRace(int* pCurrent_choice, int* pCurrent_mode, int pX_offset, int pY_offset); |
||
51 | |||
52 | int DownClickRace(int* pCurrent_choice, int* pCurrent_mode, int pX_offset, int pY_offset); |
||
53 | |||
54 | void StartChangeRace(void); |
||
55 | |||
56 | int ChangeRace(int* pRace_index, int pNet_mode, tNet_sequence_type pNet_race_sequence); |
||
57 | |||
58 | void DoChangeRace(void); |
||
59 | |||
60 | void DrawCar(int pCurrent_choice, int pCurrent_mode); |
||
61 | |||
62 | void SetCarFlic(void); |
||
63 | |||
64 | int UpCar(int* pCurrent_choice, int* pCurrent_mode); |
||
65 | |||
66 | int DownCar(int* pCurrent_choice, int* pCurrent_mode); |
||
67 | |||
68 | int UpClickCar(int* pCurrent_choice, int* pCurrent_mode, int pX_offset, int pY_offset); |
||
69 | |||
70 | int DownClickCar(int* pCurrent_choice, int* pCurrent_mode, int pX_offset, int pY_offset); |
||
71 | |||
72 | int ChangeCarGoAhead(int* pCurrent_choice, int* pCurrent_mode); |
||
73 | |||
74 | int ChangeCar(int pNet_mode, int* pCar_index, tNet_game_details* pNet_game); |
||
75 | |||
76 | void DoChangeCar(void); |
||
77 | |||
78 | int PartsShopRecommended(void); |
||
79 | |||
80 | void CalcPartPrice(int pCategory, int pIndex, int* pPrice, int* pCost); |
||
81 | |||
82 | int BuyPart(int pCategory, int pIndex); |
||
83 | |||
84 | void DoAutoParts(void); |
||
85 | |||
86 | void DrawPartsLabel(void); |
||
87 | |||
88 | void ErasePartsText(int pTotal_as_well); |
||
89 | |||
90 | void DrawPartsText(void); |
||
91 | |||
92 | void SetPartsImage(void); |
||
93 | |||
94 | int GetPartsMax(void); |
||
95 | |||
96 | void CalcPartsIndex(void); |
||
97 | |||
98 | void DoExchangePart(void); |
||
99 | |||
100 | int PartsShopGoAhead(int* pCurrent_choice, int* pCurrent_mode); |
||
101 | |||
102 | int UpPart(int* pCurrent_choice, int* pCurrent_mode); |
||
103 | |||
104 | int DownPart(int* pCurrent_choice, int* pCurrent_mode); |
||
105 | |||
106 | int UpClickPart(int* pCurrent_choice, int* pCurrent_mode, int pX_offset, int pY_offset); |
||
107 | |||
108 | int DownClickPart(int* pCurrent_choice, int* pCurrent_mode, int pX_offset, int pY_offset); |
||
109 | |||
110 | int PartsArrowsOn(int* pCurrent_choice, int* pCurrent_mode); |
||
111 | |||
112 | int PartsArrowsOff(int* pCurrent_choice, int* pCurrent_mode); |
||
113 | |||
114 | void StartPartsShop(void); |
||
115 | |||
116 | int DonePartsShop(int pCurrent_choice, int pCurrent_mode, int pGo_ahead, int pEscaped, int pTimed_out); |
||
117 | |||
118 | void DrawPartsShop(int pCurrent_choice, int pCurrent_mode); |
||
119 | |||
120 | void DoPartsShop(int pFade_away); |
||
121 | |||
122 | int AutoPartsDone(int pCurrent_choice, int pCurrent_mode, int pGo_ahead, int pEscaped, int pTimed_out); |
||
123 | |||
124 | tSO_result DoAutoPartsShop(void); |
||
125 | |||
126 | void SetOpponentFlic(void); |
||
127 | |||
128 | void DrawSceneyMappyInfoVieweyThing(void); |
||
129 | |||
130 | void DismissSceneyMappyInfoVieweyThing(void); |
||
131 | |||
132 | int SelectRaceDone(int pCurrent_choice, int pCurrent_mode, int pGo_ahead, int pEscaped, int pTimed_out); |
||
133 | |||
134 | int StartRaceGoAhead(int* pCurrent_choice, int* pCurrent_mode); |
||
135 | |||
136 | int TryToMoveToArrows(int* pCurrent_choice, int* pCurrent_mode); |
||
137 | |||
138 | int UpOpponent(int* pCurrent_choice, int* pCurrent_mode); |
||
139 | |||
140 | int DownOpponent(int* pCurrent_choice, int* pCurrent_mode); |
||
141 | |||
142 | int UpClickOpp(int* pCurrent_choice, int* pCurrent_mode, int pX_offset, int pY_offset); |
||
143 | |||
144 | int DownClickOpp(int* pCurrent_choice, int* pCurrent_mode, int pX_offset, int pY_offset); |
||
145 | |||
146 | void SelectRaceStart(void); |
||
147 | |||
148 | int SuggestRace(void); |
||
149 | |||
150 | void SelectRaceDraw(int pCurrent_choice, int pCurrent_mode); |
||
151 | |||
152 | tSO_result DoSelectRace(int* pSecond_time_around); |
||
153 | |||
154 | void DrawGridCar(int pX, int pY, br_pixelmap* pImage); |
||
155 | |||
156 | void DrawGrid(int pOffset, int pDraw_it); |
||
157 | |||
158 | void MoveGrid(int pFrom, int pTo, tS32 pTime_to_move); |
||
159 | |||
160 | int CalcGridOffset(int pPosition); |
||
161 | |||
162 | void GridDraw(int pCurrent_choice, int pCurrent_mode); |
||
163 | |||
164 | void ActuallySwapOrder(int pFirst_index, int pSecond_index); |
||
165 | |||
166 | void DoGridTransition(int pFirst_index, int pSecond_index); |
||
167 | |||
168 | void ChallengeStart(void); |
||
169 | |||
170 | int CheckNextStage(int* pCurrent_choice, int* pCurrent_mode); |
||
171 | |||
172 | int ChallengeDone(int pCurrent_choice, int pCurrent_mode, int pGo_ahead, int pEscaped, int pTimed_out); |
||
173 | |||
174 | void DoChallengeScreen(void); |
||
175 | |||
176 | int GridDone(int pCurrent_choice, int pCurrent_mode, int pGo_ahead, int pEscaped, int pTimed_out); |
||
177 | |||
178 | void GridStart(void); |
||
179 | |||
180 | int GridMoveLeft(int* pCurrent_choice, int* pCurrent_mode); |
||
181 | |||
182 | int GridMoveRight(int* pCurrent_choice, int* pCurrent_mode); |
||
183 | |||
184 | int GridClickCar(int* pCurrent_choice, int* pCurrent_mode, int pX_offset, int pY_offset); |
||
185 | |||
186 | int GridClickNumbers(int* pCurrent_choice, int* pCurrent_mode, int pX_offset, int pY_offset); |
||
187 | |||
188 | int GridClickLeft(int* pCurrent_choice, int* pCurrent_mode, int pX_offset, int pY_offset); |
||
189 | |||
190 | int GridClickRight(int* pCurrent_choice, int* pCurrent_mode, int pX_offset, int pY_offset); |
||
191 | |||
192 | int CheckChallenge(int* pCurrent_choice, int* pCurrent_mode); |
||
193 | |||
194 | int FindBestPos(int pOur_rank); |
||
195 | |||
196 | int SortGridFunction(const void* pFirst_one, const void* pSecond_one); |
||
197 | |||
198 | void SortOpponents(void); |
||
199 | |||
200 | tSO_result DoGridPosition(void); |
||
201 | |||
202 | void CheckPlayersAreResponding(void); |
||
203 | |||
204 | void NetSynchStartStart(void); |
||
205 | |||
206 | // Suffix added to avoid duplicate symbol |
||
207 | void DrawAnItem__racestrt(int pX, int pY_index, int pFont_index, char* pText); |
||
208 | |||
209 | void NetSynchStartDraw(int pCurrent_choice, int pCurrent_mode); |
||
210 | |||
211 | int NetSynchStartDone(int pCurrent_choice, int pCurrent_mode, int pGo_ahead, int pEscaped, int pTimed_out); |
||
212 | |||
213 | int NetSynchStartGoAhead(int* pCurrent_choice, int* pCurrent_mode); |
||
214 | |||
215 | int ExitWhenReady(int* pCurrent_choice, int* pCurrent_mode); |
||
216 | |||
217 | tSO_result NetSynchRaceStart2(tNet_synch_mode pMode); |
||
218 | |||
219 | tSO_result NetSynchRaceStart(void); |
||
220 | |||
221 | #endif |