Skyscraper 2.0
Skyscraper::SkySystem Class Reference

#include <sky.h>

Collaboration diagram for Skyscraper::SkySystem:

Public Member Functions

 SkySystem (VM *vm)
 
 ~SkySystem ()
 
void CreateSky (EngineContext *engine)
 
void UnloadSky ()
 
bool InitSky (EngineContext *engine)
 
void EnableSky (bool value)
 
void UpdateSky ()
 
Caelum::CaelumSystem * GetCaelumSystem ()
 
void SetLocation (Real latitude, Real longitude)
 
void SetDateTimeNow ()
 
void SetDateTime (double julian_date_time)
 
void GetTime (int &hour, int &minute, int &second)
 
void GetDate (int &year, int &month, int &day)
 

Public Attributes

int SkyMult
 
std::string SkyName
 

Private Member Functions

void Report (const std::string &message)
 
bool ReportError (const std::string &message)
 
bool ReportFatalError (const std::string &message)
 

Private Attributes

Caelum::CaelumSystem * mCaelumSystem
 
bool new_location
 
bool new_time
 
Real latitude
 
Real longitude
 
double datetime
 
bool sky_error
 
VMvm
 

Detailed Description

Definition at line 37 of file sky.h.

Constructor & Destructor Documentation

◆ SkySystem()

Skyscraper::SkySystem::SkySystem ( VM * vm)

Definition at line 38 of file sky.cpp.

References datetime, latitude, longitude, mCaelumSystem, new_location, new_time, sky_error, SkyMult, and vm.

◆ ~SkySystem()

Skyscraper::SkySystem::~SkySystem ( )

Definition at line 51 of file sky.cpp.

References mCaelumSystem.

Member Function Documentation

◆ CreateSky()

void Skyscraper::SkySystem::CreateSky ( EngineContext * engine)

◆ EnableSky()

void Skyscraper::SkySystem::EnableSky ( bool value)

Definition at line 322 of file sky.cpp.

References SBS::SBS::EnableSkybox(), Skyscraper::VM::GetEngine(), Skyscraper::EngineContext::GetSystem(), mCaelumSystem, and vm.

Here is the call graph for this function:

◆ GetCaelumSystem()

Caelum::CaelumSystem * Skyscraper::SkySystem::GetCaelumSystem ( )
inline

◆ GetDate()

void Skyscraper::SkySystem::GetDate ( int & year,
int & month,
int & day )

Definition at line 314 of file sky.cpp.

References mCaelumSystem.

Referenced by Skyscraper::VMConsole::Process().

◆ GetTime()

void Skyscraper::SkySystem::GetTime ( int & hour,
int & minute,
int & second )

Definition at line 299 of file sky.cpp.

References mCaelumSystem.

Referenced by Skyscraper::VMConsole::Process(), and Skyscraper::ScriptProcessor::Run().

◆ InitSky()

◆ Report()

void Skyscraper::SkySystem::Report ( const std::string & message)
private

Definition at line 338 of file sky.cpp.

References Skyscraper::VM::GetHAL(), Skyscraper::HAL::Report(), and vm.

Here is the call graph for this function:

◆ ReportError()

bool Skyscraper::SkySystem::ReportError ( const std::string & message)
private

Definition at line 343 of file sky.cpp.

References Skyscraper::VM::GetHAL(), Skyscraper::HAL::ReportError(), and vm.

Here is the call graph for this function:

◆ ReportFatalError()

bool Skyscraper::SkySystem::ReportFatalError ( const std::string & message)
private

Definition at line 348 of file sky.cpp.

References Skyscraper::VM::GetHAL(), Skyscraper::HAL::ReportFatalError(), and vm.

Referenced by CreateSky(), and InitSky().

Here is the call graph for this function:

◆ SetDateTime()

void Skyscraper::SkySystem::SetDateTime ( double julian_date_time)

Definition at line 290 of file sky.cpp.

References datetime, mCaelumSystem, and new_time.

Referenced by Skyscraper::ScriptProcessor::GlobalsSection::Run(), and SetDateTimeNow().

◆ SetDateTimeNow()

void Skyscraper::SkySystem::SetDateTimeNow ( )

Definition at line 273 of file sky.cpp.

References SetDateTime().

Referenced by InitSky(), Skyscraper::SkyControl::On_bGetSystemTime_Click(), and Skyscraper::ScriptProcessor::GlobalsSection::Run().

Here is the call graph for this function:

◆ SetLocation()

void Skyscraper::SkySystem::SetLocation ( Real latitude,
Real longitude )

Definition at line 266 of file sky.cpp.

References latitude, longitude, and new_location.

Referenced by Skyscraper::ScriptProcessor::GlobalsSection::Run().

◆ UnloadSky()

void Skyscraper::SkySystem::UnloadSky ( )

Definition at line 58 of file sky.cpp.

References mCaelumSystem, and new_time.

Referenced by Skyscraper::VM::HandleReload().

◆ UpdateSky()

void Skyscraper::SkySystem::UpdateSky ( )

Member Data Documentation

◆ datetime

double Skyscraper::SkySystem::datetime
private

Definition at line 68 of file sky.h.

Referenced by InitSky(), SetDateTime(), and SkySystem().

◆ latitude

Real Skyscraper::SkySystem::latitude
private

Definition at line 67 of file sky.h.

Referenced by InitSky(), SetLocation(), and SkySystem().

◆ longitude

Real Skyscraper::SkySystem::longitude
private

Definition at line 67 of file sky.h.

Referenced by InitSky(), SetLocation(), and SkySystem().

◆ mCaelumSystem

Caelum::CaelumSystem* Skyscraper::SkySystem::mCaelumSystem
private

◆ new_location

bool Skyscraper::SkySystem::new_location
private

Definition at line 66 of file sky.h.

Referenced by InitSky(), SetLocation(), and SkySystem().

◆ new_time

bool Skyscraper::SkySystem::new_time
private

Definition at line 66 of file sky.h.

Referenced by InitSky(), SetDateTime(), SkySystem(), and UnloadSky().

◆ sky_error

bool Skyscraper::SkySystem::sky_error
private

Definition at line 69 of file sky.h.

Referenced by InitSky(), and SkySystem().

◆ SkyMult

int Skyscraper::SkySystem::SkyMult

◆ SkyName

std::string Skyscraper::SkySystem::SkyName

◆ vm

VM* Skyscraper::SkySystem::vm
private

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