Searched refs:buy_costs (Results 1 – 2 of 2) sorted by relevance
292 int buy_costs[MaxCosts]; in AiCheckUnits() local293 memset(buy_costs, 0, sizeof(buy_costs)); in AiCheckUnits()294 buy_costs[CopperCost] = hero_recruiter->SoldUnits[j]->GetPrice(); in AiCheckUnits()295 …if (!AiPlayer->Player->CheckCosts(buy_costs) && AiPlayer->Player->CheckLimits(*hero_recruiter->Sol… in AiCheckUnits()319 int buy_costs[MaxCosts]; in AiCheckUnits() local320 memset(buy_costs, 0, sizeof(buy_costs)); in AiCheckUnits()321 buy_costs[CopperCost] = mercenary_building->SoldUnits[k]->GetPrice(); in AiCheckUnits()322 …if (!AiPlayer->Player->CheckCosts(buy_costs) && AiPlayer->Player->CheckLimits(*mercenary_building-… in AiCheckUnits()
2293 int buy_costs[MaxCosts]; in DoClicked_Buy() local2294 memset(buy_costs, 0, sizeof(buy_costs)); in DoClicked_Buy()2295 buy_costs[CopperCost] = UnitManager.GetSlotUnit(CurrentButtons[button].Value).GetPrice(); in DoClicked_Buy()2296 …if (!ThisPlayer->CheckCosts(buy_costs) && ThisPlayer->CheckLimits(*UnitManager.GetSlotUnit(Current… in DoClicked_Buy()