public FieldOfPlay() { for (int i = 0; i < 9; i++) { BackgroundComplete.Add(new List <IGamePiece>()); if (i == 0 || i == 8) // Walls { for (int j = 0; j < 15; j++) { BackgroundComplete[i].Add(new Wall1()); BackgroundComplete[i].Add(new Wall1()); BackgroundComplete[i].Add(new Wall1()); BackgroundComplete[i].Add(new Wall1()); BackgroundComplete[i].Add(new Wall2()); } } else { for (int j = 0; j < 75; j++) // Center Track { BackgroundComplete[i].Add(new BlankSpace()); } } } DisplayPlayerLocation(); } // Constructor
public void MoveBottomBackgroundWallLeftOneUnit() { int bottomRow = BackgroundComplete.Count() - 1; BackgroundComplete[bottomRow].Add(BackgroundComplete[bottomRow][0]); BackgroundComplete[bottomRow].RemoveAt(0); }