src/ai/api/ai_object.hpp
branchnoai
changeset 9511 f767ad06e86b
parent 9496 05ebee9884b3
child 9629 66dde6412125
--- a/src/ai/api/ai_object.hpp	Thu Mar 22 09:10:00 2007 +0000
+++ b/src/ai/api/ai_object.hpp	Thu Mar 22 09:52:12 2007 +0000
@@ -27,6 +27,7 @@
 		uint delay;
 		int32 costs;
 		VehicleID new_vehicle_id;
+		SignID new_sign_id;
 	};
 
 	/**
@@ -85,6 +86,11 @@
 	 */
 	static VehicleID GetNewVehicleID();
 
+	/**
+	 * Get the latest stored new_sign_id.
+	 */
+	static SignID GetNewSignID();
+
 public:
 	/**
 	 * Store a new_vehicle_id per player.
@@ -93,6 +99,12 @@
 	static void SetNewVehicleID(VehicleID vehicle);
 
 	/**
+	 * Store a new_sign_id per player.
+	 * @note NEVER use this yourself in your AI!
+	 */
+	static void SetNewSignID(SignID vehicle);
+
+	/**
 	 * If an AI starts, some internals needs to be resetted. This function
 	 *   takes care of that.
 	 * @note NEVER use this yourself in your AI!