- Timestamp:
- May 16, 2019, 4:03:46 PM (6 years ago)
- Location:
- code/branches/OrxoBlox_FS19/src/modules
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/CMakeLists.txt
r12371 r12384 7 7 OrxoBloxScore.cc 8 8 OrxoBloxShip.cc 9 ../weapons/weaponmodes/BallGun.cc 10 ../weapons/projectiles/BallProjectile.cc 9 11 10 12 ) -
code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBlox.cc
r12382 r12384 230 230 orxout() << "level up called" << endl; 231 231 this->playerScored(this->player_);// add points 232 for(OrxoBloxStones* stone : this->stones_){ 233 int x_=(stone->getPosition()).x; 234 int y_=(stone->getPosition()).y; 235 z_=(stone->getPosition()).z; 236 //if(z_==90)this->end(); 237 238 stone->setPosition(x_,y_,z_+9.0f); 239 240 } 232 241 233 242 234 … … 270 262 //create balls 271 263 //insert new wall 272 if( z_ >= 45){ 273 orxout() << "calling end() function" << endl; 274 this->end(); 275 } 264 for(OrxoBloxStones* stone : this->stones_){ 265 if (stone != nullptr) { 266 int x_=(stone->getPosition()).x; 267 int y_=(stone->getPosition()).y; 268 z_=(stone->getPosition()).z; 269 //if(z_==90)this->end(); 270 271 stone->setPosition(x_,y_,z_+9.0f); 272 if( z_ >= 45){ 273 orxout() << "calling end() function" << endl; 274 this->end(); 275 } 276 } 277 278 } 279 276 280 277 281 } -
code/branches/OrxoBlox_FS19/src/modules/weapons/projectiles/BallProjectile.cc
r12378 r12384 33 33 34 34 #include "BallProjectile.h" 35 #include "../OrxoBlox/OrxoBlox.h"36 #include "../OrxoBlox/OrxoBloxStones.h"37 35 #include "gametypes/Gametype.h" 38 36 … … 60 58 this->fieldWidth_ = 46; 61 59 this->fieldHeight_ = 49; 62 //this->orxoblox_ = this->getOrxoBlox();60 this->orxoblox_ = this->getOrxoBlox(); 63 61 64 62 //setEffect("Orxonox/sparks2"); … … 149 147 150 148 151 /*149 152 150 OrxoBlox* BallProjectile::getOrxoBlox() 153 151 { … … 160 158 return nullptr; 161 159 } 162 */160 163 161 164 162 … … 185 183 position.z = this-> fieldHeight_; 186 184 187 //orxoblox_->LevelUp();185 orxoblox_->LevelUp(); 188 186 189 187 -
code/branches/OrxoBlox_FS19/src/modules/weapons/projectiles/BallProjectile.h
r12378 r12384 37 37 #include "weapons/WeaponsPrereqs.h" 38 38 #include "weapons/projectiles/BillboardProjectile.h" 39 #include "../OrxoBlox/OrxoBlox.h" 39 #include "../../OrxoBlox/OrxoBlox.h" 40 #include "../../OrxoBlox/OrxoBloxStones.h" 40 41 41 42 #include "OrxoBlox/OrxoBloxPrereqs.h" … … 68 69 void registerVariables(); 69 70 void changeTexture(); 70 //OrxoBlox* getOrxoBlox();71 OrxoBlox* getOrxoBlox(); 71 72 72 73 float speed_; //!< The speed (in x-direction) of the ball. … … 76 77 unsigned int maxTextureIndex_; //!< The maximal index. 77 78 std::string materialBase_; //!< The base name of the material. 78 //OrxoBlox* orxoblox_;79 OrxoBlox* orxoblox_; 79 80 }; 80 81 } -
code/branches/OrxoBlox_FS19/src/modules/weapons/projectiles/CMakeLists.txt
r12281 r12384 15 15 MineProjectile.cc 16 16 WagnisProjectile.cc 17 BallProjectile.cc17 #BallProjectile.cc 18 18 ) -
code/branches/OrxoBlox_FS19/src/modules/weapons/weaponmodes/CMakeLists.txt
r12281 r12384 14 14 MineGun.cc 15 15 WagnisGun.cc 16 BallGun.cc16 #BallGun.cc 17 17 )
Note: See TracChangeset
for help on using the changeset viewer.