class TestPerformTownAction extends MoneyTest { t = null; a = null; function DoAction() { if (AIExecMode() && AITown.PerformTownAction(t, a)) { return true; } return false; } function GetPrice() { local cost = AIAccounting(); AITestMode() && AITown.PerformTownAction(t, a); return cost.GetCosts(); } function TryPerform(town, action) { t = town; a = action; return DoMoneyTest(); } function TestCost(town, action) { t = town; a = action; return GetPrice(); } }