00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00036 #ifndef _ROBOTV1_H_
00037 #define _ROBOTV1_H_
00038
00039 #include <raceman.h>
00040
00041 #define ROB_IDENT 0
00042
00044 typedef void (*tfRbNewTrack)(int index, tTrack *track, void *carHandle, void **myCarSettings, tSituation *s);
00046 typedef void (*tfRbNewRace) (int index, tCarElt *car, tSituation *s);
00048 typedef void (*tfRbEndRace) (int index, tCarElt *car, tSituation *s);
00050 typedef void (*tfRbDrive) (int index, tCarElt *car, tSituation *s);
00052 typedef void (*tfRbShutdown)(int index);
00054 typedef int (*tfRbPitCmd) (int index, tCarElt* car, tSituation *s);
00055
00056 #define ROB_PIT_IM 0
00057 #define ROB_PIT_MENU 1
00063 typedef struct RobotItf {
00064 tfRbNewTrack rbNewTrack;
00065 tfRbNewRace rbNewRace;
00066 tfRbEndRace rbEndRace;
00067 tfRbDrive rbDrive;
00068 tfRbPitCmd rbPitCmd;
00073 tfRbShutdown rbShutdown;
00074 int index;
00075 } tRobotItf;
00076
00077
00078
00079
00080
00081
00082 #define ROB_SECT_ROBOTS "Robots"
00083
00084 #define ROB_LIST_INDEX "index"
00085
00086 #define ROB_ATTR_NAME "name"
00087 #define ROB_ATTR_DESC "desc"
00088 #define ROB_ATTR_AUTHOR "author"
00089 #define ROB_ATTR_CAR "car name"
00090 #define ROB_ATTR_CATEGORY "category"
00091 #define ROB_ATTR_RACENUM "race number"
00092 #define ROB_ATTR_RED "red"
00093 #define ROB_ATTR_GREEN "green"
00094 #define ROB_ATTR_BLUE "blue"
00095
00096 #define ROB_ATTR_TYPE "type"
00097
00098 #define ROB_VAL_HUMAN "human"
00099 #define ROB_VAL_ROBOT "robot"
00100
00101 #define ROB_ATTR_LEVEL "skill level"
00102
00103 #define ROB_VAL_ROOKIE "rookie"
00104 #define ROB_VAL_AMATEUR "amateur"
00105 #define ROB_VAL_SEMI_PRO "semi-pro"
00106 #define ROB_VAL_PRO "pro"
00107
00108 #endif
00109
00110
00111