- Timestamp:
- Nov 21, 2016, 3:55:43 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/QuestGuide_HS16/src/modules/waypoints/WaypointGroup.cc
r11287 r11298 16 16 { 17 17 RegisterObject(WaypointGroup); 18 activeWaypoint = nullptr; 19 18 20 //model = new Model(this->getContext()); 19 21 //model->setMeshSource("cube.mesh"); // Name of the arrow file for now bottle … … 60 62 61 63 Waypoint* WaypointGroup::getActive(){ 62 for (Waypoint* object : this->waypoints_){ 64 if (activeWaypoint == nullptr){ 65 orxout() << "OOOOOOOOOO" << endl; 66 67 activateNext(); 68 69 } 70 return activeWaypoint; 71 } 72 73 Waypoint* WaypointGroup::activateNext(){ 74 for (Waypoint* object : this->waypoints_){ 63 75 if(!(object->waypoint_actived)){ 64 76 object->enable_waypoint(); 65 returnobject;77 activeWaypoint = object; 66 78 } 67 79 } 80 return activeWaypoint; 68 81 } 69 70 82 71 83
Note: See TracChangeset
for help on using the changeset viewer.