1 person disorganized?

正在查看此主题的用户

Correct.
Sweet. One last question.
How is calculated the variable totalMenCount?
i see this variable used in
GetCavalryRatioModifier
GetFootmenPerkBonus
GetHerdingModifier
GetMountedFootmenRatioModifier
GetSizeModifierPrisoner
GetSizeModifierWounded
GetWoundedModifier
But can't find how it is calculated...
 
public int TotalManCount
{
get
{
return this._totalRegulars + this._totalHeroes; (Heros and Troops)
}
}


in the TroopRoster class
 
public int TotalManCount
{
get
{
return this._totalRegulars + this._totalHeroes; (Heros and Troops)
}
}


in the TroopRoster class
Okay, I see.
And then, i guess, there is another step somewhere for TotalManCount --> totalMenCount...
 
Okay, I see.
And then, i guess, there is another step somewhere for TotalManCount --> totalMenCount...


in the DefaultPartySpeedCalculatingModel class its this

int num4 = mobileParty.MemberRoster.TotalManCount + additionalTroopOnFootCount + additionalTroopOnHorseCount;

=> mobileParty is an object from Partybase class
=>MemberRoster creates an object of TroopRoster class
=>TroopRoster has the "method" TotalManCount

float herdingModifier = this.GetHerdingModifier(num4, num3) ==> calls the Method "GetHerdingModifier" and give this Method the Parameters (num4=1 and num3=1 e.g.)




private float GetHerdingModifier(int totalMenCount, int herdSize) ===>>Method with Parameters. These Parameters get the values of the "call" . They can also be named e.g. private float GetHerdingModifier(int mami, int papi) it doesnt have any impact. But than the writing would be:

if(papi==0)
{
return -0.8f
}
 
in the DefaultPartySpeedCalculatingModel class its this

int num4 = mobileParty.MemberRoster.TotalManCount + additionalTroopOnFootCount + additionalTroopOnHorseCount;

=> mobileParty is an object from Partybase class
=>MemberRoster creates an object of TroopRoster class
=>TroopRoster has the "method" TotalManCount

float herdingModifier = this.GetHerdingModifier(num4, num3) ==> calls the Method "GetHerdingModifier" and give this Method the Parameters (num4=1 and num3=1 e.g.)




private float GetHerdingModifier(int totalMenCount, int herdSize) ===>>Method with Parameters. These Parameters get the values of the "call" . They can also be named e.g. private float GetHerdingModifier(int mami, int papi) it doesnt have any impact. But than the writing would be:

if(papi==0)
{
return -0.8f
}
Ok, I get it!
I realize now how my question was so basic...
Thank you for taking time to explain it.
"papi" and "mami" example was a funny one :wink:
 
后退
顶部 底部