coastline 0.0.4
Loading...
Searching...
No Matches
game.h
Go to the documentation of this file.
1#ifndef COASTLINE_GAME_H
2#define COASTLINE_GAME_H
3
8
9#include "common/types.h"
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
26
27#if TGR_PLATFORM == TGR_PLATFORM_N64
37#endif
38
40enum {
47#if TGR_BOSS_RALLY
48 GAME_MODE_NETWORK = 6,
49#endif
50};
51
53enum {
59};
60
71extern s32 g_dwGameMode;
72
84
85#if TGR_PLATFORM == TGR_PLATFORM_WIN
92extern int g_bNetSpectator;
93#endif
94
106void ApplyWeather(u32 weather);
107
108#if TGR_BOSS_RALLY
116void SetWeatherAndRefreshVehicleMaterials(u32 weather);
117#endif
118
127void MainMenuEntry(void);
128
141
153
166
176
187
199
200#ifdef __cplusplus
201}
202#endif
203
204#endif /* COASTLINE_GAME_H */
s32 g_dwRaceSessionType
The race the computer drives, by the RACE_SESSION_ values.
u32 g_dwNumLocalPlayers
Number of local players.
void StartAttractDemo(void)
Start the race the computer drives after the splash screens.
s32 g_nNumLocalPlayersSigned
Signed view of the local-player count used by N64 menus.
void StartCreditsRace(void)
Start the race the computer drives under the credits, which the options menu offers: the scrolling cr...
@ GAME_MODE_AFTER_SEASON
Definition game.h:46
@ GAME_MODE_CHAMPIONSHIP
Definition game.h:41
@ GAME_MODE_DEMO
Definition game.h:45
@ GAME_MODE_ARCADE
Definition game.h:42
@ GAME_MODE_PRACTICE
Definition game.h:44
@ GAME_MODE_TIME_ATTACK
Definition game.h:43
void StartRaceWithPlayerCount(u32 players)
Set the number of local players and select the initial race callback.
void MainMenuEntry(void)
The screen routine of the main menu.
void ResetAllPlayers(void)
Reset the vehicle and the input of every player.
void ApplyWeather(u32 weather)
Set weather flags and, on N64, patch display lists to match.
void InitGameAndShowMenus(void)
The entry of the main thread.
void StartEndingCredits(void)
Start the race under the scrolling credits, after the last season of the championship.
s32 g_dwGameMode
The mode of play the main menu chose.
int g_bNetSpectator
Whether the local network player spectates without a car.
@ RACE_SESSION_CREDIT_CAPTIONS
Definition game.h:55
@ RACE_SESSION_ATTRACT
Definition game.h:54
@ RACE_SESSION_SCROLLING_CREDITS
Definition game.h:57
The integer and floating-point types of the console, for headers shared with Windows.
unsigned int u32
Definition ultratypes.h:20
int s32
Definition ultratypes.h:25