Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 11309


Ignore:
Timestamp:
Nov 28, 2016, 4:04:45 PM (8 years ago)
Author:
ooguz
Message:

Distance Trigger base methods

Location:
code/branches/QuestGuide_HS16/src/modules/waypoints
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/QuestGuide_HS16/src/modules/waypoints/Waypoint.cc

    r11287 r11309  
    2626        distancetrigger = new DistanceTrigger(this->getContext());   
    2727        distancetrigger->setDistance(100);
     28        distanceTrigger_->addTarget("Pawn");
     29         this->addEventSource(distanceTrigger_, "explode");
     30
    2831        this->attach(distancetrigger);
    2932    }
  • code/branches/QuestGuide_HS16/src/modules/waypoints/WaypointGroup.cc

    r11298 r11309  
    6363    Waypoint* WaypointGroup::getActive(){
    6464          if (activeWaypoint == nullptr){
    65                                     orxout() << "OOOOOOOOOO" << endl;
    66 
     65            orxout() << "Null Pointer" << endl;
    6766            activateNext();
    6867
    69           }           
     68          }
     69          //else if (activeWaypoint->)           
    7070          return activeWaypoint;
    7171    }
     
    7676                object->enable_waypoint();
    7777                activeWaypoint = object;
     78                break;
    7879            }
    7980        }
  • code/branches/QuestGuide_HS16/src/modules/waypoints/Waypointarrow.cc

    r11307 r11309  
    6161
    6262        if (getWaypointgroup() == nullptr){
    63                     orxout() << "Second" << endl;
     63                  orxout() << "Second" << endl;
    6464
    6565            return;
     
    7272        Vector3 waypoint_position = waypoint->getWorldPosition();
    7373
    74         Vector3 trial = waypoint_position - this->getWorldPosition();
    7574
    7675        //orxout() << "dsfsf" << waypoint_position.x << endl;
    77         orxout() << "waypoint " << waypoint_position.x <<  "waypoint " << waypoint_position.y << "waypoint " << waypoint_position.z << endl;
    78         orxout() << "model " << this->model->getWorldPosition().x <<  "model " << this->model->getWorldPosition().y << "model " << this->model->getWorldPosition().z << endl;
    79         orxout() << "this " << this->getWorldPosition().x <<  "this " << this->getWorldPosition().y << "this " << this->getWorldPosition().z << endl;
    80         orxout() << "trial " << trial.x <<  "trial " << trial.y << "trial " << trial.z << endl;
     76    //    orxout() << "waypoint " << waypoint_position.x <<  "waypoint " << waypoint_position.y << "waypoint " << waypoint_position.z << endl;
     77      //  orxout() << "model " << this->model->getWorldPosition().x <<  "model " << this->model->getWorldPosition().y << "model " << this->model->getWorldPosition().z << endl;
     78      //  orxout() << "this " << this->getWorldPosition().x <<  "this " << this->getWorldPosition().y << "this " << this->getWorldPosition().z << endl;
     79       // orxout() << "trial " << trial.x <<  "trial " << trial.y << "trial " << trial.z << endl;
     80
    8181
    8282        Vector3 origin = model->getWorldPosition();;
Note: See TracChangeset for help on using the changeset viewer.