using MultiversalDiplomacy.Model; namespace MultiversalDiplomacy.Orders; /// /// An order to move another unit via convoy. /// public class ConvoyOrder : UnitOrder { /// /// The unit to convoy. /// public Unit Target { get; } /// /// The destination season to which the target is moving. /// public Season Season { get; } /// /// The destination location to which the target is moving. /// public Location Location { get; } /// /// The destination province to which the target is moving. /// public Province Province => this.Location.Province; public ConvoyOrder(string power, Unit unit, Unit target, Season season, Location location) : base (power, unit) { this.Target = target; this.Season = season; this.Location = location; } public override string ToString() { return $"{this.Unit} con {this.Target} -> {(this.Province, this.Season).ToShort()}"; } }