TORCS  1.3.9
The Open Racing Car Simulator

Robot Module Interface Definition. More...

#include <raceman.h>
Include dependency graph for robot.h:

Go to the source code of this file.

Classes

struct  RobotItf
 Interface Structure for Robots. More...
 

Macros

#define ROB_IDENT   0
 
#define ROB_PIT_IM   0
 Immediate return from pit command. More...
 
#define ROB_PIT_MENU   1
 Call the interactive menu for pit command. More...
 
#define ROB_SECT_ROBOTS   "Robots"
 
#define ROB_LIST_INDEX   "index"
 
#define ROB_ATTR_NAME   "name"
 
#define ROB_ATTR_TEAM   "team"
 
#define ROB_ATTR_DESC   "desc"
 
#define ROB_ATTR_AUTHOR   "author"
 
#define ROB_ATTR_CAR   "car name"
 
#define ROB_ATTR_CATEGORY   "category"
 
#define ROB_ATTR_RACENUM   "race number"
 
#define ROB_ATTR_RED   "red"
 
#define ROB_ATTR_GREEN   "green"
 
#define ROB_ATTR_BLUE   "blue"
 
#define ROB_ATTR_TYPE   "type"
 
#define ROB_VAL_HUMAN   "human"
 
#define ROB_VAL_ROBOT   "robot"
 
#define ROB_ATTR_LEVEL   "skill level"
 
#define ROB_VAL_ROOKIE   "rookie"
 
#define ROB_VAL_AMATEUR   "amateur"
 
#define ROB_VAL_SEMI_PRO   "semi-pro"
 
#define ROB_VAL_PRO   "pro"
 

Typedefs

typedef void(* tfRbNewTrack) (int index, tTrack *track, void *carHandle, void **myCarSettings, tSituation *s)
 Callback function prototype for robot module, give the robot the track view, called for every track change or new race. More...
 
typedef void(* tfRbNewRace) (int index, tCarElt *car, tSituation *s)
 Callback function prototype for robot module, initialization for new race. More...
 
typedef void(* tfRbEndRace) (int index, tCarElt *car, tSituation *s)
 Callback function prototype for robot module, teardown after race, this is currently NOT called by TORCS. More...
 
typedef void(* tfRbDrive) (int index, tCarElt *car, tSituation *s)
 Callback function prototype for robot module, driving the car. More...
 
typedef void(* tfRbShutdown) (int index)
 Callback function prototype for robot module, shutdown robot instance for given index. More...
 
typedef int(* tfRbPitCmd) (int index, tCarElt *car, tSituation *s)
 Callback function prototype for robot module, handing over pit stop commands. More...
 
typedef struct RobotItf tRobotItf
 Interface Structure for Robots. More...
 

Detailed Description

Robot Module Interface Definition.

Author
Bernhard Wymann, Eric Espie
Version
$Id$

Definition in file robot.h.

Macro Definition Documentation

◆ ROB_ATTR_AUTHOR

#define ROB_ATTR_AUTHOR   "author"

Definition at line 129 of file robot.h.

◆ ROB_ATTR_BLUE

#define ROB_ATTR_BLUE   "blue"

Definition at line 135 of file robot.h.

◆ ROB_ATTR_CAR

#define ROB_ATTR_CAR   "car name"

Definition at line 130 of file robot.h.

◆ ROB_ATTR_CATEGORY

#define ROB_ATTR_CATEGORY   "category"

Definition at line 131 of file robot.h.

◆ ROB_ATTR_DESC

#define ROB_ATTR_DESC   "desc"

Definition at line 128 of file robot.h.

◆ ROB_ATTR_GREEN

#define ROB_ATTR_GREEN   "green"

Definition at line 134 of file robot.h.

◆ ROB_ATTR_LEVEL

#define ROB_ATTR_LEVEL   "skill level"

Definition at line 142 of file robot.h.

◆ ROB_ATTR_NAME

#define ROB_ATTR_NAME   "name"

Definition at line 126 of file robot.h.

◆ ROB_ATTR_RACENUM

#define ROB_ATTR_RACENUM   "race number"

Definition at line 132 of file robot.h.

◆ ROB_ATTR_RED

#define ROB_ATTR_RED   "red"

Definition at line 133 of file robot.h.

◆ ROB_ATTR_TEAM

#define ROB_ATTR_TEAM   "team"

Definition at line 127 of file robot.h.

◆ ROB_ATTR_TYPE

#define ROB_ATTR_TYPE   "type"

Definition at line 137 of file robot.h.

◆ ROB_IDENT

#define ROB_IDENT   0

Definition at line 47 of file robot.h.

◆ ROB_LIST_INDEX

#define ROB_LIST_INDEX   "index"

Definition at line 124 of file robot.h.

◆ ROB_PIT_IM

#define ROB_PIT_IM   0

Immediate return from pit command.

Definition at line 100 of file robot.h.

◆ ROB_PIT_MENU

#define ROB_PIT_MENU   1

Call the interactive menu for pit command.

Definition at line 101 of file robot.h.

◆ ROB_SECT_ROBOTS

#define ROB_SECT_ROBOTS   "Robots"

Definition at line 122 of file robot.h.

◆ ROB_VAL_AMATEUR

#define ROB_VAL_AMATEUR   "amateur"

Definition at line 145 of file robot.h.

◆ ROB_VAL_HUMAN

#define ROB_VAL_HUMAN   "human"

Definition at line 139 of file robot.h.

◆ ROB_VAL_PRO

#define ROB_VAL_PRO   "pro"

Definition at line 147 of file robot.h.

◆ ROB_VAL_ROBOT

#define ROB_VAL_ROBOT   "robot"

Definition at line 140 of file robot.h.

◆ ROB_VAL_ROOKIE

#define ROB_VAL_ROOKIE   "rookie"

Definition at line 144 of file robot.h.

◆ ROB_VAL_SEMI_PRO

#define ROB_VAL_SEMI_PRO   "semi-pro"

Definition at line 146 of file robot.h.