Home
last modified time | relevance | path

Searched refs:tech_name (Results 1 – 25 of 64) sorted by relevance

123

/dports/games/freeorion/freeorion-0.4.10.2/default/python/AI/
H A DResearchAI.py79 return execute(func_if_true, tech_name=tech_name)
81 return execute(func_if_false, tech_name=tech_name)
97 return value(tech_name=tech_name) if callable(value) else value
101 def wrapper(tech_name=""): argument
292 def get_priority(tech_name): argument
297 return execute(priority_funcs[tech_name], tech_name=tech_name)
306 for tech_name in fo.techs():
478 base_priorities[tech_name] = priorities[tech_name] = get_priority(tech_name)
524 …f %8.2f %-25s %s", tech_name, priorities[tech_name], base_priorities[tech_name], tech_info[1], tec…
554 def is_possible(tech_name): argument
[all …]
H A DAIDependencies.py381 FUEL_UPGRADE_TECHS = frozenset(tech_name for _dict in (FUEL_TANK_UPGRADE_DICT, )
382 for tups in _dict.values() for (tech_name, _) in tups)
387 WEAPON_UPGRADE_DICT = {part_name: tuple({tech_name: damage * SHIP_WEAPON_DAMAGE_FACTOR for tech_nam…
410 FIGHTER_DAMAGE_UPGRADE_DICT = {part_name: tuple({tech_name: damage * FIGHTER_DAMAGE_FACTOR for tech…
428 WEAPON_UPGRADE_TECHS = frozenset(tech_name for _dict in (WEAPON_UPGRADE_DICT, WEAPON_ROF_UPGRADE_DI…
429 for tups in _dict.values() for (tech_name, _) in tups)
430 FIGHTER_UPGRADE_TECHS = frozenset(tech_name for _dict in (FIGHTER_DAMAGE_UPGRADE_DICT, FIGHTER_CAPA…
431 for tups in _dict.values() for (tech_name, _) in tups)
H A DColonisationAI.py558 …net_count = sum(tech_is_complete(tech_name) for tech_name in AIDependencies.DEFENSE_DEFENSE_NET_TE…
559 … regen_count = sum(tech_is_complete(tech_name) for tech_name in AIDependencies.DEFENSE_REGEN_TECHS)
560 …garrison_count = sum(tech_is_complete(tech_name) for tech_name in AIDependencies.DEFENSE_GARRISON_…
561 …shield_count = sum(tech_is_complete(tech_name) for tech_name in AIDependencies.DEFENSE_SHIELDS_TEC…
581 …net_count = sum(tech_is_complete(tech_name) for tech_name in AIDependencies.DEFENSE_DEFENSE_NET_TE…
582 … regen_count = sum(tech_is_complete(tech_name) for tech_name in AIDependencies.DEFENSE_REGEN_TECHS)
583 …garrison_count = sum(tech_is_complete(tech_name) for tech_name in AIDependencies.DEFENSE_GARRISON_…
584 …shield_count = sum(tech_is_complete(tech_name) for tech_name in AIDependencies.DEFENSE_SHIELDS_TEC…
H A DTechsListsAI.py77 tech_name = this_list
81 tech_name = this_list.pop(0)
89 if tech_name in self._tech_queue:
90 msg = "Tech is already in queue: %s" % tech_name
94 self._tech_queue.append(tech_name)
/dports/games/freeorion/freeorion-0.4.10.2/Empire/
H A DResearchQueue.cpp86 bool ResearchQueue::InQueue(const std::string& tech_name) const { in InQueue()
88 [tech_name](const Element& e){ return e.name == tech_name; }); in InQueue()
91 bool ResearchQueue::Paused(const std::string& tech_name) const { in Paused()
92 auto it = find(tech_name); in Paused()
143 if (it->name == tech_name) in find()
167 const std::string& tech_name = tech->Name(); in Update() local
168 sim_tech_status_map[tech_name] = empire->GetTechStatus(tech_name); in Update()
265 const std::string& tech_name = m_queue[cur_tech].name; in Update() local
266 const Tech* tech = GetTech(tech_name); in Update()
287 dpsim_tech_status_map[tech_name] = TS_COMPLETE; in Update()
[all …]
H A DResearchQueue.h54 …bool InQueue(const std::string& tech_name) const;///< Returns true iff \a t…
55 …bool Paused(const std::string& tech_name) const; ///< Returns true iff \a t…
68 const_iterator find(const std::string& tech_name) const;
82 void push_back(const std::string& tech_name, bool paused = false);
83 void insert(iterator it, const std::string& tech_name, bool paused = false);
88 iterator find(const std::string& tech_name);
H A DEmpire.cpp288 const auto& tech_name = progress.first; in MostRPSpentEnqueuedTech() local
289 if (!m_research_queue.InQueue(tech_name)) in MostRPSpentEnqueuedTech()
308 const auto& tech_name = progress.first; in MostRPCostLeftEnqueuedTech() local
309 const Tech* tech = GetTech(tech_name); in MostRPCostLeftEnqueuedTech()
313 if (!m_research_queue.InQueue(tech_name)) in MostRPCostLeftEnqueuedTech()
1648 const std::string& tech_name = tech->Name(); in CheckResearchProgress() local
1649 if (techs_not_suitable_for_auto_allocation.count(tech_name) > 0) in CheckResearchProgress()
1651 if (this->GetTechStatus(tech_name) != TS_RESEARCHABLE) in CheckResearchProgress()
1655 double progress = this->ResearchProgress(tech_name); in CheckResearchProgress()
1703 for (const std::string& tech_name : to_erase_from_queue_and_grant_next_turn) { in CheckResearchProgress() local
[all …]
/dports/games/freeorion/freeorion-0.4.10.2/UI/
H A DTechTreeWnd.h14 std::shared_ptr<GG::BrowseInfoWnd> TechRowBrowseWnd(const std::string& tech_name, int empire_id);
40 bool TechIsVisible(const std::string& tech_name) const;
64 void CenterOnTech(const std::string& tech_name);
65 void SetEncyclopediaTech(const std::string& tech_name);
66 void SelectTech(const std::string& tech_name);
81 void TechLeftClickedSlot(const std::string& tech_name,
83 void AddTechToResearchQueue(const std::string& tech_name,
85 void TechPediaDisplaySlot(const std::string& tech_name);
H A DTechTreeLayout.cpp171 const Tech* node_tech = GetTech(node->tech_name); in DoLayout()
279 tech_name(tech), in Node()
290 tech_name(), in Node()
326 tech_name = child->tech_name; in Node()
446 const Tech* this_node_tech = GetTech(tech_name); in operator <()
448 const Tech* y_node_tech = GetTech(y.tech_name); in operator <()
452 return tech_name < y.tech_name; in operator <()
479 const Tech* this_node_tech = GetTech(tech_name); in AddChild()
491 if (node->tech_name < primary_child->tech_name) in AddChild()
604 const std::string& to = next->tech_name; in CreateEdges()
[all …]
H A DTechTreeWnd.cpp202 ClientUI::TechIcon(tech_name), UserString(tech_name), main_text); in TechRowBrowseWnd()
671 m_tech_name(tech_name), in TechPanel()
1349 m_techs[tech_name] = GG::Wnd::Create<TechPanel>(tech_name, this); in Layout()
1350 m_graph.AddNode(tech_name, m_techs[tech_name]->Width(), m_techs[tech_name]->Height()); in Layout()
1451 if (m_techs.count(tech_name)) in SelectTech()
1611 m_tech(tech_name), in TechRow()
1969 if (!rq.InQueue(tech_name)) { in TechRightClicked()
1981 auto pedia_display_action = [this, &tech_name]() { TechPediaDisplaySignal(tech_name); }; in TechRightClicked()
2325 techs.push_back(tech_name); in AddTechToResearchQueue()
2337 tech_vec.push_back(tech_name); in AddTechToResearchQueue()
[all …]
H A DResearchWnd.cpp132 m_tech_name(tech_name), in QueueTechPanel()
339 std::string tech_name; in ItemRightClickedImpl() local
341 tech_name = UserString(queue_row->elem.name); in ItemRightClickedImpl()
518 { m_tech_tree_wnd->CenterOnTech(tech_name); } in CenterOnTech()
521 m_tech_tree_wnd->SetEncyclopediaTech(tech_name); in ShowTech()
523 m_tech_tree_wnd->CenterOnTech(tech_name); in ShowTech()
524 m_tech_tree_wnd->SelectTech(tech_name); in ShowTech()
644 for (const std::string& tech_name : tech_vec) { in AddTechsToQueueSlot() local
645 if (empire->TechResearched(tech_name)) in AddTechsToQueueSlot()
659 if (!queue.InQueue(tech_name)) { in AddTechsToQueueSlot()
[all …]
H A DResearchWnd.h37 void CenterOnTech(const std::string& tech_name);
41 void ShowTech(const std::string& tech_name, bool force = true);
H A DTechTreeArcs.cpp114 for (const std::string& tech_name : techs) { in FillArcBuffer() local
115 const std::vector<TechTreeLayout::Edge*> edges = m_layout.GetOutEdges(tech_name); in FillArcBuffer()
H A DEncyclopediaDetailPanel.cpp231 userstring_tech_names[UserString(tech_name)] = tech_name; in GetSortedPediaDirEntires()
233 for (const auto& tech_name : userstring_tech_names) { in GetSortedPediaDirEntires() local
237 sorted_entries_list.insert({tech_name.first, in GetSortedPediaDirEntires()
239 tech_name.second}}); in GetSortedPediaDirEntires()
508 dir_entries[UserString(tech_name)] = in GetSortedPediaDirEntires()
1083 const std::string& tech_name = tech->Name(); in TechsThatUnlockItem() local
1093 retval.push_back(tech_name); in TechsThatUnlockItem()
1247 for (const auto& tech_name : unlocked_by_techs) in RefreshDetailPanelShipPartTag() local
1321 for (const auto& tech_name : unlocked_by_techs) in RefreshDetailPanelShipHullTag() local
1367 for (const auto& tech_name : unlocked_techs) { in RefreshDetailPanelTechTag() local
[all …]
/dports/games/freeciv/freeciv-2.6.6/tools/ruledit/
H A Dtab_tech.cpp172 fill_menu->addAction(tech_name(padv)); in techs_to_menu()
179 QString tab_tech::tech_name(struct advance *padv) in tech_name() function in tab_tech
210 req1_button->setText(tech_name(adv->require[AR_ONE])); in update_tech_info()
211 req2_button->setText(tech_name(adv->require[AR_TWO])); in update_tech_info()
212 root_req_button->setText(tech_name(adv->require[AR_ROOT])); in update_tech_info()
H A Dtab_tech.h48 QString tech_name(struct advance *padv);
/dports/games/freeciv-nox11/freeciv-2.6.6/tools/ruledit/
H A Dtab_tech.cpp172 fill_menu->addAction(tech_name(padv)); in techs_to_menu()
179 QString tab_tech::tech_name(struct advance *padv) in tech_name() function in tab_tech
210 req1_button->setText(tech_name(adv->require[AR_ONE])); in update_tech_info()
211 req2_button->setText(tech_name(adv->require[AR_TWO])); in update_tech_info()
212 root_req_button->setText(tech_name(adv->require[AR_ROOT])); in update_tech_info()
H A Dtab_tech.h48 QString tech_name(struct advance *padv);
/dports/finance/odoo/odoo-19d77c2a03335eb95a686bd69a1b56b38e87d609/odoo/addons/base_geolocalize/models/
H A Dbase_geocoder.py17 tech_name = fields.Char() variable in GeoProvider
49 provider = self._get_provider().tech_name
64 provider = self._get_provider().tech_name
/dports/games/freeorion/freeorion-0.4.10.2/client/AI/
H A DAIWrapper.cpp313 int IssueEnqueueTechOrder(const std::string& tech_name, int position) { in IssueEnqueueTechOrder() argument
314 const Tech* tech = GetTech(tech_name); in IssueEnqueueTechOrder()
323 std::make_shared<ResearchQueueOrder>(empire_id, tech_name, position)); in IssueEnqueueTechOrder()
328 int IssueDequeueTechOrder(const std::string& tech_name) { in IssueDequeueTechOrder() argument
329 const Tech* tech = GetTech(tech_name); in IssueDequeueTechOrder()
337 …ientApp::GetApp()->Orders().IssueOrder(std::make_shared<ResearchQueueOrder>(empire_id, tech_name)); in IssueDequeueTechOrder()
/dports/games/freeorion/freeorion-0.4.10.2/util/
H A DSitRepEntry.h44 SitRepEntry CreateTechResearchedSitRep(const std::string& tech_name);
49 SitRepEntry CreateTechUnlockedSitRep(const std::string& tech_name);
H A DSitRepEntry.cpp59 SitRepEntry CreateTechResearchedSitRep(const std::string& tech_name) { in CreateTechResearchedSitRep() argument
65 sitrep.AddVariable(VarText::TECH_TAG, tech_name); in CreateTechResearchedSitRep()
104 SitRepEntry CreateTechUnlockedSitRep(const std::string& tech_name) { in CreateTechUnlockedSitRep() argument
110 sitrep.AddVariable(VarText::TECH_TAG, tech_name); in CreateTechUnlockedSitRep()
H A DOrder.h486 ResearchQueueOrder(int empire, const std::string& tech_name);
487 ResearchQueueOrder(int empire, const std::string& tech_name, int position);
488 ResearchQueueOrder(int empire, const std::string& tech_name, bool pause, float dummy);
/dports/multimedia/obs-studio/obs-studio-27.1.3/plugins/obs-filters/
H A Dcolor-grade-filter.c428 const char *tech_name = "Draw3D"; in color_grade_filter_render() local
431 tech_name = "Draw1D"; in color_grade_filter_render()
459 0, tech_name); in color_grade_filter_render()
/dports/cad/tkgate/tkgate-2.1/src/tkgate/
H A Dvgrammar.y79 static char *tech_name = "default"; variable
489 tech_def : TECHNOLOGY LITERAL { tech_name = $2; } LBRACE primdefs RBRACE { tech_name = "default"; }
498 primdef : PRIMITIVE LITERAL { VerBeginDelayDef(tech_name,$2); } LBRACE pstats RBRACE { VerEndDelayD…

123