59 if (parent->FunctionProc() ==
true)
64 std::string value = GetAfterEquals(
LineData, equals);
92 std::string str =
Calc(value);
105 std::string str =
Calc(value);
115 std::string str =
Calc(value);
125 std::string str =
Calc(value);
135 std::string str =
Calc(value);
145 std::string str =
Calc(value);
155 std::string str =
Calc(value);
165 std::string str =
Calc(value);
177 parent->CheckFile(
"data/" + value);
190 parent->CheckFile(
"data/" + value);
202 parent->CheckFile(
"data/" + value);
214 parent->CheckFile(
"data/" + value);
227 parent->CheckFile(
"data/" + value);
239 parent->CheckFile(
"data/" + value);
251 parent->CheckFile(
"data/" + value);
264 parent->CheckFile(
"data/" + value);
276 parent->CheckFile(
"data/" + value);
288 parent->CheckFile(
"data/" + value);
307 std::string str =
Calc(value);
319 std::string str =
Calc(value);
331 std::string str =
Calc(value);
340 int params = SplitAfterEquals(
LineData);
342 return ScriptError(
"Incorrect number of parameters");
345 for (
int i = 0; i <= 2; i++)
348 return ScriptError(
"Invalid value: " + tempdata[i]);
409 std::string str =
Calc(value);
419 int params = SplitAfterEquals(
LineData);
421 return ScriptError(
"Incorrect number of parameters");
424 for (
int i = 0; i <= 1; i++)
427 return ScriptError(
"Invalid value: " + tempdata[i]);
440 std::string str =
Calc(value);
452 std::string str =
Calc(value);
464 std::string str =
Calc(value);
476 std::string str =
Calc(value);
488 std::string str =
Calc(value);
500 std::string str =
Calc(value);
511 std::string str =
Calc(value);
559 parent->CheckFile(
"data/" + value);
569 std::string str =
Calc(value);
612 int params = SplitAfterEquals(
LineData);
614 return ScriptError(
"Incorrect number of parameters");
617 for (
int i = 0; i <= 2; i++)
620 return ScriptError(
"Invalid value: " + tempdata[i]);
642 parent->CheckFile(
"data/" + value);
654 parent->CheckFile(
"data/" + value);
666 parent->CheckFile(
"data/" + value);
684 int params = SplitData(
LineData, 15);
687 return ScriptError(
"Incorrect number of parameters");
690 for (
int i = 1; i <= 3; i++)
693 return ScriptError(
"Invalid value: " + tempdata[i]);
707 int params = SplitData(
LineData, 20);
710 return ScriptError(
"Incorrect number of parameters");
713 for (
int i = 2; i <= 7; i++)
716 return ScriptError(
"Invalid value: " + tempdata[i]);
728 int params = SplitData(
LineData, 9);
731 return ScriptError(
"Incorrect number of parameters");
734 for (
int i = 2; i <= 6; i++)
739 return ScriptError(
"Invalid value: " + tempdata[i]);
747 int result = parent->GetElevatorCarSection()->Run(
LineData);
bool CreateElevator(bool relative, Real x, Real z, int floor)
std::string MotorUpRunSound
std::string CounterweightStopSound
std::string MotorEmergencyStopSound
void SetFloorSkipText(const std::string &id)
std::string MotorDownStartSound
bool SetRecallFloor(int floor)
std::string MotorDownRunSound
void SetRunState(bool value)
Wall * CreateCounterweight(const std::string &frame_texture, const std::string &weight_texture, Real x, Real z, const Vector3 &size, Real weight_voffset)
bool SetACPFloor(int floor)
std::string MotorUpStopSound
std::string MotorIdleSound
std::string MotorUpStartSound
bool SetAlternateRecallFloor(int floor)
std::string MotorDownStopSound
std::string CounterweightStartSound
bool AddRails(const std::string &main_texture, const std::string &edge_texture, Real x, Real z, bool orientation, Real rail_distance, Real rail_width)
std::string CounterweightMoveSound
Elevator * GetElevator(int number)
Elevator * NewElevator(int number)
void Report(const std::string &message)
ElevatorSection(ScriptProcessor *parent)
int Run(std::string &LineData)
static const int sNextLine
static const int sContinue
void StoreCommand(::SBS::Object *object)
std::string Calc(const std::string &expression)
bool StartsWithNoCase(const std::string &string, const std::string &check_string)
void ReplaceAll(std::string &string, const std::string &original, const std::string &replacement)
int ToInt(const std::string &string)
std::string ToString(int number)
Real ToFloat(const std::string &string)
bool ToBool(std::string string)
bool IsNumeric(const wxString &string)