Changeset 12011
- Timestamp:
- May 25, 2018, 3:06:32 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Hover_FS18/src/modules/hover/Hover.cc
r11909 r12011 57 57 SUPER(Hover, tick, dt); 58 58 59 /*if(this->firstTick_ && this->origin_)60 {61 this->firstTick_ = false;62 63 //Generate 5 flags randomly64 for ( int i = 0; i < 5; i++ )65 {66 HoverFlag* flag = new HoverFlag(origin_->getContext());67 flag->init(rand()%numCells, rand()%numCells, cellSize);68 flags_.push_back(flag);69 }70 71 }//firsttick end*/72 73 // Check if ship collided with one of the flags74 /*for ( unsigned int i = 0; i < flags_.size(); i++ ){75 if(flags_[i]->getCollided()){76 flags_[i]->destroyLater();77 flags_.erase (flags_.begin()+i);78 }79 }80 numberOfFlags_ = flags_.size();*/81 59 } 82 60 }
Note: See TracChangeset
for help on using the changeset viewer.