Exemplo n.º 1
0
        public ReadOnlyBlockadeState(BlockadeState state)
        {
            this._state = state;

            this._board           = new Lazy <Grid <Cell> >(() => state.GetBoard());
            this._boardCalculator = new Lazy <BoardCalculator>(() => state.GetBoardCalculator());
        }
Exemplo n.º 2
0
 public BlockadeState CreateFromConfiguration(BlockadeConfiguration configuration)
 {
     return(BlockadeState.CreateFromConfiguration(configuration, this._boardCalculatorFactory));
 }