Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 21, 2012, 11:47:19 PM (13 years ago)
Author:
jo
Message:

Created minimal working version for the TowerDefence module. The code compiles and the level runs. Unfortunately an 'Playfield_ME.mesh' cannot be loaded on my machine.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/newlevel2012/src/modules/towerdefense/TowerDefenseCenterpoint.cc

    r9110 r9112  
    5353        this->width_ = 10;
    5454        this->height_ = 11;
    55         this->stoneTemplate_ = "";
     55        this->towerTemplate_ = "";
    5656       
    5757        this->checkGametype();
     
    6868        XMLPortParam(TowerDefenseCenterpoint, "width", setWidth, getWidth, xmlelement, mode); // die Breite
    6969        XMLPortParam(TowerDefenseCenterpoint, "height", setHeight, setWidth, xmlelement, mode); // die Grösse
    70         XMLPortParam(TowerDefenseCenterpoint, "stoneTemplate", setStoneTemplate, getStoneTemplate, xmlelement, mode);
     70        XMLPortParam(TowerDefenseCenterpoint, "towerTemplate", setTowerTemplate, getTowerTemplate, xmlelement, mode);
    7171    }
    7272
     
    9191        if (this->getGametype() != NULL && this->getGametype()->isA(Class(TowerDefense)))
    9292        {
    93             TowerDefense* TowerDefenseGametype = orxonox_cast<TowerDefense*>(this->getGametype().get());
    94             TowerDefenseGametype->setCenterpoint(this);
     93            //TowerDefense* TowerDefenseGametype = orxonox_cast<TowerDefense*>(this->getGametype().get());
     94            //TowerDefenseGametype->setCenterpoint(this);
    9595        }
    9696    }
Note: See TracChangeset for help on using the changeset viewer.