public TurnActions(Player.Profile player, int round, int turn, int cycle, IList<BaseAction> actions) { _player = player; _round = round; _turn = turn; _cycle = cycle; _actions = new ReadOnlyCollection<BaseAction>(actions); }
public TurnActions(ColorettoGame game) { _player = game.CurrentPlayer; _round = game.Round; _turn = game.Turn; _cycle = game.Cycle; _actions = new ReadOnlyCollection<BaseAction>(new List<BaseAction>(0)); _results = new ReadOnlyCollection<ActionResult>(new List<ActionResult>(0)); }
/// <summary> /// Create a turns action by supplying a previous one and appending a new action /// </summary> /// <param name="original"></param> /// <param name="appendAction"></param> public TurnActions(TurnActions original, BaseAction appendAction, ActionResult appendResult) { _player = original.Player; _round = original.Round; _turn = original.Turn; _cycle = original.Cycle; _actions = Helpers.CloneAndAppend(original.Actions, appendAction); _results = Helpers.CloneAndAppend(original.Results, appendResult); }