public Wall(Tower One, Tower Two) { towerOne = One; towerTwo = Two; xStart = towerOne.getXPos(); zStart = towerOne.getZPos(); xEnd = towerTwo.getXPos(); zEnd = towerTwo.getZPos(); elementList = new ArrayList(); elementList.Add(towerOne.GetZone().GetEffect()); elementList.Add(towerTwo.GetZone().GetEffect()); /*if (ele != null) { elementList = ele; }*/ // Physically/visually make the wall. //createWall(xStart, zStart, xEnd, zEnd); }
public static void AddTowerToList(Tower tower) { GameStorage.towerList.Add("T" + tower.getXPos() + "," + tower.getZPos(),tower); }