Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/QuestGuide_HS16/src/modules/waypoints/Waypoint.cc @ 11274

Last change on this file since 11274 was 11274, checked in by ooguz, 7 years ago

waypoints to modules

File size: 1.2 KB
Line 
1#include "Waypoint.h"
2
3#include <OgreSceneNode.h>
4#include <BulletDynamics/Dynamics/btRigidBody.h>
5#include "util/OrxAssert.h"
6#include "core/CoreIncludes.h"
7
8namespace orxonox
9{
10    RegisterClass(Waypoint);
11
12    Waypoint::Waypoint(Context* context) : StaticEntity(context)
13    {
14        RegisterObject(Waypoint);
15        model = new Model(this->getContext());
16        model->setMeshSource("cube.mesh");  // Name of the arrow file for now bottle
17        this->attach(model);
18        model->setScale(3);
19        //model->setOrientation(Vector3(0,0,-1));
20        model->setPosition(Vector3(0.0,0.0,0.0));        // this is wrong, it has to be triggered
21        waypoint_actived = false;
22        distancetrigger = new DistanceTrigger(this->getContext());   
23        distancetrigger->setDistance(100);
24        this->attach(distancetrigger);
25    }
26
27    Waypoint::~Waypoint()
28    {
29    }
30
31
32     //WorldEntity::setDirection
33     //WorldEntity::getPosition()
34     //setOrientation()
35
36
37    void Waypoint::XMLPort(Element& xmlelement, XMLPort::Mode mode){
38        SUPER(Waypoint, XMLPort, xmlelement, mode); // From the SpaceShip.cc file
39        XMLPortParam(Waypoint, "order", getOrder, setOrder, xmlelement, mode);
40
41    }
42
43
44}
Note: See TracBrowser for help on using the repository browser.