Home
last modified time | relevance | path

Searched refs:unit2 (Results 1 – 25 of 801) sorted by relevance

12345678910>>...33

/dports/games/xconq/xconq-7.5.0-0pre.0.20050612/kernel/
H A Dmove.c67 return (((unit->act->acp * unit_speed(unit2, unit2->x, unit2->y)) / 100 in has_enough_mp()
85 u_acp_min(u)) * unit_speed(unit2, unit2->x, unit2->y)) / 100 in can_have_enough_mp()
328 unit_handle(unit2->side, unit2)); in do_move_action()
333 unit_handle(unit2->side, unit2), t_type_name(t)); in do_move_action()
338 unit_handle(unit2->side, unit2), t_type_name(t)); in do_move_action()
439 ndist = distance(unit2->x, unit2->y, x, y); in do_move_action()
461 if (alive(unit2) && unit2->act) in do_move_action()
479 ox = unit2->x; oy = unit2->y; oz = unit2->z; in check_move_action()
1330 ox = unit2->x; oy = unit2->y; oz = unit2->z; in do_enter_action()
1411 u2x = unit2->x; u2y = unit2->y; in check_enter_action()
[all …]
H A Dcombat.c527 u2x = unit2->x; u2y = unit2->y; in check_attack_action()
570 ox = unit2->x; oy = unit2->y; oz = unit2->z; in do_overrun_action()
694 u2x = unit2->x; u2y = unit2->y; u2z = unit2->z; in check_overrun_action()
847 unit2->hp = unit2->hp2 = u_hp(u3); in model_1_attack()
856 set_unit_origside(unit2, unit2->side); in model_1_attack()
1114 if (units_visible(side, unit2->x, unit2->y)) in do_fire_at_action()
1246 if (units_visible(side, unit2->x, unit2->y)) in do_fire_into_action()
1297 u2x = unit2->x; u2y = unit2->y; u2z = unit2->z; in check_fire_into_action()
2651 x = unit2->x; y = unit2->y; in capture_unit_2()
2652 see_exact(newside, unit2->x, unit2->y); in capture_unit_2()
[all …]
H A Daction.def14 (Unit *unit, Unit *unit2),
26 (Unit *unit, Unit *unit2, Unit *dest),
56 (Unit *unit, Unit *unit2, Unit *defender),
68 (Unit *unit, Unit *unit2, int m, int n),
86 (Unit *unit, Unit *unit2, int u3),
92 (Unit *unit, Unit *unit2, int u3),
110 (Unit *unit, Unit *unit2, Unit *newunit),
116 (Unit *unit, Unit *unit2, Unit *unit3),
122 (Unit *unit, Unit *unit2),
134 (Unit *unit, Unit *unit2, int u3),
[all …]
H A Dactions.c3294 unit2->cp = 0; in make_unit_complete()
3587 if (unit2 != unit && unit_trusts_unit(unit, unit2)) { in distribute_material()
3723 enter_cell(unit3, unit2->x, unit2->y); in do_transfer_part_action()
3744 unit2->hp2 = unit2->hp; in do_transfer_part_action()
3747 update_unit_display(unit2->side, unit2, TRUE); in do_transfer_part_action()
3813 update_unit_display(unit2->side, unit2, TRUE); in do_change_type_action()
3937 space = um_storage_x(unit2->type, m) - unit2->supply[m]; in do_alter_cell_action()
3951 space = um_storage_x(unit2->type, m) - unit2->supply[m]; in do_alter_cell_action()
4163 space = um_storage_x(unit2->type, m) - unit2->supply[m]; in do_remove_terrain_action()
4177 space = um_storage_x(unit2->type, m) - unit2->supply[m]; in do_remove_terrain_action()
[all …]
H A Dmkroads.c40 Unit *unit1, *unit2; in make_roads() local
86 for_all_units(unit2) { in make_roads()
87 if (unit1 != unit2 in make_roads()
88 && in_play(unit2) in make_roads()
90 || unit1->side == unit2->side in make_roads()
91 || (unit_sees_other_unit(unit1, unit2) in make_roads()
94 lay_road_between(unit1->x, unit1->y, unit2->x, unit2->y); in make_roads()
155 if (unit_view_at(side, unit2->x, unit2->y) != NULL) in unit_sees_other_unit()
160 && terrain_view(side, unit2->x, unit2->y) != UNSEEN in unit_sees_other_unit()
161 && (u_see_always(unit2->type) || already_seen_chance(side, unit2) >= 100)) in unit_sees_other_unit()
[all …]
H A Dai.c1041 Unit *unit2; in check_current_target() local
1094 Unit *unit2; in defensive_reaction() local
1116 if (unit2) { in defensive_reaction()
1166 net_set_capture_task(unit, unit2->x, unit2->y, unit2->type, in keep_defensive_goal()
1174 net_set_hit_unit_task(unit, unit2->x, unit2->y, in keep_defensive_goal()
1175 unit2->type, unit2->side->id); in keep_defensive_goal()
1265 return unit2; in undefended_neighbour()
1293 && (distance(unit2->x, unit2->y, unit3->x, unit3->y) <= in maybe_defend_other_transport()
1294 distance(unit2->x, unit2->y, unit->x, unit->y))) { in maybe_defend_other_transport()
1759 for_all_stack(unit2->x, unit2->y, unit3) { in real_capture_chance()
[all …]
H A Dnlang.c890 if (in_play(unit2) && unit2->type == u2) { in construction_desc()
2016 if (unit2 != NULL && unit2->side == side) { in destination_desc()
2030 if (unit2 != NULL && unit2->side == side) { in destination_desc()
2280 unit2->cp, u_cp(unit2->type)); in task_desc()
2371 tprintf(buf, "(%d,%d)", unit2->x, unit2->y); in task_desc()
2484 u_type_name(unit2->type), unit2->x, unit2->y); in action_desc()
2535 u_type_name(unit2->type), unit2->x, unit2->y); in action_desc()
2551 u_type_name(unit2->type), unit2->x, unit2->y, in action_desc()
2572 u_type_name(unit2->type), unit2->x, unit2->y); in action_desc()
2850 || (unit2 != NULL && side3 == unit2->side))) { in notify_combat()
[all …]
/dports/lang/kawa/kawa-3.1.1/gnu/math/
H A DUnit.java35 if (unit1 == unit2) in times()
38 unit2 = Unit.Empty; in times()
43 unit1 = unit2; in times()
45 unit2 = Unit.Empty; in times()
58 if (munit1.unit1 == unit2) in times()
61 if (munit1.unit2 == unit2) in times()
67 if (munit1.unit1 == munit2.unit1 && munit1.unit2 == munit2.unit2) in times()
70 munit1.unit2, in times()
72 if (munit1.unit1 == munit2.unit2 && munit1.unit2 == munit2.unit1) in times()
75 munit1.unit2, in times()
[all …]
H A DMulUnit.java14 Unit unit2; field in MulUnit
19 MulUnit (Unit unit1, int power1, Unit unit2, int power2) in MulUnit() argument
22 this.unit2 = unit2; in MulUnit()
34 factor /= unit2.factor; in MulUnit()
39 factor *= unit2.factor; in MulUnit()
46 MulUnit (Unit unit1, Unit unit2, int power2) in MulUnit() argument
48 this (unit1, 1, unit2, power2); in MulUnit()
63 str.append(unit2); in toString()
85 if (u.unit1 == unit1 && u.unit2 == unit2 in lookup()
108 out.writeObject(unit2); in writeExternal()
[all …]
/dports/astro/py-astropy/astropy-5.0/astropy/units/quantity_helper/
H A Dhelpers.py41 if unit2 is None:
47 unit2 = unit1
49 elif unit2 is unit1:
63 return converters, unit2
208 def helper_division(f, unit1, unit2): argument
212 def helper_power(f, unit1, unit2): argument
215 if unit2 is None:
225 def helper_ldexp(f, unit1, unit2): argument
226 if unit2 is not None:
285 def helper_divmod(f, unit1, unit2): argument
[all …]
/dports/math/py-unyt/unyt-2.8.0/unyt/
H A Dexceptions.py33 def __init__(self, operation, unit1, unit2=None): argument
36 self.unit2 = unit2
44 if self.unit2 is not None:
45 err += 'and "%s" (dimensions "%s") ' % (self.unit2, self.unit2.dimensions)
65 def __init__(self, unit1, dimension1, unit2, dimension2): argument
67 self.unit2 = unit2
76 self.unit2,
202 def __init__(self, equiv, unit1, unit2): argument
205 self.unit2 = unit2
210 if isinstance(self.unit2, Unit):
[all …]
/dports/science/udunits/udunits-2.2.28/lib/
H A Dudunits-1.c87 ut_free(unit->unit2); in freeIfAllocated()
89 unit->unit2 = NULL; in freeIfAllocated()
104 unit->unit2 = NULL; in utIni()
111 ut_unit* const unit2) in setUnit() argument
120 unit->unit2 = unit2; in setUnit()
420 ut_unit* const unit2) in resultingUnit() argument
422 if (unit2 == NULL) { in resultingUnit()
426 if (setUnit(result, unit2) != 0) { in resultingUnit()
469 : resultingUnit(result, ut_multiply(term1->unit2, term2->unit2)); in utMultiply()
483 : resultingUnit(result, ut_divide(numer->unit2, denom->unit2)); in utDivide()
[all …]
H A Dunitcore.c695 assert(unit2 != NULL); in basicCompare()
734 assert(unit2 != NULL); in basicMultiply()
991 assert(unit2 != NULL); in productCompare()
993 if (IS_BASIC(unit2)) { in productCompare()
1077 assert(unit2 != NULL); in productMultiply()
1390 assert(unit2 != NULL); in productRelationship()
1754 assert(unit2 != NULL); in galileanMultiply()
2146 assert(unit2 != NULL); in timestampCompare()
2208 assert(unit2 != NULL); in timestampMultiply()
2434 if (!IS_LOG(unit2)) { in logCompare()
[all …]
H A DtestUnits-1.c193 utUnit unit2; in test_utCopy() local
197 utIni(&unit2); in test_utCopy()
203 CU_ASSERT_PTR_NULL(utCopy(NULL, &unit2)); in test_utCopy()
331 utUnit unit1, unit2; in test_utPrint() local
336 utIni(&unit2); in test_utPrint()
339 CU_ASSERT_EQUAL(utScan(string, &unit2), 0); in test_utPrint()
347 CU_ASSERT_EQUAL(utScan(string, &unit2), 0); in test_utPrint()
354 CU_ASSERT_EQUAL(utScan(string, &unit2), 0); in test_utPrint()
361 CU_ASSERT_EQUAL(utScan(string, &unit2), 0); in test_utPrint()
407 utUnit unit1, unit2; in test_utFind() local
[all …]
/dports/databases/grass7/grass-7.8.6/ps/ps.map/
H A Dscale.c35 char unit2[30]; in do_scale() local
85 *unit2 = 0; in do_scale()
88 if (sscanf(text, "%ld %s %s %ld %s", &n1, unit1, equals, &n2, unit2) == 5) { in do_scale()
101 if (strncmp(unit2, "mile", 4) == 0) { in do_scale()
103 strcpy(unit2, "mile"); in do_scale()
105 else if (strncmp(unit2, "meter", 5) == 0) { in do_scale()
107 strcpy(unit2, "meter"); in do_scale()
109 else if (strncmp(unit2, "kilometer", 9) == 0) { in do_scale()
111 strcpy(unit2, "kilometer"); in do_scale()
125 strcat(unit2, "s"); in do_scale()
[all …]
H A Dchk_scale.c15 char unit2[30]; in check_scale() local
58 *unit2 = 0; in check_scale()
61 if (sscanf(text, "%ld %s %s %ld %s", &n1, unit1, equals, &n2, unit2) == 5) { in check_scale()
74 if (strncmp(unit2, "mile", 4) == 0) in check_scale()
76 if (strncmp(unit2, "meter", 5) == 0) in check_scale()
78 if (strncmp(unit2, "kilometer", 9) == 0) in check_scale()
/dports/textproc/translate-toolkit/translate-toolkit-3.5.1/translate/storage/
H A Dtest_csvl10n.py23 assert unit2.source == "'Blessed' String"
69 unit2 = store.units[1]
70 assert unit2.location == "65067"
71 assert unit2.source == "Ogra"
72 assert unit2.target == "Ogros"
73 assert unit1.getid() != unit2.getid()
84 unit2 = store.units[1]
85 assert unit2.context == "65067"
86 assert unit2.source == "Ogre"
87 assert unit2.target == "Ogros"
[all …]
/dports/science/py-MDAnalysisTests/MDAnalysisTests-0.19.2/MDAnalysisTests/utils/
H A Dtest_units.py91 def test_length(self, quantity, unit1, unit2, ref): argument
92 self._assert_almost_equal_convert(quantity, unit1, unit2, ref)
98 def test_time(self, quantity, unit1, unit2, ref): argument
99 self._assert_almost_equal_convert(quantity, unit1, unit2, ref)
105 def test_energy(self, quantity, unit1, unit2, ref): argument
106 self._assert_almost_equal_convert(quantity, unit1, unit2, ref)
113 def test_force(self, quantity, unit1, unit2, ref): argument
114 self._assert_almost_equal_convert(quantity, unit1, unit2, ref)
118 def test_unit_unknown(self, quantity, unit1, unit2): argument
120 units.convert(quantity, unit1, unit2)
/dports/games/wargus/wargus-3.2.0/scripts/ai/
H A Dai_jadeite_2010.lua242 if (unit2 == nil) then
243 unit2 = AiTransporter()
301 if (unit2 == AiCavalry()) then unit2 = AiCavalryMage() end
305 if (unit2 == AiCavalryMage()) then unit2 = AiCavalry() end
310 if (unit2 == AiShooter()) then unit2 = AiEliteShooter() end
314 if (unit2 == AiEliteShooter()) then unit2 = AiShooter() end
317 if (unit2 == nil) then
330 function AiJadeite_Build_2010(unit, quantity, force, unit2)
384 if (unit2 ~= nil) then AiSet(unit2, 1) end
391 if (unit2 ~= nil) then AiSet(unit2, 1) end
[all …]
/dports/databases/grass7/grass-7.8.6/raster/r.report/
H A Dreport.c5 int unit1, unit2; in report() local
13 for (unit1 = 0; unit1 < nunits; unit1 = unit2 + 1) { in report()
14 unit2 = unit1 + 2; in report()
15 if (unit2 >= nunits) in report()
16 unit2 = nunits - 1; in report()
17 print_report(unit1, unit2); in report()
/dports/science/tfel/tfel-3.4.0/include/TFEL/Math/Quantity/
H A DqtOperations.hxx117 template<typename unit,typename T1,typename unit2,typename T2>
118 struct ResultType<qt<unit,T1>,qt<unit2,T2>, OpMult >{
119 …typedef qt<typename AddUnit_<unit,unit2>::type,typename tfel::typetraits::Promote<T1,T2>::type> ty…
122 template<typename unit,typename T1,typename unit2,typename T2>
124 qt<typename AddUnit_<unit,unit2>::type,typename tfel::typetraits::Promote<T1,T2>::type>
125 operator * (const qt<unit,T1>, const qt<unit2,T2>);
131 template<typename unit,typename T1,typename unit2,typename T2>
132 struct ResultType<qt<unit,T1>,qt<unit2,T2>,OpDiv>{
136 template<typename unit,typename T1,typename unit2,typename T2>
138 qt<typename SubUnit_<unit,unit2>::type,typename tfel::typetraits::Promote<T1,T2>::type>
[all …]
/dports/science/tfel-edf/tfel-3.2.1/include/TFEL/Math/Quantity/
H A DqtOperations.hxx117 template<typename unit,typename T1,typename unit2,typename T2>
118 struct ResultType<qt<unit,T1>,qt<unit2,T2>, OpMult >{
119 …typedef qt<typename AddUnit_<unit,unit2>::type,typename tfel::typetraits::Promote<T1,T2>::type> ty…
122 template<typename unit,typename T1,typename unit2,typename T2>
124 qt<typename AddUnit_<unit,unit2>::type,typename tfel::typetraits::Promote<T1,T2>::type>
125 operator * (const qt<unit,T1>, const qt<unit2,T2>);
131 template<typename unit,typename T1,typename unit2,typename T2>
132 struct ResultType<qt<unit,T1>,qt<unit2,T2>,OpDiv>{
136 template<typename unit,typename T1,typename unit2,typename T2>
138 qt<typename SubUnit_<unit,unit2>::type,typename tfel::typetraits::Promote<T1,T2>::type>
[all …]
/dports/games/wyrmsun/Wyrmsun-3.5.4/scripts/civilizations/germanic/
H A Ddialogues_heimdalls_progeny.lua115 for unit2 = 1,table.getn(nearby_uncount) do
116 if (GetUnitVariable(nearby_uncount[unit2], "Player") == trigger_player) then
117unit2], "Ident"), {GetUnitVariable(nearby_uncount[unit2], "PosX"), GetUnitVariable(nearby_uncount[
215 for unit2 = 1,table.getn(nearby_uncount) do
216 if (GetUnitVariable(nearby_uncount[unit2], "Player") == trigger_player) then
217unit2], "Ident"), {GetUnitVariable(nearby_uncount[unit2], "PosX"), GetUnitVariable(nearby_uncount[
/dports/textproc/translate-toolkit/translate-toolkit-3.5.1/translate/tools/
H A Dpomerge.py37 for unit2 in store2.units:
38 if unit2.isheader():
42 unit1 = store1.findid(unit2.getid())
44 unit1 = store1.findunit(unit2.source)
47 "The template does not contain the following unit:\n%s", str(unit2)
51 if len(unit2.target.strip()) == 0:
54 if unit2.isfuzzy():
56 unit1.merge(unit2, overwrite=True, comments=mergecomments)
/dports/finance/skrooge/skrooge-2.26.1/tests/skgbankmodelertest/
H A Dskgtestunit.cpp89 SKGUnitObject unit2(unit2Named); in main()
119 SKGTESTERROR(QStringLiteral("UNIT:delete"), unit2.remove(), true) in main()
129 SKGTESTERROR(QStringLiteral("UNIT:merge"), unit1.merge(unit2), true) in main()
206 SKGUnitObject unit2(&document1); in main() local
219 SKGTESTERROR(QStringLiteral("UNIT:removeUnit"), unit2.removeUnit(), true) in main()
220 SKGTESTERROR(QStringLiteral("UNIT:save"), unit2.save(), true) in main()
221 SKGTESTERROR(QStringLiteral("UNIT:setUnit"), unit2.setUnit(unit2), false) in main()
222 SKGTESTERROR(QStringLiteral("UNIT:setUnit"), unit2.setUnit(unit1), true) in main()
223 SKGTESTERROR(QStringLiteral("UNIT:save"), unit2.save(), true) in main()
249 SKGTESTERROR(QStringLiteral("UNIT:load"), unit2.load(), true) in main()
[all …]

12345678910>>...33