Ver código fonte

Edited a Comment which suggest to create the levels dynamic

master
Moritz Winter 5 anos atrás
pai
commit
fe854e7d57
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2
    0
      Buhnenrennen/Field.cs

+ 2
- 0
Buhnenrennen/Field.cs Ver arquivo

@@ -11,6 +11,8 @@ namespace Buhnenrennen
private Dictionary<double, List<Groyne>> groynes;
public Dictionary<double, List<Groyne>> Groynes => this.groynes;

// if there is a number of Groynes which is not "4", the program should also be able to work
// maybe we edit this as dynamic and add a new level like "groynes.Add(x+70, levelY.ToList())" till x = highestNumberOfTestData
public Field( Groyne[] level0, Groyne[] level1, Groyne[] level2, Groyne[] level3 )
{
groynes = new Dictionary<double, List<Groyne>>();

Carregando…
Cancelar
Salvar