openTRI 0.1
gameTypes.h
1#ifndef __GAMETYPES_H__
2#define __GAMETYPES_H__
3
4#include "../triTypes.h"
5#include "../triModel.h"
6
7
8
9typedef struct
10{
11 triChar* name;
12
13 triModel* model;
14
15 triS32 texture;
16 triU32 color;
17
18 triU32 equipment; // Bitmask
19} gameCar;
20
21
22typedef struct
23{
24 triS32 score;
25 triS32 highestSpeed;
26} gameStats;
27
28
29typedef struct
30{
31 triChar name[24];
32
33 gameCar car;
34 gameStats stats;
36
37
38
39typedef struct
40{
41 triU32 direction; // a direction flag for the road (vertical/horizontal, left/right turn)
42 triU32 lanes; // bitmask of useable lanes in this segment (holes in road/bridge)
44
45
46typedef struct
47{
48 triModel* model;
49 triU32 numFields;
50 gameMapField* fieldTypes; // numFields structs describing the fields
52
53
54
55extern triModel carModels[3];
56
57
58#endif // __GAMETYPES_H__
Definition gameTypes.h:10
Definition gameTypes.h:40
Definition gameTypes.h:47
Definition gameTypes.h:30
Definition gameTypes.h:23
Definition triModel.h:182