[Orxonox-commit 7749] r12342 - code/branches/OrxoBlox_FS19/src/modules/OrxoBlox
ahuwyler at orxonox.net
ahuwyler at orxonox.net
Thu May 9 10:46:20 CEST 2019
Author: ahuwyler
Date: 2019-05-09 10:46:20 +0200 (Thu, 09 May 2019)
New Revision: 12342
Modified:
code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBlox.cc
code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBloxStones.cc
Log:
levelup beginning
Modified: code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBlox.cc
===================================================================
--- code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBlox.cc 2019-05-09 08:25:24 UTC (rev 12341)
+++ code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBlox.cc 2019-05-09 08:46:20 UTC (rev 12342)
@@ -152,7 +152,7 @@
level_=1;
// Create the first Wall.
- this->createWall();
+ this->LevelUp();
//Create Ship
//this->ship_ = new OrxoBloxShip(this->center_->getContext());
@@ -217,11 +217,17 @@
//void startWall(void);
void OrxoBlox::LevelUp(){
level_++;
+ for(int i=8; i>-1; --i){
+ activeWalls_[i]=activeWalls_[i+1];
+ }
+ this->createWall();
+ //activeWalls_[0]=
//When levelup? wo wird es ausgeloest?
//new location of ship
//new amount of balls
//create balls
//insert new wall
+
}
void OrxoBlox::createWall(void){
Modified: code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBloxStones.cc
===================================================================
--- code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBloxStones.cc 2019-05-09 08:25:24 UTC (rev 12341)
+++ code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBloxStones.cc 2019-05-09 08:46:20 UTC (rev 12342)
@@ -16,7 +16,7 @@
{
RegisterObject(OrxoBloxStones);
- this->size_ = 10.0f;
+ this->size_ = 9.0f;
this->health_ = 1 + static_cast<unsigned int>(rnd(6.0f)); //<! random number between 0 and 7;
this->delay_ = false;
}
More information about the Orxonox-commit
mailing list