diff -r a3e667057607 -r eb2443a14a74 ai/ai.h --- a/ai/ai.h Tue Nov 22 22:30:35 2005 +0000 +++ b/ai/ai.h Tue Nov 22 22:32:42 2005 +0000 @@ -3,6 +3,9 @@ #include "../functions.h" #include "../network.h" +#ifdef GPMI +#include +#endif /* GPMI */ /* How DoCommands look like for an AI */ typedef struct AICommand { @@ -21,6 +24,9 @@ bool active; //! Is this AI active? AICommand *queue; //! The commands that he has in his queue AICommand *queue_tail; //! The tail of this queue +#ifdef GPMI + gpmi_module *module; //! The link to the GPMI module +#endif /* GPMI */ } AIPlayer; /* The struct to keep some data about the AI in general */ @@ -32,6 +38,10 @@ /* For network-clients (a OpenTTD client who acts as an AI connected to a server) */ bool network_client; //! Are we a network_client? uint8 network_playas; //! The current network player we are connected as + +#ifdef GPMI + bool gpmi; //! True if we want GPMI AIs +#endif /* GPMI */ } AIStruct; VARDEF AIStruct _ai;