

#ifndef _Waypointarrow_H__
#define _Waypointarrow_H__

#include "OrxonoxPrereqs.h"
#include "worldentities/StaticEntity.h"
#include "graphics/Model.h"

#include <string>

#include "util/OgreForwardRefs.h"
#include "tools/interfaces/Tickable.h"
#include "interfaces/RadarListener.h"
#include "WaypointGroup.h"
#include "core/XMLPort.h"


namespace orxonox
{
    /**
    @brief
        The StaticEntity is the simplest derivative of the @ref orxonox::WorldEntity class. This means all StaticEntity instances also have
        a position in space, a mass, a scale, a frication, ... because every StaticEntity is a WorldEntity. You can attach StaticEntities to eachother ike @ref orxonox::WorldEntity WorldEntities.

        In contrast to the MobileEntity the StaticEntity cannot move with respect to the parent to which it is attached. That's why
        it is called StaticEntity. It will keep the same position (always with respect to its parent) forever unless you call the
        function @see setPosition to changee it.

        A StaticEntity can only have the collisition type WorldEntity::None or WorldEntity::Static. The collsion types WorldEntity::Dynamic and WorldEntity::Kinematic are illegal.
    */

    class _OrxonoxExport Waypointarrow : public StaticEntity, public Tickable {
        
        public:

            Waypointarrow(Context* context);
            virtual ~Waypointarrow();
            WaypointGroup* getWaypointgroup();


            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override;

            virtual void tick(float dt);
            //static void toogleArrow();



        private:
    
            //virtual bool isCollisionTypeLegal(CollisionType type) const override;
            Model* model;
            WaypointGroup* waypoints_;
            Waypoint* waypoint;
            // network callbacks
    };
}

#endif /* _Waypoint_H__ */
