Example #1
0
 public TacticsInfo(TacticsType type, double attackFactor, double defenseFactor)
 {
     _type          = type;
     _attackFactor  = attackFactor;
     _defenseFactor = defenseFactor;
 }
Example #2
0
 public double AttackFactor(TacticsType type)
 {
     return(_tacticsData.ContainsKey(type) ? _tacticsData[type].AttackFactor : 1.0);
 }
Example #3
0
 public double DefenseFactor(TacticsType type)
 {
     return(_tacticsData.ContainsKey(type) ? _tacticsData[type].DefenseFactor : 1.0);
 }
Example #4
0
 public ITacticsInfo GeTacticsInfo(TacticsType type)
 {
     return(_tacticsData.ContainsKey(type) ? _tacticsData[type] : null);
 }