Home
last modified time | relevance | path

Searched refs:totalStrength (Results 1 – 3 of 3) sorted by relevance

/dports/games/fheroes2/fheroes2-0.9.11/src/fheroes2/castle/
H A Dcastle.cpp2200 double totalStrength = 0; in GetGarrisonStrength() local
2204 totalStrength += heroes.Guest()->GetArmy().GetStrength(); in GetGarrisonStrength()
2207 totalStrength += heroes.Guard()->GetArmy().GetStrength(); in GetGarrisonStrength()
2210 totalStrength += army.GetStrength(); in GetGarrisonStrength()
2214 if ( isCastle() && totalStrength > 1 ) { in GetGarrisonStrength()
2218 totalStrength += towerStr; in GetGarrisonStrength()
2220 totalStrength += towerStr / 2; in GetGarrisonStrength()
2223 totalStrength += towerStr / 2; in GetGarrisonStrength()
2227 totalStrength *= isBuild( BUILD_MOAT ) ? 1.2 : 1.15; in GetGarrisonStrength()
2231 totalStrength *= isBuild( BUILD_MOAT ) ? 1.45 : 1.25; in GetGarrisonStrength()
[all …]
/dports/x11-toolkits/tix/Tix8.4.3/generic/
H A DtixForm.c1813 float totalSize, totalStrength; local
1904 totalStrength = (float)(0.0);
1912 totalStrength += link->clientPtr->spring[axis][0];
1916 totalStrength += springs.tail->clientPtr->spring[axis][1];
1935 if (totalStrength <= 0.0) {
1936 totalStrength = (float)(1.0);
1967 gap0 = (int)(gap * spring0 / totalStrength) + adjust;
1968 gap1 = (int)(gap * spring1 / totalStrength);
/dports/x11-toolkits/p5-Tk/Tk-804.035/pTk/mTk/tixGeneric/
H A DtixForm.c1824 float totalSize, totalStrength; local
1915 totalStrength = (float)(0.0);
1923 totalStrength += link->clientPtr->spring[axis][0];
1927 totalStrength += springs.tail->clientPtr->spring[axis][1];
1946 if (totalStrength <= 0.0) {
1947 totalStrength = (float)(1.0);
1978 gap0 = (int)(gap * spring0 / totalStrength) + adjust;
1979 gap1 = (int)(gap * spring1 / totalStrength);