Skyscraper 2.0
Skyscraper::ScriptProcessor::GlobalsSection Class Reference

#include <section.h>

Inheritance diagram for Skyscraper::ScriptProcessor::GlobalsSection:
Collaboration diagram for Skyscraper::ScriptProcessor::GlobalsSection:

Public Member Functions

 GlobalsSection (ScriptProcessor *parent)
 
 ~GlobalsSection ()
 
int Run (std::string &LineData)
 
- Public Member Functions inherited from Skyscraper::ScriptProcessor::Section
 Section (ScriptProcessor *parent)
 
virtual ~Section ()
 
virtual void Reset ()
 
int SplitData (const std::string &string, int start, bool calc=true)
 
int SplitAfterEquals (const std::string &string, bool calc=true)
 
std::string GetAfterEquals (const std::string &string, bool &found_equals)
 
std::string GetBeforeEquals (const std::string &string, bool calc=true)
 
bool GetRange (const std::string &string, int &start, int &end)
 
int ScriptError (std::string message, bool warning=false)
 
int ScriptError ()
 
int ScriptWarning (std::string message)
 
bool IfProc (const std::string &expression)
 
void StoreCommand (SBS::Object *object)
 
int MathFunctions (std::string &LineData)
 
::SBS::MeshObjectGetMeshObject (std::string name)
 
bool GetElevatorCar (std::string &value, int floor, int &elevator, int &car)
 
void GetDirectionStrings (int direction, std::string &face_direction, std::string &open_direction)
 

Additional Inherited Members

- Protected Member Functions inherited from Skyscraper::ScriptProcessor::Section
std::string Calc (const std::string &expression)
 
- Protected Attributes inherited from Skyscraper::ScriptProcessor::Section
ScriptProcessorparent
 
SBS::SBSSimcore
 
EngineContextengine
 
std::vector< std::string > tempdata
 
bool warn_deprecated
 
ScriptProcessor::ConfigHandlerconfig
 

Detailed Description

Definition at line 88 of file section.h.

Constructor & Destructor Documentation

◆ GlobalsSection()

Skyscraper::ScriptProcessor::GlobalsSection::GlobalsSection ( ScriptProcessor * parent)

Definition at line 36 of file globals.cpp.

◆ ~GlobalsSection()

Skyscraper::ScriptProcessor::GlobalsSection::~GlobalsSection ( )
inline

Definition at line 92 of file section.h.

Member Function Documentation

◆ Run()

int Skyscraper::ScriptProcessor::GlobalsSection::Run ( std::string & LineData)
virtual

Reimplemented from Skyscraper::ScriptProcessor::Section.

Definition at line 41 of file globals.cpp.

References SBS::SBS::BuildingDescription, SBS::SBS::BuildingDesigner, SBS::SBS::BuildingLocation, SBS::SBS::BuildingName, SBS::SBS::BuildingVersion, Skyscraper::ScriptProcessor::Calc(), SBS::SBS::camera, Skyscraper::ScriptProcessor::config, Skyscraper::ScriptProcessor::ConfigHandler::Context, SBS::Camera::EnableCollisions(), SBS::Camera::EnableGravity(), SBS::SBS::EnableMap(), Skyscraper::ScriptProcessor::engine, Skyscraper::VM::GetSkySystem(), Skyscraper::EngineContext::GetVM(), SBS::SBS::HasBounds(), SBS::SBS::InterfloorOnTop, Skyscraper::IsNumeric(), Skyscraper::EngineContext::IsRoot(), Skyscraper::ScriptProcessor::LineData, SBS::SBS::Lobby, Skyscraper::EngineContext::Move(), Skyscraper::EngineContext::Moved, Skyscraper::EngineContext::Report(), SBS::Object::Rotate(), Skyscraper::ScriptProcessor::sContinue, Skyscraper::ScriptProcessor::ScriptError(), Skyscraper::ScriptProcessor::ConfigHandler::SectionNum, SBS::SBS::SetBounds(), Skyscraper::SkySystem::SetDateTime(), Skyscraper::SkySystem::SetDateTimeNow(), Skyscraper::SkySystem::SetLocation(), SBS::Camera::SetStartDirection(), SBS::Camera::SetStartRotation(), Skyscraper::ScriptProcessor::Simcore, Skyscraper::SkySystem::SkyMult, SBS::SBS::SkyName, Skyscraper::SkySystem::SkyName, Skyscraper::ScriptProcessor::sNextLine, SBS::Camera::StartFloor, SBS::Camera::StartPositionX, SBS::Camera::StartPositionZ, SBS::StartsWithNoCase(), SBS::ToBool(), and SBS::ToFloat().

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

Here is the call graph for this function:

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