--- a/src/ai/core/ai_object.hpp Thu Mar 15 15:34:41 2007 +0000
+++ b/src/ai/core/ai_object.hpp Thu Mar 15 15:41:18 2007 +0000
@@ -20,6 +20,16 @@
* Executes a raw DoCommand for the AI.
*/
int32 DoCommand(TileIndex tile, uint32 p1, uint32 p2, uint32 flags, uint procc) { return this->DoCommandCc(tile, p1, p2, flags, procc, NULL); }
+
+ /**
+ * Checks if the result of a DoCommand went wrong.
+ */
+ bool CmdFailed(int32 res);
+
+ /**
+ * Checks if the result of a DoCommand went okay.
+ */
+ bool CmdSucceeded(int32 res);
};
#endif /* AI_OBJECT_HPP */