public void RemoveTopStringer(int verticalpos, int start, int end) { //exceptions for inaccurate user input if (end > 1500) { end = 1500; } if (start > end) { int temp = start; start = end; end = temp; } Stringer TempStr = new Stringer(verticalpos, start, end); //Add the Stringer to the List if it doesnt exist yet if (!topstringers.Contains(TempStr)) { topstringers.Remove(TempStr); } RecalculateWalls(); RecalculateTopStringers(); }
public void AddTopStringer(int verticalpos, int start, int end) { //exceptions for inaccurate user input if (end > 1500) { end = 1500; } if (start > end) { int temp = start; start = end; end = temp; } if (verticalpos >= sizey || !ribs.Contains(start) || !ribs.Contains(end)) { throw new Exception("Invalid "); } Stringer TempStr = new Stringer(verticalpos, start, end); //Add the Stringer to the List if it doesnt exist yet if (!topstringers.Contains(TempStr)) { topstringers.Add(TempStr); } RecalculateWalls(); RecalculateTopStringers(); }
public void AddBotStringer(int start, int end) { //MAke the input amore userfriendly also for retards if (end > 1500) { end = 1500; } if (start > end) { int temp = start; start = end; end = temp; } Stringer tempstringer = new Stringer(200, start, end); botstringers.Add(tempstringer); RecalculateBotStringers(); }
public void RemoveBotStringer(int start, int end) { //Make the input amore userfriendly also for retards if (end > 1500) { end = 1500; } if (start > end) { int temp = start; start = end; end = temp; } Stringer tempstr = new Stringer(200, start, end); if (botstringers.Contains(tempstr)) { botstringers.Remove(tempstr); } RecalculateBotStringers(); }