coastline 0.0.4
Loading...
Searching...
No Matches
racermotion.h
Go to the documentation of this file.
1#ifndef COASTLINE_RACER_MOTION_H
2#define COASTLINE_RACER_MOTION_H
3
4#include "common/racerslot.h"
5
6#if TGR_BOSS_RALLY
7#include "common/racerslotaccess.h"
8#include "common/settings.h"
10#endif
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
18
19#if TGR_BOSS_RALLY
21static inline s32 IsNetworkRacerMotionDisabled(RacerSlot *slot) {
22 return g_dwNetworkPlayMode && RACER_SLOT_GET(slot, Vehicle) == NULL;
23}
25static inline void ClearRacerSoundChannels(void) {
26 for (s32 i = 0; i < 5; i++) {
27 g_aSoundChannelRequested[i].llFrequency = 0;
28 g_aSoundChannelRequested[i].dwStereoLevels = 0;
29 }
30}
31#endif
32
33#ifdef __cplusplus
34}
35#endif
36
37#endif /* COASTLINE_RACER_MOTION_H */
#define g_dwNetworkPlayMode
Definition frontendstate.h:79
void UpdateRacerSlotMotion(RacerSlot *slot)
Drive an assigned vehicle or advance an unassigned racer along the route.
The settings of the PC port that BossRally.ini and the command line set.
The music, the volumes, and the channels of the sound effects of the Boss Rally release,...
struct SoundChannelState g_aSoundChannelRequested[SOUND_CHANNEL_COUNT]
The settings requested for the buffer of each channel.
A racer of a race.
Definition racerslot.h:28
A vehicle.
Definition vehicle.h:143
#define NULL
Definition ultratypes.h:49
int s32
Definition ultratypes.h:25