5dplomacy/MultiversalDiplomacy/Orders/RetreatOrder.cs

21 lines
502 B
C#
Raw Normal View History

2022-02-19 00:58:16 +00:00
using MultiversalDiplomacy.Model;
namespace MultiversalDiplomacy.Orders;
/// <summary>
/// An order for a dislodged unit to retreat to an adjacent province.
/// </summary>
public class RetreatOrder : UnitOrder
{
/// <summary>
/// The destination location to which the unit should retreat.
/// </summary>
public Location Location { get; }
2024-08-15 14:30:43 +00:00
public RetreatOrder(string power, Unit unit, Location location)
2022-02-19 00:58:16 +00:00
: base (power, unit)
{
this.Location = location;
}
}