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

#include <navpath.h>

Inheritance diagram for AbsolutePathNode:
PathNode

Public Member Functions

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

Protected Attributes

unsigned system
 

Detailed Description

Definition at line 207 of file navpath.h.

Constructor & Destructor Documentation

AbsolutePathNode::AbsolutePathNode ( unsigned  index)
inline

Definition at line 236 of file navpath.h.

References index, and system.

Referenced by clone().

237  {
238  system = index;
239  }
AbsolutePathNode::~AbsolutePathNode ( )
inline

Definition at line 240 of file navpath.h.

240 {}

Member Function Documentation

PathNode* AbsolutePathNode::clone ( ) const
inlinevirtual

Implements PathNode.

Definition at line 232 of file navpath.h.

References AbsolutePathNode(), and system.

233  {
234  return new AbsolutePathNode( system );
235  }
std::string AbsolutePathNode::getDescription ( ) const
virtual

Implements PathNode.

Definition at line 662 of file navpath.cpp.

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

663 {
664  return _Universe->AccessCockpit()->AccessNavSystem()->systemIter[system].GetName();
665 }
unsigned AbsolutePathNode::getSystemIndex ( )
inline

Definition at line 226 of file navpath.h.

References system.

227  {
228  return system;
229  }
std::deque< unsigned > AbsolutePathNode::initSearchQueue ( ) const
virtual

Implements PathNode.

Definition at line 667 of file navpath.cpp.

References system.

668 {
669  deque< unsigned >temp;
670  temp.push_back( system );
671  return temp;
672 }
bool AbsolutePathNode::isAbsolute ( ) const
inlinevirtual

Implements PathNode.

Definition at line 210 of file navpath.h.

211  {
212  return true;
213  }
bool AbsolutePathNode::isDestination ( unsigned  index) const
inlinevirtual

Implements PathNode.

Definition at line 221 of file navpath.h.

References system.

222  {
223  return index == system;
224  }
bool AbsolutePathNode::isSourceable ( ) const
inlinevirtual

Implements PathNode.

Definition at line 214 of file navpath.h.

215  {
216  return true;
217  }

Member Data Documentation

unsigned AbsolutePathNode::system
protected

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