/// <summary> /// Initializes a new instance of the <see cref="AUnitCmdItemData" /> class. /// </summary> /// <param name="cmd">The command.</param> /// <param name="owner">The owner.</param> /// <param name="passiveCMs">The passive countermeasures protecting the command staff.</param> /// <param name="cmdStat">The command stat.</param> public AUnitCmdData(IUnitCmd cmd, Player owner, IEnumerable<PassiveCountermeasure> passiveCMs, UnitCmdStat cmdStat) : base(cmd, owner, cmdStat.MaxHitPoints, passiveCMs) { ParentName = cmdStat.UnitName; UnitFormation = cmdStat.UnitFormation; MaxCmdEffectiveness = cmdStat.MaxCmdEffectiveness; // A command's UnitMaxHitPoints are constructed from the sum of the elements InitializeCollections(); }
public AUnitBaseCmdData(IUnitCmd cmd, Player owner, IEnumerable<PassiveCountermeasure> passiveCMs, UnitCmdStat cmdStat) : base(cmd, owner, passiveCMs, cmdStat) { }