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