Home
last modified time | relevance | path

Searched refs:buy_costs (Results 1 – 2 of 2) sorted by relevance

/dports/games/wyrmgus/Wyrmgus-3.5.4/src/ai/
H A Dai.cpp292 int buy_costs[MaxCosts]; in AiCheckUnits() local
293 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() local
320 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()
/dports/games/wyrmgus/Wyrmgus-3.5.4/src/ui/
H A Dbotpanel.cpp2293 int buy_costs[MaxCosts]; in DoClicked_Buy() local
2294 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()