Home
last modified time | relevance | path

Searched refs:UnitTypes (Results 1 – 25 of 110) sorted by relevance

12345

/dports/games/stratagus/stratagus-3.2.0/src/unit/
H A Dunittype.cpp758 CUnitType &type = *UnitTypes[j]; in UpdateStats()
823 const CUnitType &type = *UnitTypes[i]; in SaveUnitTypes()
869 type->Slot = UnitTypes.size(); in NewUnitTypeSlot()
877 UnitTypes.push_back(type); in NewUnitTypeSlot()
948 for (size_t i = 0; i < UnitTypes.size(); ++i) { in InitUnitTypes()
949 CUnitType &type = *UnitTypes[i]; in InitUnitTypes()
957 UnitTypeMap[type.Ident] = UnitTypes[i]; in InitUnitTypes()
1052 CUnitType &type = *UnitTypes[i]; in LoadUnitTypes()
1085 UnitTypes[i]->BoolFlag.resize(new_size); in Init()
1110 delete UnitTypes[i]; in CleanUnitTypes()
[all …]
H A Dupgrade.cpp555 for (size_t z = 0; z < UnitTypes.size(); ++z) { in ApplyUpgradeModifier()
556 CUnitStats &stat = UnitTypes[z]->Stats[pn]; in ApplyUpgradeModifier()
573 FindUnitsByType(*UnitTypes[z], unitupgrade); in ApplyUpgradeModifier()
589 FindUnitsByType(*UnitTypes[z], unitupgrade); in ApplyUpgradeModifier()
602 FindUnitsByType(*UnitTypes[z], unitupgrade); in ApplyUpgradeModifier()
623 FindUnitsByType(*UnitTypes[z], unitupgrade); in ApplyUpgradeModifier()
728 for (size_t z = 0; z < UnitTypes.size(); ++z) { in RemoveUpgradeModifier()
729 CUnitStats &stat = UnitTypes[z]->Stats[pn]; in RemoveUpgradeModifier()
746 FindUnitsByType(*UnitTypes[z], unitupgrade); in RemoveUpgradeModifier()
762 FindUnitsByType(*UnitTypes[z], unitupgrade); in RemoveUpgradeModifier()
[all …]
/dports/converters/wkhtmltopdf/qt-5db36ec/src/3rdparty/webkit/Source/WebCore/css/
H A DCSSPrimitiveValue.h52 enum UnitTypes { enum
115 …static PassRefPtr<CSSPrimitiveValue> create(double value, UnitTypes type) { return adoptRef(new CS… in create()
116 …static PassRefPtr<CSSPrimitiveValue> create(const String& value, UnitTypes type) { return adoptRef… in create()
196 CSSPrimitiveValue(double, UnitTypes);
197 CSSPrimitiveValue(const String&, UnitTypes);
214 static PassRefPtr<CSSPrimitiveValue> createUncached(double value, UnitTypes type);
216 static UnitTypes canonicalUnitTypeForCategory(UnitCategory category);
222 bool getDoubleValueInternal(UnitTypes targetUnitType, double* result) const;
H A DCSSQuirkPrimitiveValue.h34 static PassRefPtr<CSSQuirkPrimitiveValue> create(double value, UnitTypes type) in create()
40 CSSQuirkPrimitiveValue(double num, UnitTypes type) in CSSQuirkPrimitiveValue()
H A DCSSPrimitiveValue.cpp51 static CSSPrimitiveValue::UnitCategory unitCategory(CSSPrimitiveValue::UnitTypes type) in unitCategory()
129 CSSPrimitiveValue::CSSPrimitiveValue(double num, UnitTypes type) in CSSPrimitiveValue()
136 CSSPrimitiveValue::CSSPrimitiveValue(const String& str, UnitTypes type) in CSSPrimitiveValue()
412 bool success = getDoubleValueInternal(static_cast<UnitTypes>(unitType), &result); in getDoubleValue()
425 getDoubleValueInternal(static_cast<UnitTypes>(unitType), &result); in getDoubleValue()
429 CSSPrimitiveValue::UnitTypes CSSPrimitiveValue::canonicalUnitTypeForCategory(UnitCategory category) in canonicalUnitTypeForCategory()
451 bool CSSPrimitiveValue::getDoubleValueInternal(UnitTypes requestedUnitType, double* result) const in getDoubleValueInternal()
460 UnitTypes sourceUnitType = static_cast<UnitTypes>(m_type); in getDoubleValueInternal()
464 UnitTypes targetUnitType = requestedUnitType; in getDoubleValueInternal()
H A DCSSParserValues.cpp80 parsedValue = CSSPrimitiveValue::create(string, (CSSPrimitiveValue::UnitTypes)unit); in createCSSValue()
82 parsedValue = CSSPrimitiveValue::create(fValue, (CSSPrimitiveValue::UnitTypes)unit); in createCSSValue()
84 parsedValue = CSSPrimitiveValue::create(fValue, (CSSPrimitiveValue::UnitTypes)unit); in createCSSValue()
H A DCSSPrimitiveValueCache.h45 PassRefPtr<CSSPrimitiveValue> createValue(double value, CSSPrimitiveValue::UnitTypes);
46 …PassRefPtr<CSSPrimitiveValue> createValue(String value, CSSPrimitiveValue::UnitTypes type) { retur… in createValue()
/dports/games/openra/OpenRA-release-20200503/mods/ra/maps/desert-shellmap/
H A Ddesert-shellmap.lua10 UnitTypes = { "ant", "ant", "ant" }
24 UnitTypes = { "3tnk", "ftrk", "ttnk", "apc" }
198 SendSovietUnits(Entry1.Location, UnitTypes, 50)
199 SendSovietUnits(Entry2.Location, UnitTypes, 50)
200 SendSovietUnits(Entry3.Location, UnitTypes, 50)
201 SendSovietUnits(Entry4.Location, UnitTypes, 50)
202 SendSovietUnits(Entry5.Location, UnitTypes, 50)
203 SendSovietUnits(Entry6.Location, UnitTypes, 50)
/dports/games/stratagus/stratagus-3.2.0/src/spell/
H A Dscript_spell.cpp302 …for (std::vector<CUnitType *>::size_type i = 0; i < UnitTypes.size(); ++i) { // adjust array for c… in CclDefineSpell()
303 if (UnitTypes[i]->CanCastSpell) { in CclDefineSpell()
305 memcpy(newc, UnitTypes[i]->CanCastSpell, SpellTypeTable.size() * sizeof(char)); in CclDefineSpell()
306 delete[] UnitTypes[i]->CanCastSpell; in CclDefineSpell()
307 UnitTypes[i]->CanCastSpell = newc; in CclDefineSpell()
308 UnitTypes[i]->CanCastSpell[SpellTypeTable.size()] = 0; in CclDefineSpell()
310 if (UnitTypes[i]->AutoCastActive) { in CclDefineSpell()
312 memcpy(newc, UnitTypes[i]->AutoCastActive, SpellTypeTable.size() * sizeof(char)); in CclDefineSpell()
313 delete[] UnitTypes[i]->AutoCastActive; in CclDefineSpell()
314 UnitTypes[i]->AutoCastActive = newc; in CclDefineSpell()
[all …]
/dports/games/wyrmgus/Wyrmgus-3.5.4/src/stratagus/
H A Dscript.cpp3566 …Editor.UnitTypes.erase(std::remove(Editor.UnitTypes.begin(), Editor.UnitTypes.end(), unit_type->Id… in DeleteModUnitType()
3584 …if (std::find(UnitTypes[j]->Trains.begin(), UnitTypes[j]->Trains.end(), unit_type) != UnitTypes[j]… in DeleteModUnitType()
3585UnitTypes[j]->Trains.erase(std::remove(UnitTypes[j]->Trains.begin(), UnitTypes[j]->Trains.end(), u… in DeleteModUnitType()
3587 …if (std::find(UnitTypes[j]->TrainedBy.begin(), UnitTypes[j]->TrainedBy.end(), unit_type) != UnitTy… in DeleteModUnitType()
3588UnitTypes[j]->TrainedBy.erase(std::remove(UnitTypes[j]->TrainedBy.begin(), UnitTypes[j]->TrainedBy… in DeleteModUnitType()
3590 …if (std::find(UnitTypes[j]->Drops.begin(), UnitTypes[j]->Drops.end(), unit_type) != UnitTypes[j]->… in DeleteModUnitType()
3591UnitTypes[j]->Drops.erase(std::remove(UnitTypes[j]->Drops.begin(), UnitTypes[j]->Drops.end(), unit… in DeleteModUnitType()
3593 …if (std::find(UnitTypes[j]->AiDrops.begin(), UnitTypes[j]->AiDrops.end(), unit_type) != UnitTypes[… in DeleteModUnitType()
3594UnitTypes[j]->AiDrops.erase(std::remove(UnitTypes[j]->AiDrops.begin(), UnitTypes[j]->AiDrops.end()… in DeleteModUnitType()
3609 UnitTypes.erase(std::remove(UnitTypes.begin(), UnitTypes.end(), unit_type), UnitTypes.end()); in DeleteModUnitType()
[all …]
H A Dgrand_strategy.cpp308 if (IsMilitaryUnit(*UnitTypes[i])) { in SetOwner()
315 } else if (UnitTypes[i]->Class != -1 && UnitTypeClasses[UnitTypes[i]->Class] == "worker") { in SetOwner()
343 if (UnitTypes[building_id]->Civilization != -1) { in SetSettlementBuilding()
344 …if (this->GetClassUnitType(UnitTypes[building_id]->Class) != building_id && this->GetClassUnitType… in SetSettlementBuilding()
345 building_id = this->GetClassUnitType(UnitTypes[building_id]->Class); in SetSettlementBuilding()
357 if (UnitTypes[building_id]->GrandStrategyProductionEfficiencyModifier[i] != 0) { in SetSettlementBuilding()
362 …if (UnitTypes[building_id]->Class != -1 && UnitTypeClasses[UnitTypes[building_id]->Class] == "stro… in SetSettlementBuilding()
402 if (IsMilitaryUnit(*UnitTypes[unit_type_id])) { in SetUnitQuantity()
407 …if (UnitTypes[unit_type_id]->Class != -1 && UnitTypeClasses[UnitTypes[unit_type_id]->Class] == "wo… in SetUnitQuantity()
669 for (size_t i = 0; i < UnitTypes.size(); ++i) { in SetTechnology()
[all …]
H A Dscript_item.cpp84 item->Type = UnitTypes[unit_type_id]; in CclDefineUniqueItem()
161 for (size_t i = 0; i < UnitTypes.size(); ++i) { in CclGetItems()
162 if (UnitTypes[i]->BoolFlag[ITEM_INDEX].value) { in CclGetItems()
163 items.push_back(UnitTypes[i]); in CclGetItems()
/dports/games/wyrmgus/Wyrmgus-3.5.4/src/ai/
H A Dscript_ai.cpp127 return UnitTypes; in getUnitTypeFromString()
150 for (std::vector<CUnitType *>::const_iterator i = UnitTypes.begin(); i != UnitTypes.end(); ++i) { in getReparableUnits()
170 for (std::vector<CUnitType *>::const_iterator i = UnitTypes.begin(); i != UnitTypes.end(); ++i) { in getSupplyUnits()
219 for (std::vector<CUnitType *>::const_iterator i = UnitTypes.begin(); i != UnitTypes.end(); ++i) { in getMineUnits()
271 for (std::vector<CUnitType *>::const_iterator i = UnitTypes.begin(); i != UnitTypes.end(); ++i) { in GetMarketUnits()
288 for (std::vector<CUnitType *>::const_iterator i = UnitTypes.begin(); i != UnitTypes.end(); ++i) { in GetNavalTransporterUnits()
356 for (std::vector<CUnitType *>::const_iterator d = UnitTypes.begin(); d != UnitTypes.end(); ++d) { in InitAiHelper()
1002 aiforce.UnitTypes.push_back(newaiut); in CclAiForce()
1012 aiforce.UnitTypes.erase(aiforce.UnitTypes.begin() + i); in CclAiForce()
1018 if (i == aiforce.UnitTypes.size()) { in CclAiForce()
[all …]
H A Dai_force.cpp362 …return UnitTypes[lhs]->MapDefaultStat.Variables[PRIORITY_INDEX].Value > UnitTypes[rhs]->MapDefault… in operator ()()
445 const AiUnitType &aitype = UnitTypes[i]; in IsBelongsTo()
1162 const AiUnitType &aiut = force.UnitTypes[j]; in CheckUnits()
1291 AiPlayer->Force[f].UnitTypes.push_back(AiPlayer->Force[intForce].UnitTypes[top]); in AiAttackWithForce()
1292 AiPlayer->Force[intForce].UnitTypes.pop_back(); in AiAttackWithForce()
1341 while (AiPlayer->Force[force].UnitTypes.size()) { in AiAttackWithForces()
1343 AiPlayer->Force[f].UnitTypes.push_back(AiPlayer->Force[force].UnitTypes[top]); in AiAttackWithForces()
1344 AiPlayer->Force[force].UnitTypes.pop_back(); in AiAttackWithForces()
1918 type = UnitTypes[unit_type_id]; in CheckForceRecruitment()
1954 type = UnitTypes[unit_type_id]; in CheckForceRecruitment()
[all …]
/dports/games/stratagus/stratagus-3.2.0/src/ai/
H A Dai_force.cpp266 …return UnitTypes[lhs]->MapDefaultStat.Variables[PRIORITY_INDEX].Value > UnitTypes[rhs]->MapDefault… in operator ()()
338 for (unsigned int i = 0; i < UnitTypes.size(); ++i) { in IsBelongsTo()
339 const AiUnitType &aitype = UnitTypes[i]; in IsBelongsTo()
679 const AiUnitType &aiut = force.UnitTypes[j]; in CheckUnits()
788 while (AiPlayer->Force[intForce].UnitTypes.size()) { in AiAttackWithForce()
790 AiPlayer->Force[f].UnitTypes.push_back(AiPlayer->Force[intForce].UnitTypes[top]); in AiAttackWithForce()
791 AiPlayer->Force[intForce].UnitTypes.pop_back(); in AiAttackWithForce()
832 while (AiPlayer->Force[force].UnitTypes.size()) { in AiAttackWithForces()
833 top = AiPlayer->Force[force].UnitTypes.size() - 1; in AiAttackWithForces()
834 AiPlayer->Force[f].UnitTypes.push_back(AiPlayer->Force[force].UnitTypes[top]); in AiAttackWithForces()
[all …]
H A Dscript_ai.cpp82 return UnitTypes; in getUnitTypeFromString()
105 for (std::vector<CUnitType *>::const_iterator i = UnitTypes.begin(); i != UnitTypes.end(); ++i) { in getReparableUnits()
125 for (std::vector<CUnitType *>::const_iterator i = UnitTypes.begin(); i != UnitTypes.end(); ++i) { in getSupplyUnits()
170 for (std::vector<CUnitType *>::const_iterator i = UnitTypes.begin(); i != UnitTypes.end(); ++i) { in getRefineryUnits()
240 for (std::vector<CUnitType *>::const_iterator d = UnitTypes.begin(); d != UnitTypes.end(); ++d) { in InitAiHelper()
925 type = UnitTypes[UnitTypeEquivs[type->Slot]]; in CclAiForce()
932 aiforce.UnitTypes.push_back(newaiut); in CclAiForce()
937 AiUnitType *aiut = &aiforce.UnitTypes[i]; in CclAiForce()
942 aiforce.UnitTypes.erase(aiforce.UnitTypes.begin() + i); in CclAiForce()
948 if (i == aiforce.UnitTypes.size()) { in CclAiForce()
[all …]
/dports/games/wyrmgus/Wyrmgus-3.5.4/src/ui/
H A Dbotpanel.cpp892 …r->GetUnitTypeCosts(UnitTypes[button.Value], type_costs, Selected[0]->Type->Stats[Selected[0]->Pla… in DrawPopup()
1185 button_icon = UnitTypes[buttons[i].Value]->GetDefaultVariation(*ThisPlayer)->Icon.Icon; in Draw()
1187 button_icon = UnitTypes[buttons[i].Value]->Icon.Icon; in Draw()
1326 …r->GetUnitTypeCosts(UnitTypes[button.Value], type_costs, Selected[0]->Type->Stats[Selected[0]->Pla… in UpdateStatusLineForButton()
1327 …tCosts(0, UnitTypes[button.Value]->Stats[ThisPlayer->Index].Variables[DEMAND_INDEX].Value * (UnitT… in UpdateStatusLineForButton()
1459 res = CheckDependencies(UnitTypes[buttonaction.Value], &unit, true, true); in IsButtonAllowed()
2074 CUnitType &type = *UnitTypes[CurrentButtons[button].Value]; in DoClicked_Build()
2088 CUnitType &type = *UnitTypes[CurrentButtons[button].Value]; in DoClicked_Train()
2176 CUnitType &type = *UnitTypes[CurrentButtons[button].Value]; in DoClicked_UpgradeTo()
2194 CUnitType &type = *UnitTypes[CurrentButtons[button].Value]; in DoClicked_ExperienceUpgradeTo()
[all …]
/dports/games/wyrmgus/Wyrmgus-3.5.4/src/action/
H A Daction_train.cpp462 for (size_t z = 0; z < UnitTypes.size(); ++z) { in Execute()
463UnitTypes[z] && UnitTypes[z]->GivesResource == table[j]->Type->GivesResource && UnitTypes[z]->Bool… in Execute()
464 …CommandBuildBuilding(*newUnit, table[j]->tilePos, *UnitTypes[z], FlushCommands, table[j]->MapLayer… in Execute()
/dports/lang/rust/rustc-1.58.1-src/src/tools/clippy/clippy_lints/src/unit_types/
H A Dmod.rs96 declare_lint_pass!(UnitTypes => [LET_UNIT_VALUE, UNIT_CMP, UNIT_ARG]);
98 impl LateLintPass<'_> for UnitTypes { implementation
/dports/games/glest/glest_source_3.2.2/source/glest_game/types/
H A Dfaction_type.h32 typedef vector<UnitType> UnitTypes; typedef
39 UnitTypes unitTypes;
/dports/games/wargus/wargus-3.2.0/scripts/
H A Deditor.lua182 Editor.UnitTypes:clear()
184 Editor.UnitTypes:push_back(value)
/dports/games/stratagus/stratagus-3.2.0/src/network/
H A Dcommands.cpp685 CommandLog("build", &unit, status, pos.x, pos.y, NoUnitP, UnitTypes[dstnr]->Ident.c_str(), -1); in ExecCommand()
686 CommandBuildBuilding(unit, pos, *UnitTypes[dstnr], status); in ExecCommand()
716 CommandLog("train", &unit, status, -1, -1, NoUnitP, UnitTypes[dstnr]->Ident.c_str(), -1); in ExecCommand()
717 CommandTrainUnit(unit, *UnitTypes[dstnr], status); in ExecCommand()
723 UnitTypes[dstnr]->Ident.c_str(), (short)x); in ExecCommand()
724 CommandCancelTraining(unit, (short)x, UnitTypes[dstnr]); in ExecCommand()
732 UnitTypes[dstnr]->Ident.c_str(), -1); in ExecCommand()
733 CommandUpgradeTo(unit, *UnitTypes[dstnr], status); in ExecCommand()
/dports/www/kf5-khtml/khtml-5.89.0/src/css/
H A Dcss_svgcssparser.cpp286 … = new CSSPrimitiveValueImpl(domString(value->string), (CSSPrimitiveValue::UnitTypes) value->unit); in parseSVGValue()
313 …e = new CSSPrimitiveValueImpl(domString(value->string), (CSSPrimitiveValue::UnitTypes)value->unit); in parseSVGValue()
315 … parsedValue = new CSSPrimitiveValueImpl(value->fValue, (CSSPrimitiveValue::UnitTypes)value->unit); in parseSVGValue()
343 … ret->append(new CSSPrimitiveValueImpl(value->fValue, (CSSPrimitiveValue::UnitTypes) value->unit)); in parseSVGStrokeDasharray()
/dports/games/wyrmgus/Wyrmgus-3.5.4/src/upgrade/
H A Dupgrade.cpp1293 …[z]->ApplyTo[i] == 'X' || std::find(UnitTypes[i]->Affixes.begin(), UnitTypes[i]->Affixes.end(), up… in CclGetUpgradeData()
1294 applies_to.push_back(UnitTypes[i]->Ident); in CclGetUpgradeData()
1412 force.UnitTypes[j].Type = &dst; in ConvertUnitTypeTo()
1546 for (size_t z = 0; z < UnitTypes.size(); ++z) { in ApplyUpgradeModifier()
1547 CUnitStats &stat = UnitTypes[z]->Stats[pn]; in ApplyUpgradeModifier()
1569 FindUnitsByType(*UnitTypes[z], unitupgrade); in ApplyUpgradeModifier()
1582 FindUnitsByType(*UnitTypes[z], unitupgrade); in ApplyUpgradeModifier()
1654 FindUnitsByType(*UnitTypes[z], unitupgrade); in ApplyUpgradeModifier()
1840 for (size_t z = 0; z < UnitTypes.size(); ++z) { in RemoveUpgradeModifier()
1841 CUnitStats &stat = UnitTypes[z]->Stats[pn]; in RemoveUpgradeModifier()
[all …]
/dports/games/wyrmgus/Wyrmgus-3.5.4/src/network/
H A Dcommands.cpp1009 CommandLog("build", &unit, status, pos.x, pos.y, NoUnitP, UnitTypes[dstnr]->Ident.c_str(), -1); in ExecCommand()
1010 CommandBuildBuilding(unit, pos, *UnitTypes[dstnr], status); in ExecCommand()
1039 …CommandLog("train", &unit, status, -1, -1, NoUnitP, UnitTypes[dstnr]->Ident.c_str(), arg1); // use… in ExecCommand()
1040 CommandTrainUnit(unit, *UnitTypes[dstnr], arg1, status); in ExecCommand()
1047 UnitTypes[dstnr]->Ident.c_str(), (short)x); in ExecCommand()
1048 CommandCancelTraining(unit, (short)x, UnitTypes[dstnr]); in ExecCommand()
1064 UnitTypes[dstnr]->Ident.c_str(), -1); in ExecCommand()
1065 CommandTransformIntoType(unit, *UnitTypes[dstnr]); in ExecCommand()
1068 UnitTypes[dstnr]->Ident.c_str(), -1); in ExecCommand()
1069 CommandUpgradeTo(unit, *UnitTypes[dstnr], status); in ExecCommand()

12345