Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 19, 2014, 1:14:02 PM (10 years ago)
Author:
maxima
Message:

Waypointcontroller in Enemy template

Location:
code/branches/towerdefenseHS14/src/modules/towerdefense
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/towerdefenseHS14/src/modules/towerdefense/TowerDefense.cc

    r10125 r10126  
    163163
    164164
    165         for(int i = 0 ; i < 1 ; ++i)
     165        for(int i = 0 ; i < 20 ; ++i)
    166166        {
    167167                addTowerDefenseEnemy(path);
     
    184184        en1->addTemplate("enemytowerdefense");
    185185        en1->setScale(3);
     186        en1->getController();
    186187
    187188
  • code/branches/towerdefenseHS14/src/modules/towerdefense/TowerDefenseEnemy.cc

    r10123 r10126  
    2424        Constructor. Registers and initializes the object.
    2525    */
    26     TowerDefenseEnemy::TowerDefenseEnemy(Context* context) : Pawn(context)
     26    TowerDefenseEnemy::TowerDefenseEnemy(Context* context) : SpaceShip(context)
    2727    {
    2828        RegisterObject(TowerDefenseEnemy);
     
    3535    {
    3636        orxout() << "test4" << endl;
    37         Waypointsvector_.push_back(coord);
     37        this->Waypointsvector_.push_back(coord);
    3838        orxout() << "test5" << endl;
    3939    }
     
    5858    }
    5959*/
     60
    6061}
  • code/branches/towerdefenseHS14/src/modules/towerdefense/TowerDefenseEnemy.h

    r10123 r10126  
    2828 *
    2929 */
    30         class _TowerDefenseExport TowerDefenseEnemy : public Pawn
     30        class _TowerDefenseExport TowerDefenseEnemy : public SpaceShip
    3131        {
    3232
     
    4141        void popWaypoint();
    4242        TDCoordinate peekWaypoint();
     43
     44
    4345        private:
    4446
Note: See TracChangeset for help on using the changeset viewer.