Home
last modified time | relevance | path

Searched refs:getRuleset (Results 1 – 25 of 59) sorted by relevance

123

/dports/games/openxcom/OpenXcom-1.0/src/Basescape/
H A DPurchaseState.cpp164 RuleCraft *rule = _game->getRuleset()->getCraft(*i); in PurchaseState()
181 std::vector<std::string> items = _game->getRuleset()->getItemsList(); in PurchaseState()
184 RuleItem *rule = _game->getRuleset()->getItem(*i); in PurchaseState()
264 Transfer *t = new Transfer(_game->getRuleset()->getPersonnelTime()); in btnOkClick()
272 Transfer *t = new Transfer(_game->getRuleset()->getPersonnelTime()); in btnOkClick()
279 Transfer *t = new Transfer(_game->getRuleset()->getPersonnelTime()); in btnOkClick()
288 RuleCraft *rc = _game->getRuleset()->getCraft(_crafts[i - 3]); in btnOkClick()
432 return _game->getRuleset()->getSoldierCost() * 2; in getPrice()
437 return _game->getRuleset()->getScientistCost() * 2; in getPrice()
442 return _game->getRuleset()->getEngineerCost() * 2; in getPrice()
[all …]
H A DMonthlyCostsState.cpp118 const std::vector<std::string> &crafts = _game->getRuleset()->getCraftsList(); in MonthlyCostsState()
121 RuleCraft *craft = _game->getRuleset()->getCraft(*i); in MonthlyCostsState()
136 …ding(_game->getRuleset()->getSoldierCost()).c_str(), ss4.str().c_str(), Text::formatFunding(_base-… in MonthlyCostsState()
139 …nding(_game->getRuleset()->getEngineerCost()).c_str(), ss5.str().c_str(), Text::formatFunding(_bas… in MonthlyCostsState()
142 …ding(_game->getRuleset()->getScientistCost()).c_str(), ss6.str().c_str(), Text::formatFunding(_bas… in MonthlyCostsState()
H A DCraftEquipmentState.cpp157 const std::vector<std::string> &items = _game->getRuleset()->getItemsList(); in CraftEquipmentState()
160 RuleItem *rule = _game->getRuleset()->getItem(*i); in CraftEquipmentState()
378 RuleItem *item = _game->getRuleset()->getItem(_items[_sel]); in updateQuantity()
402 RuleItem *rule = _game->getRuleset()->getItem(_items[_sel]); in updateQuantity()
441 RuleItem *item = _game->getRuleset()->getItem(_items[_sel]); in moveLeftByValue()
453 RuleItem *ammo = _game->getRuleset()->getItem(item->getCompatibleAmmo()->front()); in moveLeftByValue()
517 RuleItem *item = _game->getRuleset()->getItem(_items[_sel]); in moveRightByValue()
533 if (_game->getRuleset()->getUnit(item->getType())) in moveRightByValue()
535 …size = _game->getRuleset()->getArmor(_game->getRuleset()->getUnit(item->getType())->getArmor())->g… in moveRightByValue()
546 RuleItem *ammo = _game->getRuleset()->getItem(item->getCompatibleAmmo()->front()); in moveRightByValue()
H A DSellState.cpp215 const std::vector<std::string> &items = _game->getRuleset()->getItemsList(); in SellState()
233 if (qty > 0 && (Options::canSellLiveAliens || !_game->getRuleset()->getItem(*i)->getAlien())) in SellState()
237 RuleItem *rule = _game->getRuleset()->getItem(*i); in SellState()
329 …e->getItems()->addItem((*w)->getRules()->getClipItem(), (*w)->getClipsLoaded(_game->getRuleset())); in btnOkClick()
564 return _game->getRuleset()->getItem(_items[getItemIndex(_sel)])->getSellCost(); in getPrice()
651 armor = _game->getRuleset()->getItem(_soldiers[_sel]->getArmor()->getStoreItem()); in changeByValue()
661 weapon = _game->getRuleset()->getItem((*w)->getRules()->getLauncherItem()); in changeByValue()
663 ammo = _game->getRuleset()->getItem((*w)->getRules()->getClipItem()); in changeByValue()
665 total += ammo->getSize() * (*w)->getClipsLoaded(_game->getRuleset()); in changeByValue()
671 item = _game->getRuleset()->getItem(_items[getItemIndex(_sel)]); in changeByValue()
[all …]
H A DManageAlienContainmentState.cpp61 if (_game->getRuleset()->getUnit(research->getName())) in ManageAlienContainmentState()
167 const std::vector<std::string> &items = _game->getRuleset()->getItemsList(); in ManageAlienContainmentState()
171 if (qty > 0 && _game->getRuleset()->getItem(*i)->getAlien()) in ManageAlienContainmentState()
222 …_game->getSavedGame()->setFunds(_game->getSavedGame()->getFunds() + _game->getRuleset()->getItem(_… in btnOkClick()
228 _game->getRuleset()->getArmor( in btnOkClick()
229 _game->getRuleset()->getUnit( in btnOkClick()
H A DPlaceLiftState.cpp64 _view->setSelectable(_game->getRuleset()->getBaseFacility("STR_ACCESS_LIFT")->getSize()); in PlaceLiftState()
85 …BaseFacility *fac = new BaseFacility(_game->getRuleset()->getBaseFacility("STR_ACCESS_LIFT"), _bas… in viewClick()
H A DCraftWeaponsState.cpp108 const std::vector<std::string> &weapons = _game->getRuleset()->getCraftWeaponsList(); in CraftWeaponsState()
111 RuleCraftWeapon *w = _game->getRuleset()->getCraftWeapon(*i); in CraftWeaponsState()
159 …Items()->addItem(current->getRules()->getClipItem(), current->getClipsLoaded(_game->getRuleset())); in lstWeaponsClick()
H A DTransferItemsState.cpp178 const std::vector<std::string> &items = _game->getRuleset()->getItemsList(); in TransferItemsState()
187 RuleItem *rule = _game->getRuleset()->getItem(*i); in TransferItemsState()
549 selItem = _game->getRuleset()->getItem(_items[getItemIndex(_sel)]); in increaseByValue()
575 …sEnforced && _baseTo->storesOverfull(_iQty + craft->getItems()->getTotalSize(_game->getRuleset()))) in increaseByValue()
613 _iQty += craft->getItems()->getTotalSize(_game->getRuleset()); in increaseByValue()
621 double storesNeededPerItem = _game->getRuleset()->getItem(_items[getItemIndex(_sel)])->getSize(); in increaseByValue()
678 _iQty -= craft->getItems()->getTotalSize(_game->getRuleset()); in decreaseByValue()
683 const RuleItem * selItem = _game->getRuleset()->getItem(_items[getItemIndex(_sel)]); in decreaseByValue()
719 RuleItem *rule = _game->getRuleset()->getItem(_items[_sel - _itemOffset]); in updateItemStrings()
H A DBuildFacilitiesState.cpp102 const std::vector<std::string> &facilities = _game->getRuleset()->getBaseFacilitiesList(); in PopulateBuildList()
105 RuleBaseFacility *rule = _game->getRuleset()->getBaseFacility(*i); in PopulateBuildList()
H A DStoresState.cpp98 const std::vector<std::string> &items = _game->getRuleset()->getItemsList(); in StoresState()
104 RuleItem *rule = _game->getRuleset()->getItem(*i); in StoresState()
H A DSoldierArmorState.cpp97 const std::vector<std::string> &armors = _game->getRuleset()->getArmorsList(); in SoldierArmorState()
100 Armor *a = _game->getRuleset()->getArmor(*i); in SoldierArmorState()
/dports/games/openxcom/OpenXcom-1.0/src/Menu/
H A DNewBattleState.cpp177 _missionTypes = _game->getRuleset()->getDeploymentsList(); in NewBattleState()
183 if (!_game->getRuleset()->getTerrain(*i)->getTextures()->empty()) in NewBattleState()
191 _alienRaces = _game->getRuleset()->getAlienRacesList(); in NewBattleState()
200 const std::vector<std::string> &crafts = _game->getRuleset()->getCraftsList(); in NewBattleState()
203 RuleCraft *rule = _game->getRuleset()->getCraft(*i); in NewBattleState()
297 const Ruleset *rule = _game->getRuleset(); in load()
316 RuleItem *rule = _game->getRuleset()->getItem(*i); in load()
327 RuleItem *rule = _game->getRuleset()->getItem(i->first); in load()
384 const Ruleset *rule = _game->getRuleset(); in initSave()
387 const YAML::Node &starter = _game->getRuleset()->getStartingBase(); in initSave()
[all …]
H A DStartState.cpp311 …game->setResourcePack(new XcomResourcePack(game->getRuleset()->getExtraSprites(), game->getRuleset in load()
/dports/games/openxcom/OpenXcom-1.0/src/Battlescape/
H A DBattlescapeGenerator.cpp439 RuleItem *rule = _game->getRuleset()->getItem(i->first); in deployXCOM()
576 Unit *rule = _game->getRuleset()->getUnit(vehicle); in addXCOMVehicle()
703 _game->getRuleset()->getAlienItemLevels().size() - 1 : // then in deployAliens()
728 Unit *rule = _game->getRuleset()->getUnit(alienName); in deployAliens()
756 RuleItem *ruleItem = _game->getRuleset()->getItem((*it)); in deployAliens()
1031 …vector<std::string>::const_iterator i = _game->getRuleset()->getInvsList().begin(); i != _game->ge… in addItem()
1033 RuleInventory *slot = _game->getRuleset()->getInventory(*i); in addItem()
1343 if (_game->getRuleset()->getMCDPatch((*i)->getName())) in generateMap()
1505 if (_game->getRuleset()->getMCDPatch((*i)->getName())) in generateMap()
1528 if (_game->getRuleset()->getMCDPatch((*i)->getName())) in generateMap()
[all …]
H A DInventory.cpp140 …string, RuleInventory*>::iterator i = _game->getRuleset()->getInventories()->begin(); i != _game-> in drawGrid()
375 …string, RuleInventory*>::iterator i = _game->getRuleset()->getInventories()->begin(); i != _game-> in getSlotInPosition()
478 RuleInventory *newSlot = _game->getRuleset()->getInventory("STR_GROUND"); in mouseClick()
487 newSlot = _game->getRuleset()->getInventory("STR_RIGHT_HAND"); in mouseClick()
493 newSlot = _game->getRuleset()->getInventory("STR_LEFT_HAND"); in mouseClick()
498 newSlot = _game->getRuleset()->getInventory("STR_BACK_PACK"); in mouseClick()
502 newSlot = _game->getRuleset()->getInventory("STR_BELT"); in mouseClick()
516 …ory *>::const_iterator wildCard = _game->getRuleset()->getInventories()->begin(); wildCard != _gam… in mouseClick()
779 moveItem(_selItem->getAmmoItem(), _game->getRuleset()->getInventory("STR_LEFT_HAND"), 0, 0); in unload()
781 moveItem(_selItem, _game->getRuleset()->getInventory("STR_RIGHT_HAND"), 0, 0); in unload()
[all …]
H A DDebriefingState.cpp657 …cStatString(_game->getRuleset()->getStatStrings(), (Options::psiStrengthEval && _game->getSavedGam… in prepareDebriefing()
662 RuleItem *tankRule = _game->getRuleset()->getItem(type); in prepareDebriefing()
697 (*j)->getTile()->addItem(*k, _game->getRuleset()->getInventory("STR_GROUND")); in prepareDebriefing()
704 …corpseItem = _game->getRuleset()->getArmor(_game->getRuleset()->getUnit((*j)->getSpawnUnit())->get… in prepareDebriefing()
708 RuleResearch *research = _game->getRuleset()->getResearch(type); in prepareDebriefing()
728 …_game->getSavedGame()->setFunds(_game->getSavedGame()->getFunds() + _game->getRuleset()->getItem(t… in prepareDebriefing()
1013 RuleItem *tankRule = _game->getRuleset()->getItem(i->first); in reequipCraft()
1015 if (_game->getRuleset()->getUnit(tankRule->getType())) in reequipCraft()
1017 …size = _game->getRuleset()->getArmor(_game->getRuleset()->getUnit(tankRule->getType())->getArmor()… in reequipCraft()
1035 RuleItem *ammo = _game->getRuleset()->getItem(tankRule->getCompatibleAmmo()->front()); in reequipCraft()
[all …]
H A DBattlescapeGame.cpp281 …action.weapon = new BattleItem(_parentState->getGame()->getRuleset()->getItem("ALIEN_PSI_WEAPON"),… in handleAI()
1254 …_currentAction.weapon = new BattleItem(_parentState->getGame()->getRuleset()->getItem("ALIEN_PSI_W… in primaryAction()
1479 _save->getTile(p)->addItem(item, getRuleset()->getInventory("STR_GROUND")); in dropItem()
1546 newArmor << getRuleset()->getUnit(newType)->getArmor(); in convertUnit()
1547 std::string terroristWeapon = getRuleset()->getUnit(newType)->getRace().substr(4); in convertUnit()
1549 RuleItem *newItem = getRuleset()->getItem(terroristWeapon); in convertUnit()
1552 … *newUnit = new BattleUnit(getRuleset()->getUnit(newType), FACTION_HOSTILE, _save->getUnits()->bac… in convertUnit()
1569 bi->setSlot(getRuleset()->getInventory("STR_RIGHT_HAND")); in convertUnit()
1622 const Ruleset *BattlescapeGame::getRuleset() const in getRuleset() function in OpenXcom::BattlescapeGame
1624 return _parentState->getGame()->getRuleset(); in getRuleset()
[all …]
/dports/games/openxcom/OpenXcom-1.0/src/Geoscape/
H A DGeoscapeState.cpp1369 std::string s = (*j)->rearm(_game->getRuleset()); in time1Hour()
1499 _game->getRuleset()->getArmor( in time1Day()
1500 _game->getRuleset()->getUnit( in time1Day()
1528 bonus = _game->getRuleset()->getResearch(sel); in time1Day()
1532 …>getSavedGame()->addFinishedResearch(_game->getRuleset()->getResearch(bonus->getLookup()), _game-> in time1Day()
1545 …getSavedGame()->addFinishedResearch(_game->getRuleset()->getResearch(research->getLookup()), _game… in time1Day()
1606 …cStatString(_game->getRuleset()->getStatStrings(), (Options::psiStrengthEval && _game->getSavedGam… in time1Day()
1694 if (_game->getRuleset()->getAlienRace(*i)->canRetaliate()) in time1Month()
2170 otherMission->setRegion(targetRegion, *_game->getRuleset()); in determineAlienMissions()
2190 otherMission->setRegion(targetRegion, *_game->getRuleset()); in determineAlienMissions()
[all …]
/dports/games/openxcom/OpenXcom-1.0/src/Ufopaedia/
H A DUfopaedia.cpp136 _current_index = getArticleIndex(game->getSavedGame(), game->getRuleset(), article->id); in openArticle()
151 _current_index = getArticleIndex(game->getSavedGame(), game->getRuleset(), article_id); in openArticle()
154 ArticleDefinition *article = game->getRuleset()->getUfopaediaArticle(article_id); in openArticle()
174 ArticleDefinitionList articles = getAvailableArticles(game->getSavedGame(), game->getRuleset()); in next()
194 ArticleDefinitionList articles = getAvailableArticles(game->getSavedGame(), game->getRuleset()); in prev()
H A DArticleStateVehicle.cpp42 Unit *unit = _game->getRuleset()->getUnit(defs->id); in ArticleStateVehicle()
43 Armor *armor = _game->getRuleset()->getArmor(unit->getArmor()); in ArticleStateVehicle()
44 RuleItem *item = _game->getRuleset()->getItem(defs->id); in ArticleStateVehicle()
111 RuleItem *ammo = _game->getRuleset()->getItem(item->getCompatibleAmmo()->front()); in ArticleStateVehicle()
H A DArticleStateItem.cpp42 RuleItem *item = _game->getRuleset()->getItem(defs->id); in ArticleStateItem()
217 ArticleDefinition *ammo_article = _game->getRuleset()->getUfopaediaArticle((*ammo_data)[i]); in ArticleStateItem()
220 RuleItem *ammo_rule = _game->getRuleset()->getItem((*ammo_data)[i]); in ArticleStateItem()
/dports/devel/eris/eris-1.3.23/test/
H A DmetaQuery.cpp115 cout << "\truleset:" << sv.getRuleset() << endl; in dumpToScreen()
157 cout << "<ruleset>" << sv.getRuleset() << "</ruleset>" << endl; in dumpToXML()
185 cout << "Ruleset: " << sv.getRuleset() << "<br/>" << endl; in dumpToHTML()
/dports/security/lego/lego-4.5.3/vendor/github.com/cloudflare/cloudflare-go/
H A Drulesets.go292 return api.getRuleset(ctx, ZoneRouteRoot, zoneID, rulesetID)
299 return api.getRuleset(ctx, AccountRouteRoot, accountID, rulesetID)
304 func (api *API) getRuleset(ctx context.Context, identifierType RouteRoot, identifier, rulesetID str… func
/dports/net/traefik/traefik-2.6.1/vendor/github.com/cloudflare/cloudflare-go/
H A Drulesets.go292 return api.getRuleset(ctx, ZoneRouteRoot, zoneID, rulesetID)
299 return api.getRuleset(ctx, AccountRouteRoot, accountID, rulesetID)
304 func (api *API) getRuleset(ctx context.Context, identifierType RouteRoot, identifier, rulesetID str… func
/dports/devel/eris/eris-1.3.23/Eris/
H A DServerInfo.h50 const std::string& getRuleset() const in getRuleset() function

123