src/ai/api/ai_transactionmode.hpp
branchnoai
changeset 9629 66dde6412125
parent 9596 8af5a1399842
child 9829 80fbe02a4184
--- a/src/ai/api/ai_transactionmode.hpp	Sun Jun 17 21:31:00 2007 +0000
+++ b/src/ai/api/ai_transactionmode.hpp	Tue Jun 26 23:40:58 2007 +0000
@@ -35,13 +35,13 @@
 	std::queue<AITransactionModeCommand> command_stack;
 	std::queue<AITransactionModeCommand> reverse_stack;
 	bool stopped;
-	int32 costs;
+	CommandCost costs;
 
 protected:
 	/**
 	 * The callback proc for Transaction mode.
 	 */
-	static bool ModeProc(TileIndex tile, uint32 p1, uint32 p2, uint procc, int32 costs);
+	static bool ModeProc(TileIndex tile, uint32 p1, uint32 p2, uint procc, CommandCost costs);
 
 public:
 	/**
@@ -97,7 +97,7 @@
 	 * Get the costs it takes to execute this transaction (on average, real
 	 *   numbers can always differ).
 	 */
-	int32 GetCosts();
+	Money GetCosts();
 
 	/**
 	 * Append one transaction list to an other.