Beispiel #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;
        }
Beispiel #2
0
 public UnitFactory(Randomizer randomizer)
 {
     fRandomizer = randomizer.GenerateRandom(12345);
 }