/// <summary> /// Default ctor /// </summary> public ThrowFlow(GameFlow gameFlow) { _gameFlow = gameFlow; _dicesToThrow = new List<RainyDice> // 8 dices { new RainyDice(Random), new RainyDice(Random), new RainyDice(Random), new RainyDice(Random), new RainyDice(Random), new RainyDice(Random), new RainyDice(Random), new RainyDice(Random) }; _dicesTaken = new List<RainyDice>(); State = ThrowFlowState.Throwing; }
/// <summary> /// Default ctor /// </summary> public ThrowFlow(GameFlow gameFlow) { _gameFlow = gameFlow; _dicesToThrow = new List <RainyDice> // 8 dices { new RainyDice(Random), new RainyDice(Random), new RainyDice(Random), new RainyDice(Random), new RainyDice(Random), new RainyDice(Random), new RainyDice(Random), new RainyDice(Random) }; _dicesTaken = new List <RainyDice>(); State = ThrowFlowState.Throwing; }
/// <summary> /// Activate user Control /// </summary> /// <param name="parent"></param> public override void Activate(GameForm parent) { base.Activate(parent); _gameFlow = GameForm.Manager.CreateGameFlow(); init(); }