2022-11-09 00:25:47 +00:00
|
|
|
using System.Collections.ObjectModel;
|
|
|
|
|
|
|
|
using MultiversalDiplomacy.Orders;
|
|
|
|
|
|
|
|
namespace MultiversalDiplomacy.Model;
|
|
|
|
|
|
|
|
public class OrderHistory
|
|
|
|
{
|
|
|
|
public List<UnitOrder> Orders;
|
|
|
|
|
|
|
|
public Dictionary<Unit, bool> IsDislodgedOutcomes;
|
|
|
|
|
|
|
|
public Dictionary<MoveOrder, bool> DoesMoveOutcomes;
|
|
|
|
|
|
|
|
public OrderHistory()
|
2024-08-13 04:58:24 +00:00
|
|
|
: this([], [], [])
|
2022-11-09 00:25:47 +00:00
|
|
|
{}
|
|
|
|
|
|
|
|
public OrderHistory(
|
|
|
|
List<UnitOrder> orders,
|
|
|
|
Dictionary<Unit, bool> isDislodgedOutcomes,
|
|
|
|
Dictionary<MoveOrder, bool> doesMoveOutcomes)
|
|
|
|
{
|
|
|
|
this.Orders = new(orders);
|
|
|
|
this.IsDislodgedOutcomes = new(isDislodgedOutcomes);
|
|
|
|
this.DoesMoveOutcomes = new(doesMoveOutcomes);
|
|
|
|
}
|
|
|
|
}
|