Pioneer
Loading...
Searching...
No Matches
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Friends | List of all members
SystemPath Class Reference

#include <SystemPath.h>

Inheritance diagram for SystemPath:
Inheritance graph
[legend]
Collaboration diagram for SystemPath:
Collaboration graph
[legend]

Classes

class  LessSectorOnly
 
class  LessSystemOnly
 
struct  ParseFailure
 

Public Member Functions

 SystemPath ()
 
 SystemPath (Sint32 x, Sint32 y, Sint32 z)
 
 SystemPath (Sint32 x, Sint32 y, Sint32 z, Uint32 si)
 
 SystemPath (Sint32 x, Sint32 y, Sint32 z, Uint32 si, Uint32 bi)
 
 SystemPath (const SystemPath *path)
 
bool IsSectorPath () const
 
bool IsSystemPath () const
 
bool HasValidSystem () const
 
bool IsBodyPath () const
 
bool HasValidBody () const
 
bool IsSameSector (const SystemPath &b) const
 
bool IsSameSystem (const SystemPath &b) const
 
SystemPath SectorOnly () const
 
SystemPath SystemOnly () const
 
void ToJson (Json &jsonObj) const
 
void SerializeToBlob (char *blob) const
 
- Public Member Functions inherited from LuaWrappable
virtual ~LuaWrappable ()
 

Static Public Member Functions

static SystemPath Parse (const char *const str)
 
static double SectorDistance (const SystemPath &a, const SystemPath &b)
 
static double SectorDistanceSqr (const SystemPath &a, const SystemPath &b)
 
static SystemPath FromJson (const Json &jsonObj)
 

Public Attributes

Sint32 sectorX
 
Sint32 sectorY
 
Sint32 sectorZ
 
Uint32 systemIndex
 
Uint32 bodyIndex
 

Static Public Attributes

static const size_t SizeAsBlob = 5 * sizeof(Uint32)
 

Friends

bool operator== (const SystemPath &a, const SystemPath &b)
 
bool operator!= (const SystemPath &a, const SystemPath &b)
 
bool operator< (const SystemPath &a, const SystemPath &b)
 

Constructor & Destructor Documentation

◆ SystemPath() [1/5]

SystemPath::SystemPath ( )
inline

◆ SystemPath() [2/5]

SystemPath::SystemPath ( Sint32  x,
Sint32  y,
Sint32  z 
)
inline

◆ SystemPath() [3/5]

SystemPath::SystemPath ( Sint32  x,
Sint32  y,
Sint32  z,
Uint32  si 
)
inline

◆ SystemPath() [4/5]

SystemPath::SystemPath ( Sint32  x,
Sint32  y,
Sint32  z,
Uint32  si,
Uint32  bi 
)
inline

◆ SystemPath() [5/5]

SystemPath::SystemPath ( const SystemPath path)
inline

Member Function Documentation

◆ FromJson()

SystemPath SystemPath::FromJson ( const Json jsonObj)
static
Here is the call graph for this function:

◆ HasValidBody()

bool SystemPath::HasValidBody ( ) const
inline

◆ HasValidSystem()

bool SystemPath::HasValidSystem ( ) const
inline

◆ IsBodyPath()

bool SystemPath::IsBodyPath ( ) const
inline

◆ IsSameSector()

bool SystemPath::IsSameSector ( const SystemPath b) const
inline

◆ IsSameSystem()

bool SystemPath::IsSameSystem ( const SystemPath b) const
inline
Here is the call graph for this function:

◆ IsSectorPath()

bool SystemPath::IsSectorPath ( ) const
inline

◆ IsSystemPath()

bool SystemPath::IsSystemPath ( ) const
inline

◆ Parse()

SystemPath SystemPath::Parse ( const char *const  str)
static
Here is the call graph for this function:

◆ SectorDistance()

static double SystemPath::SectorDistance ( const SystemPath a,
const SystemPath b 
)
inlinestatic

◆ SectorDistanceSqr()

static double SystemPath::SectorDistanceSqr ( const SystemPath a,
const SystemPath b 
)
inlinestatic

◆ SectorOnly()

SystemPath SystemPath::SectorOnly ( ) const
inline
Here is the call graph for this function:

◆ SerializeToBlob()

void SystemPath::SerializeToBlob ( char *  blob) const
inline

◆ SystemOnly()

SystemPath SystemPath::SystemOnly ( ) const
inline
Here is the call graph for this function:

◆ ToJson()

void SystemPath::ToJson ( Json jsonObj) const

Friends And Related Symbol Documentation

◆ operator!=

bool operator!= ( const SystemPath a,
const SystemPath b 
)
friend

◆ operator<

bool operator< ( const SystemPath a,
const SystemPath b 
)
friend

◆ operator==

bool operator== ( const SystemPath a,
const SystemPath b 
)
friend

Member Data Documentation

◆ bodyIndex

Uint32 SystemPath::bodyIndex

◆ sectorX

Sint32 SystemPath::sectorX

◆ sectorY

Sint32 SystemPath::sectorY

◆ sectorZ

Sint32 SystemPath::sectorZ

◆ SizeAsBlob

const size_t SystemPath::SizeAsBlob = 5 * sizeof(Uint32)
static

◆ systemIndex

Uint32 SystemPath::systemIndex

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