Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
car_assist.h
Go to the documentation of this file.
1
#include "
xml_support.h
"
2
using
XMLSupport::EnumMap
;
3
namespace
CAR
4
{
5
const
int
FORWARD_BLINKEN
= 1;
6
const
int
LEFT_BLINKEN
= 2;
7
const
int
RIGHT_BLINKEN
= 4;
8
const
int
SIREN_BLINKEN
= 8;
9
const
int
ON_NO_BLINKEN
= 16;
10
11
enum
ALL_TYPES
12
{
13
RUNNINGLIGHTS
,
HEADLIGHTS
,
LEFTBLINK
,
RIGHTBLINK
,
BRAKE
,
REVERSE
,
SIREN
14
};
15
const
EnumMap::Pair
type_names
[8] = {
16
EnumMap::Pair(
"UNKNOWN"
,
RUNNINGLIGHTS
),
17
EnumMap::Pair(
"RUNNINGLIGHTS"
,
RUNNINGLIGHTS
),
18
EnumMap::Pair(
"HEADLIGHTS"
,
HEADLIGHTS
),
19
EnumMap::Pair(
"LEFTBLINK"
,
LEFTBLINK
),
20
EnumMap::Pair(
"RIGHTBLINK"
,
RIGHTBLINK
),
21
EnumMap::Pair(
"BRAKE"
,
BRAKE
),
22
EnumMap::Pair(
"REVERSE"
,
REVERSE
),
23
EnumMap::Pair(
"SIREN"
,
SIREN
)
24
};
25
const
EnumMap
type_map
(
type_names
, 8 );
26
}
27
src
gfx
car_assist.h
Generated on Fri May 29 2015 23:07:22 for Vegastrike 0.5.1 rc1 by
1.8.4