예제 #1
0
 public LevelBuilder(IRandomNumberGenerator randomNumberGenerator, IMazeDescriptor mazeDescriptor, ILog logger, Dispatcher dispatcher, DispatchRegistry registry)
 {
     _randomNumberGenerator = randomNumberGenerator;
     _mazeDescriptor        = mazeDescriptor;
     _logger     = logger;
     _dispatcher = dispatcher;
     _registry   = registry;
 }
예제 #2
0
        protected Dispatchee(Coordinate coordinates, DispatchRegistry registry)
        {
            Coordinates = coordinates;
            Registry    = registry;

            UniqueId = Registry.Register(this);

            RegisterActions();
        }