Pioneer
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | List of all members
Space Class Reference

#include <Space.h>

Classes

struct  BodyDist
 

Public Types

typedef const std::vector< Body * > BodyNearList
 

Public Member Functions

 Space (Game *game, RefCountedPtr< Galaxy > galaxy, Space *oldSpace=nullptr)
 
 Space (Game *game, RefCountedPtr< Galaxy > galaxy, const SystemPath &path, Space *oldSpace=nullptr)
 
 Space (Game *game, RefCountedPtr< Galaxy > galaxy, const Json &jsonObj, double at_time)
 
 ~Space ()
 
void ToJson (Json &jsonObj)
 
BodyGetBodyByIndex (Uint32 idx) const
 
SystemBodyGetSystemBodyByIndex (Uint32 idx) const
 
Uint32 GetIndexForBody (const Body *body) const
 
Uint32 GetIndexForSystemBody (const SystemBody *sbody) const
 
RefCountedPtr< StarSystemGetStarSystem () const
 
FrameId GetRootFrame () const
 
void AddBody (Body *)
 
void RemoveBody (Body *)
 
void KillBody (Body *)
 
void TimeStep (float step)
 
void GetHyperspaceExitParams (const SystemPath &source, const SystemPath &dest, vector3d &pos, vector3d &vel) const
 
vector3d GetHyperspaceExitPoint (const SystemPath &source, const SystemPath &dest) const
 
vector3d GetHyperspaceExitPoint (const SystemPath &source) const
 
BodyFindNearestTo (const Body *b, ObjectType t) const
 
BodyFindBodyForPath (const SystemPath *path) const
 
Uint32 GetNumBodies () const
 
IterationProxy< std::vector< Body * > > GetBodies ()
 
const IterationProxy< const std::vector< Body * > > GetBodies () const
 
Background::ContainerGetBackground ()
 
void RefreshBackground ()
 
BodyNearList GetBodiesMaybeNear (const Body *b, double dist)
 
BodyNearList GetBodiesMaybeNear (const vector3d &pos, double dist)
 
void DebugDumpFrames (bool details)
 
std::vector< BodyDistBodiesInAngle (const Body *b, const vector3d &offset, const vector3d &dir, double cosOfMaxAngle) const
 

Member Typedef Documentation

◆ BodyNearList

typedef const std::vector<Body *> Space::BodyNearList

Constructor & Destructor Documentation

◆ Space() [1/3]

Space::Space ( Game game,
RefCountedPtr< Galaxy galaxy,
Space oldSpace = nullptr 
)
Here is the call graph for this function:

◆ Space() [2/3]

Space::Space ( Game game,
RefCountedPtr< Galaxy galaxy,
const SystemPath path,
Space oldSpace = nullptr 
)
Here is the call graph for this function:

◆ Space() [3/3]

Space::Space ( Game game,
RefCountedPtr< Galaxy galaxy,
const Json jsonObj,
double  at_time 
)
Here is the call graph for this function:

◆ ~Space()

Space::~Space ( )
Here is the call graph for this function:

Member Function Documentation

◆ AddBody()

void Space::AddBody ( Body b)

◆ BodiesInAngle()

std::vector< Space::BodyDist > Space::BodiesInAngle ( const Body b,
const vector3d offset,
const vector3d dir,
double  cosOfMaxAngle 
) const
Here is the call graph for this function:

◆ DebugDumpFrames()

void Space::DebugDumpFrames ( bool  details)
Here is the call graph for this function:

◆ FindBodyForPath()

Body * Space::FindBodyForPath ( const SystemPath path) const
Here is the call graph for this function:

◆ FindNearestTo()

Body * Space::FindNearestTo ( const Body b,
ObjectType  t 
) const
Here is the call graph for this function:

◆ GetBackground()

Background::Container * Space::GetBackground ( )
inline

◆ GetBodies() [1/2]

IterationProxy< std::vector< Body * > > Space::GetBodies ( )
inline
Here is the call graph for this function:

◆ GetBodies() [2/2]

const IterationProxy< const std::vector< Body * > > Space::GetBodies ( ) const
inline
Here is the call graph for this function:

◆ GetBodiesMaybeNear() [1/2]

BodyNearList Space::GetBodiesMaybeNear ( const Body b,
double  dist 
)
inline

◆ GetBodiesMaybeNear() [2/2]

BodyNearList Space::GetBodiesMaybeNear ( const vector3d pos,
double  dist 
)
inline

◆ GetBodyByIndex()

Body * Space::GetBodyByIndex ( Uint32  idx) const
Here is the call graph for this function:

◆ GetHyperspaceExitParams()

void Space::GetHyperspaceExitParams ( const SystemPath source,
const SystemPath dest,
vector3d pos,
vector3d vel 
) const
Here is the call graph for this function:

◆ GetHyperspaceExitPoint() [1/2]

vector3d Space::GetHyperspaceExitPoint ( const SystemPath source) const
inline
Here is the call graph for this function:

◆ GetHyperspaceExitPoint() [2/2]

vector3d Space::GetHyperspaceExitPoint ( const SystemPath source,
const SystemPath dest 
) const
inline
Here is the call graph for this function:

◆ GetIndexForBody()

Uint32 Space::GetIndexForBody ( const Body body) const
Here is the call graph for this function:

◆ GetIndexForSystemBody()

Uint32 Space::GetIndexForSystemBody ( const SystemBody sbody) const

◆ GetNumBodies()

Uint32 Space::GetNumBodies ( ) const
inline

◆ GetRootFrame()

FrameId Space::GetRootFrame ( ) const
inline

◆ GetStarSystem()

RefCountedPtr< StarSystem > Space::GetStarSystem ( ) const
inline

◆ GetSystemBodyByIndex()

SystemBody * Space::GetSystemBodyByIndex ( Uint32  idx) const

◆ KillBody()

void Space::KillBody ( Body b)
Here is the call graph for this function:

◆ RefreshBackground()

void Space::RefreshBackground ( )
Here is the call graph for this function:

◆ RemoveBody()

void Space::RemoveBody ( Body b)

◆ TimeStep()

void Space::TimeStep ( float  step)
Here is the call graph for this function:

◆ ToJson()

void Space::ToJson ( Json jsonObj)
Here is the call graph for this function:

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