Beispiel #1
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);
        }
Beispiel #2
0
 public TurnActions(ColorettoGame game, BaseAction action, ActionResult result)
     : this(game)
 {
     _actions = (new List<BaseAction> { action }).AsReadOnly();
     _results = (new List<ActionResult> { result }).AsReadOnly();
 }