private void SetLaddersOnGame(List <List <int> > ladderIndices) { foreach (var ladderIndex in ladderIndices) { if (Ladders.Any(x => x.Start == ladderIndex[0])) { //Skipping two Ladder starts at same point continue; } Ladders.Add(new Ladder() { Start = ladderIndex[0], End = ladderIndex[1] }); } }
public void AddLadder(Ladder L) { Ladders.Add(L); }
public void SetupLadders(int down, int up) { Ladders.Add(down, up); }