summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_object.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ai/api/ai_object.hpp')
-rw-r--r--src/ai/api/ai_object.hpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/ai/api/ai_object.hpp b/src/ai/api/ai_object.hpp
index 8fb8968c9..40f3b920c 100644
--- a/src/ai/api/ai_object.hpp
+++ b/src/ai/api/ai_object.hpp
@@ -143,9 +143,24 @@ protected:
*/
static void *&GetEventPointer();
+ /**
+ * Set the cost of the last command.
+ */
static void SetLastCost(Money last_cost);
+
+ /**
+ * Get the cost of the last command.
+ */
static Money GetLastCost();
+
+ /**
+ * Set a variable that can be used by callback functions to pass information.
+ */
static void SetCallbackVariable(int index, int value);
+
+ /**
+ * Get the variable that is used by callback functions to pass information.
+ */
static int GetCallbackVariable(int index);
public: