torcs - 1.2.2

src/interfaces/robot.h

Go to the documentation of this file.
00001 /***************************************************************************
00002 
00003     file                 : robot.h
00004     created              : Sun Jan 30 22:59:40 CET 2000, 2002
00005     copyright            : (C) 2000 by Eric Espie
00006     email                : torcs@free.fr
00007     version              : $Id: robot.h,v 1.8 2003/05/18 20:41:25 torcs Exp $
00008 
00009  ***************************************************************************/
00010 
00011 /***************************************************************************
00012  *                                                                         *
00013  *   This program is free software; you can redistribute it and/or modify  *
00014  *   it under the terms of the GNU General Public License as published by  *
00015  *   the Free Software Foundation; either version 2 of the License, or     *
00016  *   (at your option) any later version.                                   *
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  * Parameters definitions for driver
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 /* _ROBOTV1_H_ */ 
00109 
00110 
00111 

Generated at Thu Feb 26 21:52:27 2004 for torcs by doxygen 1.3.3 written by Dimitri van Heesch, © 1997-1999
TORCS © Eric Espié 1999, 2002.