Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 16, 2019, 4:03:46 PM (6 years ago)
Author:
pomselj
Message:

OrxoBlox is linked to Projectile, level up works

Location:
code/branches/OrxoBlox_FS19/src/modules/weapons
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/OrxoBlox_FS19/src/modules/weapons/projectiles/BallProjectile.cc

    r12378 r12384  
    3333
    3434#include "BallProjectile.h"
    35 #include "../OrxoBlox/OrxoBlox.h"
    36 #include "../OrxoBlox/OrxoBloxStones.h"
    3735#include "gametypes/Gametype.h"
    3836
     
    6058        this->fieldWidth_ = 46;
    6159        this->fieldHeight_ =  49;
    62         //this->orxoblox_ = this->getOrxoBlox();
     60        this->orxoblox_ = this->getOrxoBlox();
    6361
    6462        //setEffect("Orxonox/sparks2");
     
    149147
    150148
    151     /*
     149   
    152150    OrxoBlox* BallProjectile::getOrxoBlox()
    153151    {
     
    160158        return nullptr;
    161159    }
    162     */
     160   
    163161
    164162
     
    185183                position.z = this-> fieldHeight_;
    186184               
    187                 //orxoblox_->LevelUp();
     185                orxoblox_->LevelUp();
    188186
    189187
  • code/branches/OrxoBlox_FS19/src/modules/weapons/projectiles/BallProjectile.h

    r12378 r12384  
    3737#include "weapons/WeaponsPrereqs.h"
    3838#include "weapons/projectiles/BillboardProjectile.h"
    39 #include "../OrxoBlox/OrxoBlox.h"
     39#include "../../OrxoBlox/OrxoBlox.h"
     40#include "../../OrxoBlox/OrxoBloxStones.h"
    4041
    4142#include "OrxoBlox/OrxoBloxPrereqs.h"
     
    6869            void registerVariables();
    6970            void changeTexture();
    70             //OrxoBlox* getOrxoBlox();
     71            OrxoBlox* getOrxoBlox();
    7172           
    7273            float speed_; //!< The speed (in x-direction) of the ball.
     
    7677            unsigned int maxTextureIndex_; //!< The maximal index.
    7778            std::string materialBase_; //!< The base name of the material.
    78             //OrxoBlox* orxoblox_;
     79            OrxoBlox* orxoblox_;
    7980    };
    8081}
  • code/branches/OrxoBlox_FS19/src/modules/weapons/projectiles/CMakeLists.txt

    r12281 r12384  
    1515  MineProjectile.cc
    1616  WagnisProjectile.cc
    17   BallProjectile.cc
     17  #BallProjectile.cc
    1818)
  • code/branches/OrxoBlox_FS19/src/modules/weapons/weaponmodes/CMakeLists.txt

    r12281 r12384  
    1414  MineGun.cc
    1515  WagnisGun.cc
    16   BallGun.cc
     16  #BallGun.cc
    1717)
Note: See TracChangeset for help on using the changeset viewer.