예제 #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
 private string UpdateTowerInfo(Tower towerSelected)
 {
     string infoMsg = "";
     infoMsg += "\n State: " + towerSelected.GetFormattedState();
     infoMsg += "\n Type: " + towerSelected.GetEffect().GetFormattedEffectType();
     infoMsg += "\n Damage: " + towerSelected.GetZone().GetEffect().GetDamage();
     return infoMsg;
 }