Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TargetPathNode Class Reference

#include <navpath.h>

Inheritance diagram for TargetPathNode:
PathNode

Public Member Functions

bool isAbsolute () const
 
bool isSourceable () const
 
std::string getDescription () const
 
bool isTargetDependant () const
 
std::deque< unsigned > initSearchQueue () const
 
bool isDestination (unsigned index) const
 
PathNodeclone () const
 
 TargetPathNode ()
 
 ~TargetPathNode ()
 
- Public Member Functions inherited from PathNode
virtual bool isCurrentDependant () const
 
virtual NavPathgetRequiredPath ()
 
 PathNode ()
 
virtual ~PathNode ()
 

Detailed Description

Definition at line 290 of file navpath.h.

Constructor & Destructor Documentation

TargetPathNode::TargetPathNode ( )
inline

Definition at line 318 of file navpath.h.

Referenced by clone().

318 {}
TargetPathNode::~TargetPathNode ( )
inline

Definition at line 319 of file navpath.h.

319 {}

Member Function Documentation

PathNode* TargetPathNode::clone ( ) const
inlinevirtual

Implements PathNode.

Definition at line 314 of file navpath.h.

References TargetPathNode().

315  {
316  return new TargetPathNode();
317  }
std::string TargetPathNode::getDescription ( ) const
inlinevirtual

Implements PathNode.

Definition at line 301 of file navpath.h.

302  {
303  return "Target System";
304  }
std::deque< unsigned > TargetPathNode::initSearchQueue ( ) const
virtual

Implements PathNode.

Definition at line 703 of file navpath.cpp.

References _Universe, Universe::AccessCockpit(), and Cockpit::AccessNavSystem().

704 {
705  deque< unsigned >temp;
706  temp.push_back( _Universe->AccessCockpit()->AccessNavSystem()->destinationsystemindex );
707  return temp;
708 }
bool TargetPathNode::isAbsolute ( ) const
inlinevirtual

Implements PathNode.

Definition at line 293 of file navpath.h.

294  {
295  return true;
296  }
bool TargetPathNode::isDestination ( unsigned  index) const
virtual

Implements PathNode.

Definition at line 698 of file navpath.cpp.

References _Universe, Universe::AccessCockpit(), Cockpit::AccessNavSystem(), and index.

699 {
700  return _Universe->AccessCockpit()->AccessNavSystem()->destinationsystemindex == index;
701 }
bool TargetPathNode::isSourceable ( ) const
inlinevirtual

Implements PathNode.

Definition at line 297 of file navpath.h.

298  {
299  return true;
300  }
bool TargetPathNode::isTargetDependant ( ) const
inlinevirtual

Reimplemented from PathNode.

Definition at line 306 of file navpath.h.

307  {
308  return true;
309  }

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