Pioneer
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Friends | List of all members
Galaxy Class Referenceabstract

#include <Galaxy.h>

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

Public Member Functions

void ToJson (Json &jsonObj)
 
 ~Galaxy ()
 
bool IsInitialized () const
 
virtual Uint8 GetSectorDensity (const int sx, const int sy, const int sz) const =0
 
FactionsDatabaseGetFactions ()
 
CustomSystemsDatabaseGetCustomSystems ()
 
RefCountedPtr< const SectorGetSector (const SystemPath &path)
 
RefCountedPtr< SectorGetMutableSector (const SystemPath &path)
 
RefCountedPtr< SectorCache::Slave > NewSectorSlaveCache ()
 
RefCountedPtr< StarSystemGetStarSystem (const SystemPath &path)
 
RefCountedPtr< StarSystemCache::Slave > NewStarSystemSlaveCache ()
 
void FlushCaches ()
 
void Dump (FILE *file, Sint32 centerX, Sint32 centerY, Sint32 centerZ, Sint32 radius)
 
RefCountedPtr< GalaxyGeneratorGetGenerator () const
 
const std::string & GetGeneratorName () const
 
int GetGeneratorVersion () const
 
Perf::StatsGetStats ()
 
const Perf::StatsGetStats () const
 
- Public Member Functions inherited from RefCounted
 RefCounted ()
 
virtual ~RefCounted ()
 
void IncRefCount () const
 
void DecRefCount () const
 
int GetRefCount () const
 
- Public Member Functions inherited from LuaWrappable
virtual ~LuaWrappable ()
 

Static Public Member Functions

static RefCountedPtr< GalaxyLoadFromJson (const Json &jsonObj)
 

Public Attributes

const float GALAXY_RADIUS
 
const float SOL_OFFSET_X
 
const float SOL_OFFSET_Y
 

Protected Member Functions

 Galaxy (RefCountedPtr< GalaxyGenerator > galaxyGenerator, float radius, float sol_offset_x, float sol_offset_y, const std::string &factionsDir, const std::string &customSysDir)
 
void SetGalaxyGenerator (RefCountedPtr< GalaxyGenerator > galaxyGenerator)
 
virtual void Init ()
 

Friends

class GalaxyGenerator
 

Constructor & Destructor Documentation

◆ Galaxy()

Galaxy::Galaxy ( RefCountedPtr< GalaxyGenerator galaxyGenerator,
float  radius,
float  sol_offset_x,
float  sol_offset_y,
const std::string &  factionsDir,
const std::string &  customSysDir 
)
protected
Here is the call graph for this function:

◆ ~Galaxy()

Galaxy::~Galaxy ( )

Member Function Documentation

◆ Dump()

void Galaxy::Dump ( FILE *  file,
Sint32  centerX,
Sint32  centerY,
Sint32  centerZ,
Sint32  radius 
)
Here is the call graph for this function:

◆ FlushCaches()

void Galaxy::FlushCaches ( )
Here is the call graph for this function:

◆ GetCustomSystems()

CustomSystemsDatabase * Galaxy::GetCustomSystems ( )
inline

◆ GetFactions()

FactionsDatabase * Galaxy::GetFactions ( )
inline

◆ GetGenerator()

RefCountedPtr< GalaxyGenerator > Galaxy::GetGenerator ( ) const

◆ GetGeneratorName()

const std::string & Galaxy::GetGeneratorName ( ) const

◆ GetGeneratorVersion()

int Galaxy::GetGeneratorVersion ( ) const

◆ GetMutableSector()

RefCountedPtr< Sector > Galaxy::GetMutableSector ( const SystemPath path)
inline
Here is the call graph for this function:

◆ GetSector()

RefCountedPtr< const Sector > Galaxy::GetSector ( const SystemPath path)
inline
Here is the call graph for this function:

◆ GetSectorDensity()

virtual Uint8 Galaxy::GetSectorDensity ( const int  sx,
const int  sy,
const int  sz 
) const
pure virtual

Implemented in DensityMapGalaxy.

◆ GetStarSystem()

RefCountedPtr< StarSystem > Galaxy::GetStarSystem ( const SystemPath path)
inline
Here is the call graph for this function:

◆ GetStats() [1/2]

Perf::Stats & Galaxy::GetStats ( )
inline

◆ GetStats() [2/2]

const Perf::Stats & Galaxy::GetStats ( ) const
inline

◆ Init()

void Galaxy::Init ( )
protectedvirtual
Here is the call graph for this function:

◆ IsInitialized()

bool Galaxy::IsInitialized ( ) const
inline

◆ LoadFromJson()

RefCountedPtr< Galaxy > Galaxy::LoadFromJson ( const Json jsonObj)
static
Here is the call graph for this function:

◆ NewSectorSlaveCache()

RefCountedPtr< SectorCache::Slave > Galaxy::NewSectorSlaveCache ( )
inline
Here is the call graph for this function:

◆ NewStarSystemSlaveCache()

RefCountedPtr< StarSystemCache::Slave > Galaxy::NewStarSystemSlaveCache ( )
inline
Here is the call graph for this function:

◆ SetGalaxyGenerator()

void Galaxy::SetGalaxyGenerator ( RefCountedPtr< GalaxyGenerator galaxyGenerator)
protected

◆ ToJson()

void Galaxy::ToJson ( Json jsonObj)

Friends And Related Symbol Documentation

◆ GalaxyGenerator

friend class GalaxyGenerator
friend

Member Data Documentation

◆ GALAXY_RADIUS

const float Galaxy::GALAXY_RADIUS

◆ SOL_OFFSET_X

const float Galaxy::SOL_OFFSET_X

◆ SOL_OFFSET_Y

const float Galaxy::SOL_OFFSET_Y

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