public SettlementCmdDesign(Player player, string designName, IEnumerable<PassiveCountermeasureStat> passiveCmStats, SettlementCmdStat cmdStat)
     : base(player, designName, passiveCmStats) {
     CmdStat = cmdStat;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SettlementCmdData" /> class
 /// with no passive countermeasures.
 /// </summary>
 /// <param name="settlementCmd">The settlement command.</param>
 /// <param name="owner">The owner.</param>
 /// <param name="cmdStat">The stat.</param>
 public SettlementCmdData(ISettlementCmd settlementCmd, Player owner, SettlementCmdStat cmdStat)
     : this(settlementCmd, owner, Enumerable.Empty<PassiveCountermeasure>(), cmdStat) {
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SettlementCmdData" /> class.
 /// </summary>
 /// <param name="settlementCmd">The settlement command.</param>
 /// <param name="owner">The owner.</param>
 /// <param name="passiveCMs">The passive countermeasures.</param>
 /// <param name="cmdStat">The stat.</param>
 public SettlementCmdData(ISettlementCmd settlementCmd, Player owner, IEnumerable<PassiveCountermeasure> passiveCMs, SettlementCmdStat cmdStat)
     : base(settlementCmd, owner, passiveCMs, cmdStat) {
     Population = cmdStat.Population;
 }
Esempio n. 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SettlementCmdItemData"/> class.
 /// </summary>
 /// <param name="stat">The stat.</param>
 public SettlementCmdItemData(SettlementCmdStat stat)
     : base(stat.Name, stat.MaxHitPoints) {
     MaxCmdEffectiveness = stat.MaxCmdEffectiveness;
     Population = stat.Population;
     UnitFormation = stat.UnitFormation;
 }