Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 15, 2015, 2:20:34 PM (9 years ago)
Author:
fvultier
Message:

Removed unuses classes and templates. The enemies move now along a path defined in the XML level file and no more along a static hard coded path.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/towerdefenseFabien/src/modules/towerdefense/TowerDefenseEnemy.cc

    r10258 r10586  
    3030        //needed to keep track of the PlayerStats coded in TowerDefense.h
    3131        this->td = orxonox_cast<TowerDefense*>(this->getGametype().get());
    32         once_=false;
    33 
    34     }
    35     //add credit if enemy is destroyed
    36     TowerDefenseEnemy::~TowerDefenseEnemy(){
    37         //this->td->addCredit(1);
     32        once_ = false;
    3833    }
    3934
    40     void TowerDefenseEnemy::addWaypoint(TDCoordinate* coord)
     35    TowerDefenseEnemy::~TowerDefenseEnemy()
    4136    {
    42         this->Waypointsvector_.push_back(coord);
     37        orxout() << "TowerDefenseEnemy::~TowerDefenseEnemy" << endl;
    4338    }
    4439
    45 
    4640    void TowerDefenseEnemy::tick(float dt)
    47     {
     41    {   
     42        //orxout() << "TDE tick1" << endl;
    4843        SUPER(TowerDefenseEnemy, tick, dt);
     44        //orxout() << "TDE tick2" << endl;
    4945    }
    5046
     
    6157    void TowerDefenseEnemy::damage(float damage, float healthdamage, float shielddamage, Pawn* originator)
    6258    {
     59        orxout() << "TowerDefenseEnemy::damage" << endl;
    6360        Pawn::damage(damage, healthdamage, shielddamage, originator);
    6461        if (getGame() && once_ == false && getHealth() <= 0)
     
    6865        }
    6966    }
    70 /*
    71     void TowerDefenseEnemy::popWaypoint()
    72     {
    73         if(Waypointsvector_.size()>0)
    74             Waypointsvector_.pop_back();
    75     }
    76 
    77     TDCoordinate TowerDefenseEnemy::peekWaypoint()
    78     {
    79         if(Waypointsvector_.size()<=0){
    80             TDCoordinate* coord = TDCoordinate(-1,-1);
    81             return coord;
    82         }else{
    83             return Waypointsvector_.at(Waypointsvector_.size()-1);
    84 
    85         }
    86 
    87 
    88     }
    89 */
    90 
    9167}
Note: See TracChangeset for help on using the changeset viewer.