Robot Module Interface Definition
More...
#include <raceman.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. | |
| #define | ROB_PIT_MENU 1 |
| Call the interactive menu for pit command. | |
| #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. | |
| typedef void(* | tfRbNewRace) (int index, tCarElt *car, tSituation *s) |
| Callback function prototype for robot module, initialization for new race. | |
| 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. | |
| typedef void(* | tfRbDrive) (int index, tCarElt *car, tSituation *s) |
| Callback function prototype for robot module, driving the car. | |
| typedef void(* | tfRbShutdown) (int index) |
| Callback function prototype for robot module, shutdown robot instance for given index. | |
| typedef int(* | tfRbPitCmd) (int index, tCarElt *car, tSituation *s) |
| Callback function prototype for robot module, handing over pit stop commands. | |
| typedef struct RobotItf | tRobotItf |
| Interface Structure for Robots. | |
Robot Module Interface Definition
Definition in file robot.h.
| #define ROB_PIT_MENU 1 |