From 0f2a0df16591a8f23b03b800b780090cf9b88c9a Mon Sep 17 00:00:00 2001 From: truelight Date: Mon, 5 Dec 2005 12:27:58 +0000 Subject: (svn r3260) -Add: add events for AIs to check if a command execution failed or succeeded --- ai/ai.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ai/ai.h') diff --git a/ai/ai.h b/ai/ai.h index bb56ed27d..c68eb40b4 100644 --- a/ai/ai.h +++ b/ai/ai.h @@ -57,6 +57,8 @@ 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_CommandResult(uint32 cmd, uint32 p1, uint32 p2, TileIndex tile, bool failed); /** Is it allowed to start a new AI. * This function checks some boundries to see if we should launch a new AI. -- cgit v1.2.3-70-g09d2