瀏覽代碼

Edited a Comment which suggest to create the levels dynamic

master
Moritz Winter 5 年之前
父節點
當前提交
fe854e7d57
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. 2
    0
      Buhnenrennen/Field.cs

+ 2
- 0
Buhnenrennen/Field.cs 查看文件

@@ -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>>();

Loading…
取消
儲存