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
CurrentPathNode Class Reference

#include <navpath.h>

Inheritance diagram for CurrentPathNode:
PathNode

Public Member Functions

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

Detailed Description

Definition at line 252 of file navpath.h.

Constructor & Destructor Documentation

CurrentPathNode::CurrentPathNode ( )
inline

Definition at line 280 of file navpath.h.

Referenced by clone().

280 {}
CurrentPathNode::~CurrentPathNode ( )
inline

Definition at line 281 of file navpath.h.

281 {}

Member Function Documentation

PathNode* CurrentPathNode::clone ( ) const
inlinevirtual

Implements PathNode.

Definition at line 276 of file navpath.h.

References CurrentPathNode().

277  {
278  return new CurrentPathNode();
279  }
std::string CurrentPathNode::getDescription ( ) const
inlinevirtual

Implements PathNode.

Definition at line 263 of file navpath.h.

264  {
265  return "Current System";
266  }
std::deque< unsigned > CurrentPathNode::initSearchQueue ( ) const
virtual

Implements PathNode.

Definition at line 685 of file navpath.cpp.

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

686 {
687  deque< unsigned >temp;
688  temp.push_back( _Universe->AccessCockpit()->AccessNavSystem()->currentsystemindex );
689  return temp;
690 }
bool CurrentPathNode::isAbsolute ( ) const
inlinevirtual

Implements PathNode.

Definition at line 255 of file navpath.h.

256  {
257  return true;
258  }
bool CurrentPathNode::isCurrentDependant ( ) const
inlinevirtual

Reimplemented from PathNode.

Definition at line 268 of file navpath.h.

269  {
270  return true;
271  }
bool CurrentPathNode::isDestination ( unsigned  index) const
virtual

Implements PathNode.

Definition at line 680 of file navpath.cpp.

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

681 {
682  return _Universe->AccessCockpit()->AccessNavSystem()->currentsystemindex == index;
683 }
bool CurrentPathNode::isSourceable ( ) const
inlinevirtual

Implements PathNode.

Definition at line 259 of file navpath.h.

260  {
261  return true;
262  }

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