Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 26, 2015, 3:26:26 PM (10 years ago)
Author:
erbj
Message:

tower don't shoot at the centerpoint anymore(because we shifted it by 2000,hack) and the tower and model are two different things now

Location:
code/branches/towerdefenseFS15/src
Files:
4 edited

Legend:

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

    r10325 r10335  
    154154        //set initial credits, lifes and WaveNumber
    155155        this->setCredit(1000);
    156         this->setLifes(25);
     156        this->setLifes(100);
    157157        this->setWaveNumber(0);
    158158        time=0.0;
     
    194194        }
    195195
     196        en1->setTeam(2);
    196197        en1->getController();
    197198        en1->setPosition(path.at(0)->get3dcoordinate());
     
    276277        towermatrix [x][y]=true;
    277278
     279        //Create Model
     280        Model* newtowermodel = new Model(this->center_->getContext());
     281        newtowermodel->setMeshSource("Tower.mesh");
     282        newtowermodel->setScale(45);
     283        newtowermodel->setPosition(static_cast<float>((x-8) * tileScale), static_cast<float>((y-8) * tileScale), 50);
     284
     285
     286
    278287        //Creates tower
    279288        TowerDefenseTower* towernew = new TowerDefenseTower(this->center_->getContext());
    280         towernew->setPosition(static_cast<float>((x-8) * tileScale), static_cast<float>((y-8) * tileScale), 75);
     289        towernew->setPosition(static_cast<float>((x-8) * tileScale), static_cast<float>((y-8) * tileScale), 275);
    281290        towernew->setGame(this);
     291        towernew->setTeam(1);
    282292    }
    283293
  • code/branches/towerdefenseFS15/src/modules/towerdefense/TowerDefenseTower.cc

    r10325 r10335  
    4141    }
    4242
     43    /*
    4344    void TowerDefenseTower::setOrientation(const Quaternion& orientation)
    4445    {
     
    5657    {
    5758    }
     59    */
    5860
    5961    bool TowerDefenseTower::upgradeTower()
  • code/branches/towerdefenseFS15/src/modules/towerdefense/TowerDefenseTower.h

    r10319 r10335  
    3838
    3939        // Overriding these to stop TowerDefenseTowers from spasing out
     40        /*
    4041        void setOrientation(const Quaternion& orientation);
    4142        virtual void rotateYaw(const Vector2& value);
    4243        virtual void rotatePitch(const Vector2& value);
    4344        virtual void rotateRoll(const Vector2& value);
     45        */
    4446        virtual bool upgradeTower();
    4547
  • code/branches/towerdefenseFS15/src/orxonox/controllers/FormationController.cc

    r9800 r10335  
    956956    bool FormationController::sameTeam(ControllableEntity* entity1, ControllableEntity* entity2, Gametype* gametype)
    957957    {
     958
     959
    958960        if (entity1 == entity2)
    959961            return true;
Note: See TracChangeset for help on using the changeset viewer.