diff options
author | tron <tron@openttd.org> | 2005-12-18 12:10:46 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-12-18 12:10:46 +0000 |
commit | d5aa95b87e19f451bcad45382728edd0af57a95b (patch) | |
tree | a0ac2ff6091f2ec7e9b8c392fc45fc93c8b6b85f /ai/ai.h | |
parent | 7dc1e23845528e538091de34db539a0b7e480da6 (diff) | |
download | openttd-d5aa95b87e19f451bcad45382728edd0af57a95b.tar.xz |
(svn r3313) Remove GPMI related changes from trunk
Revisions in detail: 2542, 3226 (partial), 3229, 3231, 3232, 3238, 3242-3245, 3251, 3253, 3260, 3263, 3265, 3266, 3269, 3277, 3278, 3279, 3283 (partial), 3304, 3305, 3306
Diffstat (limited to 'ai/ai.h')
-rw-r--r-- | ai/ai.h | 20 |
1 files changed, 1 insertions, 19 deletions
@@ -4,9 +4,6 @@ #include "../functions.h" #include "../network.h" #include "../player.h" -#ifdef GPMI -#include <gpmi.h> -#endif /* GPMI */ /* How DoCommands look like for an AI */ typedef struct AICommand { @@ -26,9 +23,6 @@ typedef struct AIPlayer { 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 */ @@ -40,19 +34,10 @@ typedef struct AIStruct { /* 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 - - bool gpmi; //! True if we want GPMI AIs -#ifdef GPMI - gpmi_module *gpmi_mod; //! The module controller for GPMI based AIs (Event-handling) - gpmi_package *gpmi_pkg; //! The package controller for GPMI based AIs (Functions) - char gpmi_param[128]; //! The params given to the gpmi_mod -#endif /* GPMI */ } AIStruct; VARDEF AIStruct _ai; VARDEF AIPlayer _ai_player[MAX_PLAYERS]; -VARDEF uint _ai_current_uid; //! Keeps track of the current UID, if any (0 means none) -VARDEF TileIndex _ai_current_tile; //! Keeps track of the current Tile. // ai.c void AI_StartNewAI(PlayerID player); @@ -61,9 +46,6 @@ void AI_RunGameLoop(void); void AI_Initialize(void); void AI_Uninitialize(void); int32 AI_DoCommand(uint tile, uint32 p1, uint32 p2, uint32 flags, uint procc); -int32 AI_DoCommandChecked(uint tile, uint32 p1, uint32 p2, uint32 flags, uint procc); -void AI_GetCommandUID(uint32 cmd, uint32 p1, uint32 p2, TileIndex tile); -void AI_CommandResult(bool failed); /** Is it allowed to start a new AI. * This function checks some boundries to see if we should launch a new AI. @@ -89,7 +71,7 @@ static inline bool AI_AllowNewAI(void) * system, because all commands are delayed by at least 1 tick, which causes * a big problem, because it uses variables that are only set AFTER the command * is really executed... */ - if (!_patches.ainew_active && !_ai.gpmi) + if (!_patches.ainew_active) return false; } |