Skyscraper 2.0
|
#include <sky.h>
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 |
VM * | vm |
Skyscraper::SkySystem::SkySystem | ( | VM * | vm | ) |
Skyscraper::SkySystem::~SkySystem | ( | ) |
Definition at line 51 of file sky.cpp.
References mCaelumSystem.
void Skyscraper::SkySystem::CreateSky | ( | EngineContext * | engine | ) |
Definition at line 77 of file sky.cpp.
References Skyscraper::HAL::configfile, SBS::SBS::CreateSky(), Skyscraper::HAL::GetConfigBool(), Skyscraper::VM::GetHAL(), Skyscraper::EngineContext::GetSystem(), InitSky(), ReportFatalError(), and vm.
Referenced by Skyscraper::VM::HandleReload().
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.
|
inline |
Definition at line 47 of file sky.h.
Referenced by Skyscraper::SkyControl::Loop(), Skyscraper::SkyControl::OnInit(), and Skyscraper::VMConsole::Process().
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().
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().
bool Skyscraper::SkySystem::InitSky | ( | EngineContext * | engine | ) |
Definition at line 112 of file sky.cpp.
References Skyscraper::HAL::configfile, datetime, Skyscraper::HAL::GetConfigBool(), Skyscraper::HAL::GetConfigFloat(), Skyscraper::VM::GetHAL(), Skyscraper::HAL::GetSceneManager(), Skyscraper::EngineContext::GetSystem(), latitude, longitude, mCaelumSystem, Skyscraper::HAL::mRoot, Skyscraper::HAL::mViewports, new_location, new_time, Skyscraper::HAL::Renderer, ReportFatalError(), SetDateTimeNow(), sky_error, SkyMult, SkyName, SBS::SBS::UnitScale, and vm.
Referenced by CreateSky().
|
private |
Definition at line 338 of file sky.cpp.
References Skyscraper::VM::GetHAL(), Skyscraper::HAL::Report(), and vm.
|
private |
Definition at line 343 of file sky.cpp.
References Skyscraper::VM::GetHAL(), Skyscraper::HAL::ReportError(), and vm.
|
private |
Definition at line 348 of file sky.cpp.
References Skyscraper::VM::GetHAL(), Skyscraper::HAL::ReportFatalError(), and vm.
Referenced by CreateSky(), and InitSky().
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().
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().
Definition at line 266 of file sky.cpp.
References latitude, longitude, and new_location.
Referenced by Skyscraper::ScriptProcessor::GlobalsSection::Run().
void Skyscraper::SkySystem::UnloadSky | ( | ) |
Definition at line 58 of file sky.cpp.
References mCaelumSystem, and new_time.
Referenced by Skyscraper::VM::HandleReload().
void Skyscraper::SkySystem::UpdateSky | ( | ) |
Definition at line 249 of file sky.cpp.
References Skyscraper::VM::GetActiveEngine(), SBS::SBS::GetElapsedTime(), Skyscraper::VM::GetHAL(), Skyscraper::EngineContext::GetSystem(), mCaelumSystem, Skyscraper::HAL::mCameras, SBS_PROFILE_MAIN, SkyMult, and vm.
Referenced by Skyscraper::VM::Run().
|
private |
Definition at line 68 of file sky.h.
Referenced by InitSky(), SetDateTime(), and SkySystem().
|
private |
Definition at line 67 of file sky.h.
Referenced by InitSky(), SetLocation(), and SkySystem().
|
private |
Definition at line 67 of file sky.h.
Referenced by InitSky(), SetLocation(), and SkySystem().
|
private |
Definition at line 59 of file sky.h.
Referenced by EnableSky(), GetDate(), GetTime(), InitSky(), SetDateTime(), SkySystem(), UnloadSky(), UpdateSky(), and ~SkySystem().
|
private |
Definition at line 66 of file sky.h.
Referenced by InitSky(), SetLocation(), and SkySystem().
|
private |
Definition at line 66 of file sky.h.
Referenced by InitSky(), SetDateTime(), SkySystem(), and UnloadSky().
|
private |
Definition at line 69 of file sky.h.
Referenced by InitSky(), and SkySystem().
int Skyscraper::SkySystem::SkyMult |
Definition at line 54 of file sky.h.
Referenced by InitSky(), Skyscraper::SkyControl::On_bSetMultiplier_Click(), Skyscraper::ScriptProcessor::GlobalsSection::Run(), SkySystem(), and UpdateSky().
std::string Skyscraper::SkySystem::SkyName |
Definition at line 55 of file sky.h.
Referenced by Skyscraper::VM::Initialize(), InitSky(), and Skyscraper::ScriptProcessor::GlobalsSection::Run().
|
private |
Definition at line 71 of file sky.h.
Referenced by CreateSky(), EnableSky(), InitSky(), Report(), ReportError(), ReportFatalError(), SkySystem(), and UpdateSky().