Пример #1
0
    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);
    }
Пример #2
0
 public static void AddTowerToList(Tower tower)
 {
     GameStorage.towerList.Add("T" + tower.getXPos() + "," + tower.getZPos(),tower);
 }