Changeset 11163 for code/branches/tgidronFS16/src/modules/hover
- Timestamp:
- Apr 14, 2016, 1:00:08 PM (9 years ago)
- Location:
- code/branches/tgidronFS16/src/modules/hover
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/tgidronFS16/src/modules/hover/FlagHUD.cc
r11151 r11163 54 54 this->overlay_->add2D(this->panel_); 55 55 56 this->flagCount_ = 1;57 setFlagCount( 1);56 this->flagCount_ = 5; 57 setFlagCount(5); 58 58 } 59 59 -
code/branches/tgidronFS16/src/modules/hover/Hover.cc
r11151 r11163 41 41 #include "gamestates/GSLevel.h" 42 42 43 #include "pickup/PickupSpawner.h" 44 #include "pickup/Pickup.h" 45 43 46 namespace orxonox 44 47 { … … 61 64 this->setHUDTemplate("HoverHUD"); 62 65 63 64 66 } 65 67 … … 89 91 } 90 92 93 94 91 95 //Generate inner Walls according to levelcode 92 96 for(int y=0; y<numCells; y++){ … … 103 107 104 108 //Generate 5 flags randomly (test only 1 flag) 105 for ( int i = 0; i < 1; i++ )109 for ( int i = 0; i < 5; i++ ) 106 110 { 107 111 HoverFlag* flag = new HoverFlag(origin_->getContext()); 108 112 flag->init(rand()%numCells, rand()%numCells, cellSize); 109 113 flags_.push_back(flag); 114 } 115 116 117 //Generate 10 Pickups randomly 118 for (int i = 0; i<10; i++) 119 { 120 PickupSpawner* pickup = new PickupSpawner(origin_->getContext()); 121 //PickupSpawner(this->getContext()); 122 //pickup->createDroppedPickup(this->getContext(), pickup , this, 10); 123 pickups_.push_back(pickup); 110 124 } 111 125 … … 117 131 void Hover::startLevel(){ 118 132 //Generate 5 flags randomly (test only 1 flag) 119 for ( int i = 0; i < 1; i++ )133 for ( int i = 0; i < 5; i++ ) 120 134 { 121 135 HoverFlag* flag = new HoverFlag(origin_->getContext()); -
code/branches/tgidronFS16/src/modules/hover/Hover.h
r11151 r11163 42 42 #include "gametypes/Gametype.h" 43 43 #include "HoverOrigin.h" 44 #include "pickup/PickupSpawner.h" 44 45 45 46 namespace orxonox … … 61 62 62 63 64 63 65 inline int getNumberOfFlags() const 64 66 { return this->numberOfFlags_; } … … 76 78 int cellHeight; 77 79 int numCells; 80 81 std::vector<PickupSpawner*> pickups_; 78 82 }; 79 83 }
Note: See TracChangeset
for help on using the changeset viewer.