Ejemplo n.º 1
0
        public MazeNodeDataBuilder(IMazeNodeDataBuilderSettings mazeNodeDataBuilderSettings, Randomizer randomizer, NodeBuilder nodeBuilder)
        {
            _randomizer  = randomizer;
            _nodeBuilder = nodeBuilder;

            fGridSize  = MakeGridSizeUneven(mazeNodeDataBuilderSettings.GridSize);
            fGridStart = GetGridStart(mazeNodeDataBuilderSettings.GridSize);
            fGridEnd   = GetGridEnd(mazeNodeDataBuilderSettings.GridSize);

            fMininumRequiredPaths = mazeNodeDataBuilderSettings.MinimumPathsToANode;
        }
Ejemplo n.º 2
0
 public UnitFactory(Randomizer randomizer)
 {
     fRandomizer = randomizer.GenerateRandom(12345);
 }