2022-03-22 19:57:01 +00:00
|
|
|
using MultiversalDiplomacy.Model;
|
|
|
|
|
|
|
|
namespace MultiversalDiplomacy.Orders;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// An order for a unit to support another unit.
|
|
|
|
/// </summary>
|
|
|
|
public abstract class SupportOrder : UnitOrder
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// The unit to support.
|
|
|
|
/// </summary>
|
|
|
|
public Unit Target { get; }
|
|
|
|
|
2024-08-15 14:30:43 +00:00
|
|
|
public SupportOrder(string power, Unit unit, Unit target)
|
2022-03-22 19:57:01 +00:00
|
|
|
: base (power, unit)
|
|
|
|
{
|
|
|
|
this.Target = target;
|
|
|
|
}
|
|
|
|
}
|