Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 18, 2019, 3:44:09 PM (5 years ago)
Author:
ahuwyler
Message:

Bats are gone

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBlox.cc

    r12307 r12308  
    3333
    3434#include "OrxoBlox.h"
     35#include "Highscore.h"
    3536
    3637#include "core/CoreIncludes.h"
    3738#include "core/EventIncludes.h"
    3839#include "core/command/Executor.h"
    39 #include "core/config/ConfigValueIncludes.h"
     40
     41
     42#include "core/config/ConfigValueIncludes.h"//Remove??
    4043
    4144#include "gamestates/GSLevel.h"
    42 #include "chat/ChatManager.h"
     45
     46
     47#include "chat/ChatManager.h"//Remove?
    4348
    4449#include "OrxoBloxCenterpoint.h"
    4550#include "OrxoBloxBall.h"
    46 #include "OrxoBloxBat.h"
    47 #include "OrxoBloxBot.h"
     51// #include "OrxoBloxBat.h"//Remove??
     52#include "OrxoBloxBot.h"//Remove??
    4853#include "OrxoBloxStones.h"
    4954#include "OrxoBloxWall.h"
     
    5257namespace orxonox
    5358{
    54     // Events to allow to react to scoring of a player, in the level-file.
    55     CreateEventName(OrxoBloxCenterpoint, right);
    56     CreateEventName(OrxoBloxCenterpoint, left);
     59   
    5760
    5861    RegisterUnloadableClass(OrxoBlox);
     
    148151
    149152
    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 
    164153            // Create the first Wall.
    165154            this->createWall();
    166             orxout()<< "helloo"<< endl;
    167155
    168156        }
     
    257245    }
    258246
    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     // }
    276247
    277248    /**
Note: See TracChangeset for help on using the changeset viewer.