Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 30, 2015, 3:47:42 PM (9 years ago)
Author:
meierman
Message:

Flag generator implemented

Location:
code/branches/hoverHS15/src/modules/hover
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/hoverHS15/src/modules/hover/CMakeLists.txt

    r10751 r10894  
    44HoverWall.cc
    55HoverOrigin.cc
     6HoverFlag.cc
    67)
    78
  • code/branches/hoverHS15/src/modules/hover/Hover.cc

    r10835 r10894  
    3636
    3737#include "HoverWall.h"
     38#include "HoverFlag.h" 
    3839#include "core/CoreIncludes.h"
    3940
     
    4546#include <stdint.h>
    4647#include <fstream>
    47 
     48#include <vector>
    4849
    4950namespace orxonox
     
    140141
    141142
     143            for ( int i = 0; i < 5; i++ )
     144                flagVector.push_back(new HoverFlag(origin_->getContext(), rand()%10, rand()%10));
    142145           
    143             //new HoverWall(origin_->getContext(), 1, 1, 1); //Rechts in Y Richtung
     146            //new HoverFlag(origin_->getContext()); //Rechts in Y Richtung
    144147            //new HoverWall(origin_->getContext(), 5, 6, 0); //Ueber in x richtung
    145148            //new HoverWall(origin_->getContext(), 5, 5, 0); //Ueber in x richtung
    146         }     
     149        }
     150        for ( int i = 0; i < flagVector.size(); i++ ){
     151            if(flagVector[i]->getCollided()){
     152                flagVector[i]->destroyLater();
     153                flagVector.erase (flagVector.begin()+i);
     154            }
     155        }
     156
    147157
    148158
  • code/branches/hoverHS15/src/modules/hover/Hover.h

    r10835 r10894  
    103103            void MazeOut();
    104104            void LevelOut();
     105            std::vector<HoverFlag*> flagVector;
    105106
    106107
  • code/branches/hoverHS15/src/modules/hover/HoverPrereqs.h

    r10751 r10894  
    7272    class HoverWall;
    7373    class HoverOrigin;
     74    class HoverFlag;
    7475}
    7576
Note: See TracChangeset for help on using the changeset viewer.