--- a/src/ai/api/ai_object.hpp Tue Mar 20 01:04:21 2007 +0000
+++ b/src/ai/api/ai_object.hpp Tue Mar 20 11:42:07 2007 +0000
@@ -26,6 +26,7 @@
AIObject *mode_instance;
uint delay;
int32 costs;
+ VehicleID new_vehicle_id;
};
/**
@@ -79,10 +80,22 @@
*/
static uint GetDoCommandDelay();
+ /**
+ * Get the latest stored new_vehicle_id.
+ */
+ static VehicleID GetNewVehicleID();
+
public:
/**
+ * Store a new_vehicle_id per player.
+ * @note NEVER use this yourself in your AI!
+ */
+ static void SetNewVehicleID(VehicleID 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!
*/
static void ResetInternalPlayerData();
};