Skyscraper 2.0
Skyscraper::ScriptProcessor::VehicleSection Class Reference

#include <section.h>

Inheritance diagram for Skyscraper::ScriptProcessor::VehicleSection:
Collaboration diagram for Skyscraper::ScriptProcessor::VehicleSection:

Public Member Functions

 VehicleSection (ScriptProcessor *parent)
 
 ~VehicleSection ()
 
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 161 of file section.h.

Constructor & Destructor Documentation

◆ VehicleSection()

Skyscraper::ScriptProcessor::VehicleSection::VehicleSection ( ScriptProcessor * parent)

Definition at line 34 of file vehicles.cpp.

◆ ~VehicleSection()

Skyscraper::ScriptProcessor::VehicleSection::~VehicleSection ( )
inline

Definition at line 165 of file section.h.

Member Function Documentation

◆ Run()

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

Reimplemented from Skyscraper::ScriptProcessor::Section.

Definition at line 39 of file vehicles.cpp.

References SBS::Vehicle::AddWheel(), Skyscraper::ScriptProcessor::Calc(), SBS::Vehicle::ChassisMesh, SBS::Vehicle::ChassisScale, SBS::Vehicle::ChassisShift, Skyscraper::ScriptProcessor::config, Skyscraper::ScriptProcessor::ConfigHandler::Context, SBS::Vehicle::Create(), SBS::Vehicle::CreateChassis(), Skyscraper::ScriptProcessor::ConfigHandler::Current, Skyscraper::ScriptProcessor::engine, SBS::Vehicle::FrictionSlip, SBS::SBS::GetVehicle(), Skyscraper::IsNumeric(), Skyscraper::ScriptProcessor::LineData, SBS::Vehicle::MaxEngineForce, SBS::Vehicle::MaxSuspensionTravelCm, SBS::Vehicle::Name, SBS::SBS::NewVehicle(), Skyscraper::ScriptProcessor::ConfigHandler::RangeH, Skyscraper::ScriptProcessor::ConfigHandler::RangeL, Skyscraper::ScriptProcessor::ConfigHandler::RangeStart, SBS::ReplaceAll(), Skyscraper::EngineContext::Report(), SBS::Vehicle::RollInfluence, Skyscraper::ScriptProcessor::sContinue, Skyscraper::ScriptProcessor::ScriptError(), Skyscraper::ScriptProcessor::ConfigHandler::SectionNum, Skyscraper::ScriptProcessor::sError, Skyscraper::ScriptProcessor::Simcore, Skyscraper::ScriptProcessor::sNextLine, SBS::StartsWithNoCase(), SBS::Vehicle::SteeringClamp, SBS::Vehicle::SteeringIncrement, Skyscraper::ScriptProcessor::StoreCommand(), SBS::Vehicle::SuspensionCompression, SBS::Vehicle::SuspensionDamping, SBS::Vehicle::SuspensionRestLength, SBS::Vehicle::SuspensionStiffness, SBS::ToBool(), SBS::ToFloat(), SBS::ToInt(), SBS::ToString(), SBS::Vehicle::WheelFriction, SBS::Vehicle::WheelMesh, and SBS::Vehicle::WheelScale.

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

Here is the call graph for this function:

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