2022-03-24 16:22:13 +00:00
|
|
|
using MultiversalDiplomacy.Model;
|
|
|
|
using MultiversalDiplomacy.Orders;
|
|
|
|
|
|
|
|
namespace MultiversalDiplomacy.Adjudicate.Decision;
|
|
|
|
|
|
|
|
public class HoldStrength : NumericAdjudicationDecision
|
|
|
|
{
|
|
|
|
public Province Province { get; }
|
2022-03-29 00:41:38 +00:00
|
|
|
public Season Season { get; }
|
2022-03-24 16:22:13 +00:00
|
|
|
public UnitOrder? Order { get; }
|
|
|
|
public List<SupportHoldOrder> Supports { get; }
|
|
|
|
|
2022-11-07 05:58:21 +00:00
|
|
|
public override string ToString()
|
|
|
|
=> Order is null
|
|
|
|
? $"HoldStrength({Province.Abbreviations[0]})"
|
|
|
|
: $"HoldStrength({Order.Unit})";
|
|
|
|
|
2022-03-29 00:41:38 +00:00
|
|
|
public HoldStrength(Province province, Season season, UnitOrder? order = null)
|
2022-03-24 16:22:13 +00:00
|
|
|
{
|
|
|
|
this.Province = province;
|
2022-03-29 00:41:38 +00:00
|
|
|
this.Season = season;
|
2022-03-24 16:22:13 +00:00
|
|
|
this.Order = order;
|
|
|
|
this.Supports = new();
|
|
|
|
}
|
2022-03-29 00:41:38 +00:00
|
|
|
|
|
|
|
public HoldStrength((Province province, Season season) point, UnitOrder? order = null)
|
|
|
|
: this(point.province, point.season, order)
|
|
|
|
{
|
|
|
|
}
|
2022-03-24 16:22:13 +00:00
|
|
|
}
|