- Timestamp:
- Apr 18, 2019, 3:44:09 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBlox.cc
r12307 r12308 33 33 34 34 #include "OrxoBlox.h" 35 #include "Highscore.h" 35 36 36 37 #include "core/CoreIncludes.h" 37 38 #include "core/EventIncludes.h" 38 39 #include "core/command/Executor.h" 39 #include "core/config/ConfigValueIncludes.h" 40 41 42 #include "core/config/ConfigValueIncludes.h"//Remove?? 40 43 41 44 #include "gamestates/GSLevel.h" 42 #include "chat/ChatManager.h" 45 46 47 #include "chat/ChatManager.h"//Remove? 43 48 44 49 #include "OrxoBloxCenterpoint.h" 45 50 #include "OrxoBloxBall.h" 46 #include "OrxoBloxBat.h" 47 #include "OrxoBloxBot.h" 51 // #include "OrxoBloxBat.h"//Remove?? 52 #include "OrxoBloxBot.h"//Remove?? 48 53 #include "OrxoBloxStones.h" 49 54 #include "OrxoBloxWall.h" … … 52 57 namespace orxonox 53 58 { 54 // Events to allow to react to scoring of a player, in the level-file. 55 CreateEventName(OrxoBloxCenterpoint, right); 56 CreateEventName(OrxoBloxCenterpoint, left); 59 57 60 58 61 RegisterUnloadableClass(OrxoBlox); … … 148 151 149 152 150 151 152 153 // If one of the bats is missing, create it. Apply the template for the bats as specified in the centerpoint.154 for (WeakPtr<orxonox::OrxoBloxBat>& bat : this->bat_)155 {156 if (bat == nullptr)157 {158 bat = new OrxoBloxBat(this->center_->getContext());159 bat->addTemplate(this->center_->getBattemplate());160 }161 }162 163 164 153 // Create the first Wall. 165 154 this->createWall(); 166 orxout()<< "helloo"<< endl;167 155 168 156 } … … 257 245 } 258 246 259 // void OrxoBlox::createWall(void) //TODO: random rotation offset between 0 and 3 (times 90°)260 // {261 // // create new futureBrick_262 // this->futureWall_ = new TetrisBrick(this->center_->getContext());263 264 265 // // Apply the stone template to the stone.266 // this->futureBrick_->addTemplate(this->center_->getBrickTemplate());267 268 // // Attach the brick to the Centerpoint and set the position of the brick to be at the left side.269 // this->center_->attach(this->futureBrick_);270 // float xPos = (this->center_->getWidth()*1.6f + ((this->center_->getWidth() % 2)*2-1)/2.0f)*this->center_->getStoneSize();271 // float yPos = (this->center_->getHeight()-5.1f)*this->center_->getStoneSize();272 273 // this->futureBrick_->setPosition(xPos, yPos, 0.0f);274 // this->futureBrick_->setGame(this);275 // }276 247 277 248 /**
Note: See TracChangeset
for help on using the changeset viewer.