orxonox::WaypointController Class Reference

#include <src/orxonox/objects/controllers/WaypointController.h>

Inheritance diagram for orxonox::WaypointController:

orxonox::ArtificialController orxonox::Tickable orxonox::Controller orxonox::PawnListener orxonox::OrxonoxClass orxonox::BaseObject orxonox::OrxonoxClass orxonox::OrxonoxClass orxonox::WaypointPatrolController

List of all members.

Public Member Functions

void addWaypoint (WorldEntity *waypoint)
float getAccuracy () const
WorldEntitygetWaypoint (unsigned int index) const
void setAccuracy (float accuracy)
virtual void tick (float dt)
 Gets called every frame.
 WaypointController (BaseObject *creator)
virtual void XMLPort (Element &xmlelement, XMLPort::Mode mode)
 XML loading and saving.
virtual ~WaypointController ()

Protected Attributes

size_t currentWaypoint_
float squaredaccuracy_
std::vector< WorldEntity * > waypoints_


Constructor & Destructor Documentation

orxonox::WaypointController::WaypointController ( BaseObject creator  ) 

orxonox::WaypointController::~WaypointController (  )  [virtual]


Member Function Documentation

void orxonox::WaypointController::addWaypoint ( WorldEntity waypoint  ) 

References waypoints_.

Referenced by XMLPort().

float orxonox::WaypointController::getAccuracy (  )  const [inline]

Referenced by XMLPort().

WorldEntity * orxonox::WaypointController::getWaypoint ( unsigned int  index  )  const

References waypoints_.

Referenced by XMLPort().

void orxonox::WaypointController::setAccuracy ( float  accuracy  )  [inline]

Referenced by WaypointController(), and XMLPort().

void orxonox::WaypointController::tick ( float  dt  )  [virtual]

void orxonox::WaypointController::XMLPort ( Element &  xmlelement,
XMLPort::Mode  mode 
) [virtual]

XML loading and saving.

Parameters:
xmlelement The XML-element
loading Loading (true) or saving (false)
Returns:
The XML-element

Reimplemented from orxonox::BaseObject.

Reimplemented in orxonox::WaypointPatrolController.

References addWaypoint(), getAccuracy(), getWaypoint(), setAccuracy(), SUPER, XMLPortObject, and XMLPortParam.


Member Data Documentation

Referenced by tick(), and WaypointController().

Referenced by tick().


The documentation for this class was generated from the following files:

Generated on Tue Jul 28 16:23:13 2009 for Orxonox by  doxygen 1.5.6