using MultiversalDiplomacy.Model; using static MultiversalDiplomacy.Model.Location; namespace MultiversalDiplomacy.Orders; /// /// An order for a unit to move to another province. /// public class MoveOrder : UnitOrder { /// /// The destination season to which the unit should move. /// public Season Season { get; } /// /// The destination province/location to which the unit should move. /// public string Location { get; } public MoveOrder(string power, Unit unit, Season season, string location) : base (power, unit) { this.Season = season; this.Location = location; } public override string ToString() { return $"{this.Unit} -> {Season.Timeline}-{SplitKey(Location).province}@{Season.Turn}"; } }