Example #1
0
 public void Recalculate(IMapChanger mapChanger)
 {
     foreach (var tileVertex in OwnTileVertices)
     {
         AllTileVertices[tileVertex.Key] = tileVertex.Value.ToList();
     }
 }
Example #2
0
 public RandomMapGenerator(IMapChanger mapChanger, int?seed = null)
 {
     _mapChanger = mapChanger;
     if (seed == null)
     {
         seed = new Random().Next(Int32.MaxValue);
     }
     _random         = new Random(seed.Value);
     _riverGenerator = new RiverGenerator(_random, _mapChanger);
 }
Example #3
0
 public XleRunner(
     XleSystemState systemState,
     ITextArea textArea,
     IXleInput input,
     ICommandExecutor commandExecutor,
     IMapLoader mapLoader,
     IMapChanger mapChanger,
     IXleGameFactory gameFactory,
     GameState gameState)
 {
     this.systemState     = systemState;
     this.textArea        = textArea;
     this.input           = input;
     this.commandExecutor = commandExecutor;
     this.mapLoader       = mapLoader;
     this.mapChanger      = mapChanger;
     this.gameFactory     = gameFactory;
     this.gameState       = gameState;
 }
 public XlePlayerConsoleCommands(
     GameState gameState,
     ITextArea textArea,
     ICommandExecutor commandExecutor,
     IMapLoader mapLoader,
     IXleGameControl gameControl,
     IMapChanger mapChanger,
     XleSystemState systemState,
     XleOptions options,
     XleData data)
 {
     this.mapLoader       = mapLoader;
     this.GameState       = gameState;
     this.TextArea        = textArea;
     this.commandExecutor = commandExecutor;
     this.gameControl     = gameControl;
     this.systemState     = systemState;
     this.options         = options;
     this.Data            = data;
     this.mapChanger      = mapChanger;
 }
 public RiverGenerator(Random random, IMapChanger mapChanger)
 {
     _random     = random;
     _mapChanger = mapChanger;
     _mainNodes  = new List <Vector2Int>();
 }
Example #6
0
 public PlayerDeathHandler(IMapChanger mapChanger, IStatsDisplay statsDisplay)
 {
     this.MapChanger   = mapChanger;
     this.StatsDisplay = statsDisplay;
 }