Skyscraper 2.0
|
#include <elevator.h>
Classes | |
struct | QueueEntry |
class | Timer |
Public Member Functions | |
Elevator (Object *parent, int number) | |
~Elevator () | |
bool | CreateElevator (bool relative, Real x, Real z, int floor) |
Wall * | CreateCounterweight (const std::string &frame_texture, const std::string &weight_texture, Real x, Real z, const Vector3 &size, Real weight_voffset) |
bool | AddRails (const std::string &main_texture, const std::string &edge_texture, Real x, Real z, bool orientation, Real rail_distance, Real rail_width) |
bool | AddRoute (int floor, int direction, int call_type) |
bool | DeleteRoute (int floor, int direction) |
bool | RouteExists (bool direction, int floor) |
bool | CallCancel () |
bool | CallCancelAll () |
bool | Stop (bool emergency=false) |
void | ProcessCallQueue () |
void | Loop () |
void | DumpQueues () |
void | Enabled (bool value) |
ElevatorCar * | IsInElevator (const Vector3 &position, bool camera=false) |
Real | GetElevatorStart () |
Real | GetDestination () |
Real | GetStoppingDistance () |
bool | GetBrakeStatus () |
int | GetEmergencyStopStatus () |
void | UpdateFloorIndicators () |
Real | GetJerkRate () |
Real | GetJerkPosition () |
void | SetFloorSkipText (const std::string &id) |
std::string | GetFloorSkipText () |
bool | InServiceMode () |
bool | Go (int floor, bool hold=false) |
bool | EnableACP (bool value) |
bool | EnableUpPeak (bool value) |
bool | EnableDownPeak (bool value) |
bool | EnableIndependentService (bool value, int car_number=0) |
bool | EnableInspectionService (bool value) |
bool | EnableFireService1 (int value) |
bool | EnableFireService2 (int value, int car_number=0, bool force=false) |
bool | SetRecallFloor (int floor) |
bool | SetAlternateRecallFloor (int floor) |
bool | SetACPFloor (int floor) |
void | GoToRecallFloor () |
bool | MoveUp () |
bool | MoveDown () |
bool | SetGoButton (bool value) |
bool | SetUpButton (bool value) |
bool | SetDownButton (bool value) |
int | GetTopFloor () |
int | GetBottomFloor () |
void | UpdateDirectionalIndicators () |
bool | IsIdle () |
void | ResetQueue (bool up, bool down, bool stop_if_empty=true) |
void | DeleteActiveRoute () |
bool | IsQueueActive () |
bool | BeyondDecelMarker (int direction, Real destination) |
void | Report (const std::string &message) |
bool | ReportError (const std::string &message) |
bool | IsQueued (int floor, int queue=0) |
void | SetRunState (bool value) |
bool | IsRunning () |
bool | GetArrivalDirection (int floor) |
void | MoveObjects (Real offset) |
void | OnInit () |
int | AvailableForCall (bool destination, int floor, int direction, bool report_on_failure=true) |
bool | SelectFloor (int floor) |
bool | Check (Vector3 position) |
bool | ReturnToNearestFloor (bool parking=true, int car=1) |
bool | ReturnToBottomFloor () |
bool | IsLeveled () |
bool | Up () |
bool | Down () |
bool | Up (bool value) |
bool | Down (bool value) |
Shaft * | GetShaft () |
CallStation * | GetPrimaryCallStation () |
int | GetActiveCallFloor () |
int | GetActiveCallDirection () |
int | GetActiveCallType () |
bool | InElevator () |
bool | PeakWaiting () |
bool | OnPeakFloor () |
bool | OnRecallFloor () |
int | GetActiveRecallFloor () |
std::vector< Floor * > | GetLobbies () |
bool | IsStopped () |
void | CancelHallCall (int floor, int direction) |
bool | IsManuallyStopped () |
DynamicMesh * | GetDoorContainer () |
bool | CheckInterlocks (bool skip_current_floor=false) |
bool | AreDoorsOpen () |
int | AreDoorsMoving (bool car_doors=true, bool shaft_doors=true) |
bool | AreShaftDoorsClosed (bool skip_current_floor=false) |
bool | DoorsStopped () |
bool | AreDoorsOpening (bool car_doors=true, bool shaft_doors=true) |
bool | AreDoorsClosing (bool car_doors=true, bool shaft_doors=true) |
bool | IsServicedFloor (int floor, bool report=true) |
void | ChangeLight (int floor, bool value) |
void | ResetLights () |
void | OpenDoors () |
void | CloseDoors () |
bool | GetHoldStatus () |
bool | OnTopFloor () |
bool | OnBottomFloor () |
bool | IsNudgeModeActive () |
void | ResetShaftDoors (int floor) |
void | ResetDoors () |
void | ResetNudgeTimers (bool start=true) |
void | HoldDoors () |
void | EnableNudgeMode (bool value) |
bool | OnParkingFloor () |
bool | SetHoistwayAccess (int floor, int access) |
void | SetControls (const std::string &action_name) |
bool | GetDestinationDispatch () |
int | GetRecallFloor () |
void | AddController (int controller) |
void | RemoveController (int controller) |
bool | GetCallStatus (int floor, bool &up, bool &down) |
int | GetMotorRoom () |
void | EnableMalfunctions (bool value) |
void | Malfunction () |
ElevatorCar * | AddCar () |
ElevatorCar * | GetCar (int number) |
void | RemoveCar (ElevatorCar *car) |
int | GetCarCount () |
ElevatorCar * | GetCarForFloor (int number, bool report_on_failure=false) |
int | GetFloorForCar (int car, int number) |
Real | GetCarOffset (int number) |
![]() | |
Object (Object *parent) | |
virtual | ~Object () |
void | SetValues (const std::string &type, const std::string &name, bool is_permanent, bool is_movable=true) |
bool | IsPermanent () |
bool | IsMovable () |
const std::string & | GetType () |
int | GetNumber () |
void | AddChild (Object *object) |
Object * | GetChild (int index) |
int | GetChildrenCount () |
void | RemoveChild (Object *object) |
SceneNode * | GetSceneNode () |
void | ShowBoundingBox (bool value) |
virtual void | Move (const Vector3 &vector, Real speed=1.0) |
virtual void | Move (Real X, Real Y, Real Z, Real speed=1.0) |
virtual void | SetPosition (const Vector3 &position) |
void | SetPositionRelative (const Vector3 &position) |
virtual void | SetPosition (Real X, Real Y, Real Z) |
void | SetPositionRelative (Real X, Real Y, Real Z) |
virtual void | SetPositionY (Real value) |
virtual Vector3 | GetPosition (bool relative=false) |
virtual void | Rotate (const Vector3 &vector, Real speed=1.0) |
virtual void | Rotate (Real X, Real Y, Real Z, Real speed=1.0) |
virtual void | SetRotation (const Vector3 &rotation) |
virtual void | SetRotation (Real X, Real Y, Real Z) |
virtual Vector3 | GetRotation () |
Quaternion | GetOrientation (bool relative=false) |
void | SetOrientation (const Quaternion &q, bool relative=false) |
virtual void | OnMove (bool parent) |
virtual void | OnRotate (bool parent) |
virtual void | OnClick (Vector3 &position, bool shift, bool ctrl, bool alt, bool right) |
virtual void | OnUnclick (bool right) |
virtual void | OnHit () |
void | NotifyMove (bool parent=false) |
void | NotifyRotate (bool parent=false) |
virtual void | ResetState () |
void | ChangeParent (Object *new_parent) |
bool | IsGlobal () |
void | Init (bool children=true) |
void | RegisterLoop (Object *object) |
void | UnregisterLoop (Object *object) |
std::string | GetNameBase () |
template<typename T > | |
bool | IsType () |
template<typename T > | |
T * | ConvertTo () |
![]() | |
ObjectBase (Object *parent) | |
virtual | ~ObjectBase () |
Object * | GetParent () |
SBS * | GetRoot () |
void | SetName (const std::string &name) |
const std::string & | GetName () |
std::string | GetNameBase () |
Private Member Functions | |
void | MoveElevatorToFloor () |
void | FinishMove () |
void | PlayStartingSounds () |
void | PlayStoppingSounds (bool emergency=false) |
void | PlayMovingSounds () |
void | HandleDequeue (int direction, bool stop_if_empty=true) |
void | StopSounds () |
Real | GetDestinationAltitude (int floor) |
Real | GetDestinationOffset (int floor) |
void | DirectionalIndicatorsOff () |
void | NotifyArrival (bool early=false) |
void | ProcessGotoFloor (int floor, int direction) |
void | DoSetControls () |
void | SameFloorArrival (int floor, int direction) |
Friends | |
class | ElevatorDoor |
class | ElevatorCar |
Additional Inherited Members | |
![]() | |
void | EnableLoop (bool value) |
void | LoopChildren () |
bool | SelfDestruct () |
![]() | |
SBS * | sbs |
Definition at line 29 of file elevator.h.
SBS::Elevator::Elevator | ( | Object * | parent, |
int | number ) |
Definition at line 59 of file elevator.cpp.
References Acceleration, AccelJerk, ACP, ACPFloor, ACPFloorSet, ActiveDirection, AddCar(), arrival_delay, ArrivalDelay, AssignedShaft, AutoAdjustSound, AutoDoors, Brakes, CalculateStoppingDistance, ChimeOnArrival, Counterweight, CounterweightMoveSound, counterweightsound, CounterweightStartSound, CounterweightStopSound, Created, Deceleration, DecelJerk, departure_delay, DepartureDelay, Destination, Direction, DistanceToTravel, DoorContainer, DownCall, DownPeak, DownQueueEmpty, DownSpeed, ElevatorRate, ElevatorStart, elevposition, EmergencyStop, EmergencyStopSpeed, SBS::Object::EnableLoop(), Error, ErrorOffset, FinishedMove, FireServicePhase1, FireServicePhase2, FireServicePhase2Car, FirstRun, FloorHold, SBS::DynamicMesh::force_combine, SBS::SBS::GetConfigBool(), SBS::SBS::GetConfigFloat(), SBS::SBS::GetConfigInt(), SBS::SBS::GetConfigString(), SBS::Object::GetNumber(), SBS::Object::GetSceneNode(), GoActive, GoActiveFloor, GoPending, GotoFloor, GotoFloorCar, HeightSet, HoistwayAccess, HoistwayAccessFloor, HoistwayAccessHold, ID, IndependentService, IndependentServiceCar, InspectionService, InspectionSpeed, Interlocks, IsEnabled, IsMoving, JerkPos, JerkRate, LastChimeDirection, lastfloor, lastfloorset, LastQueueDirection, LastQueueFloor, Leveling, LevelingOffset, LevelingOpen, LevelingSpeed, LimitQueue, malfunction_timer, ManualDown, ManualGo, ManualMove, ManualMoveHold, ManualStop, ManualUp, MotorDownRunSound, MotorDownStartSound, MotorDownStopSound, MotorEmergencyStopSound, MotorIdleSound, motoridlesound, MotorPosition, motorsound, MotorUpRunSound, MotorUpStartSound, MotorUpStopSound, MoveElevator, MovementRunning, Name, Notified, NotifyEarly, NotifyLate, Number, oldfloor, OnFloor, OpenOnStart, Parking, parking_timer, ParkingDelay, ParkingFloor, QueuePending, QueuePositionDirection, QueueResets, RandomFrequency, RandomProbability, RecallAltSet, RecallFloor, RecallFloorAlternate, RecallSet, RecallUnavailable, ReOpen, Report(), rnd_time, rnd_type, RopeMesh, RopePosition, Running, SBS::ObjectBase::sbs, SBS::ObjectBase::SetName(), SBS::Object::SetValues(), SkipFloorSound, SoundsQueued, StoppingDistance, TempDeceleration, tmpDecelJerk, SBS::ToString(), Type, UpCall, UpPeak, UpQueueEmpty, UpSpeed, UseFloorSkipText, SBS::SBS::Verbose, WaitForDoors, WaitForTimer, WeightMesh, and WeightRopeMesh.
SBS::Elevator::~Elevator | ( | ) |
Definition at line 226 of file elevator.cpp.
References arrival_delay, Cars, counterweightsound, departure_delay, DoorContainer, SBS::SBS::FastDelete, malfunction_timer, motoridlesound, motorsound, SBS::Object::parent_deleting, parking_timer, SBS::SBS::RemoveElevator(), Report(), rnd_time, rnd_type, RopeMesh, SBS::ObjectBase::sbs, SBS::SBS::Verbose, WeightMesh, and WeightRopeMesh.
ElevatorCar * SBS::Elevator::AddCar | ( | ) |
Definition at line 4464 of file elevator.cpp.
References Cars, and ElevatorCar.
Referenced by Elevator(), and Skyscraper::ScriptProcessor::ElevatorCarSection::Run().
void SBS::Elevator::AddController | ( | int | controller | ) |
Definition at line 4977 of file elevator.cpp.
References Controllers, SBS::SBS::GetController(), and SBS::ObjectBase::sbs.
Referenced by SBS::DispatchController::AddElevator().
bool SBS::Elevator::AddRails | ( | const std::string & | main_texture, |
const std::string & | edge_texture, | ||
Real | x, | ||
Real | z, | ||
bool | orientation, | ||
Real | rail_distance, | ||
Real | rail_width ) |
Definition at line 513 of file elevator.cpp.
References SBS::Floor::Altitude, SBS::SBS::CreateWallBox2(), SBS::SBS::GetFloor(), SBS::Shaft::GetLevel(), SBS::Shaft::Level::GetMeshObject(), SBS::Object::GetPosition(), GetShaft(), MotorPosition, ReportError(), and SBS::ObjectBase::sbs.
Referenced by Skyscraper::ScriptProcessor::ElevatorSection::Run().
bool SBS::Elevator::AddRoute | ( | int | floor, |
int | direction, | ||
int | call_type ) |
Definition at line 556 of file elevator.cpp.
References ACP, ACPFloor, AddRoute(), AreDoorsMoving(), AreDoorsOpen(), ChangeLight(), DownQueue, FireServicePhase2, GetCarCount(), GetCarForFloor(), SBS::ElevatorCar::GetFloor(), SBS::SBS::GetFloor(), SBS::SBS::GetPower(), SBS::Floor::ID, IndependentService, InspectionService, SBS::ElevatorCar::IsOnFloor(), LastQueueFloor, LimitQueue, SBS::ElevatorCar::Number, ProcessGotoFloor(), QueuePending, QueuePositionDirection, Report(), ReportError(), RouteExists(), Running, SameFloorArrival(), SBS::ObjectBase::sbs, SBS::ToString(), and UpQueue.
Referenced by AddRoute(), SBS::DispatchController::DispatchElevator(), GoToRecallFloor(), SBS::Elevator::Timer::Notify(), Skyscraper::editelevator::On_bCall_Click(), Skyscraper::editelevator::On_bEnqueueDown_Click(), Skyscraper::editelevator::On_bEnqueueUp_Click(), ProcessCallQueue(), ReturnToBottomFloor(), ReturnToNearestFloor(), and SelectFloor().
bool SBS::Elevator::AreDoorsClosing | ( | bool | car_doors = true, |
bool | shaft_doors = true ) |
Definition at line 4577 of file elevator.cpp.
References AreDoorsClosing(), and Cars.
Referenced by AreDoorsClosing().
int SBS::Elevator::AreDoorsMoving | ( | bool | car_doors = true, |
bool | shaft_doors = true ) |
Definition at line 4528 of file elevator.cpp.
References SBS::ElevatorCar::AreDoorsMoving(), and Cars.
Referenced by AddRoute(), IsIdle(), MoveElevatorToFloor(), and ProcessCallQueue().
bool SBS::Elevator::AreDoorsOpen | ( | ) |
Definition at line 4516 of file elevator.cpp.
References AreDoorsOpen(), and Cars.
Referenced by AddRoute(), AreDoorsOpen(), AvailableForCall(), CheckInterlocks(), EnableFireService2(), IsIdle(), MoveElevatorToFloor(), and ProcessCallQueue().
bool SBS::Elevator::AreDoorsOpening | ( | bool | car_doors = true, |
bool | shaft_doors = true ) |
Definition at line 4565 of file elevator.cpp.
References AreDoorsOpening(), and Cars.
Referenced by AreDoorsOpening(), and AvailableForCall().
bool SBS::Elevator::AreShaftDoorsClosed | ( | bool | skip_current_floor = false | ) |
Definition at line 4541 of file elevator.cpp.
References AreShaftDoorsClosed(), and Cars.
Referenced by AreShaftDoorsClosed(), and CheckInterlocks().
int SBS::Elevator::AvailableForCall | ( | bool | destination, |
int | floor, | ||
int | direction, | ||
bool | report_on_failure = true ) |
Definition at line 3675 of file elevator.cpp.
References AreDoorsOpen(), AreDoorsOpening(), CheckInterlocks(), DownQueue, SBS::ElevatorCar::GetBottomFloor(), GetCarForFloor(), SBS::ElevatorCar::GetFloor(), GetHoldStatus(), SBS::SBS::GetPower(), GetTopFloor(), InServiceMode(), IsIdle(), IsNudgeModeActive(), IsRunning(), LimitQueue, MoveElevator, PeakWaiting(), QueuePending, QueuePositionDirection, QueueResets, Report(), SBS::ElevatorCar::RespondingToCall(), SBS::ObjectBase::sbs, SBS_PROFILE, UpQueue, and SBS::SBS::Verbose.
Referenced by SBS::DispatchController::FindClosestElevator().
bool SBS::Elevator::BeyondDecelMarker | ( | int | direction, |
Real | destination ) |
Definition at line 3374 of file elevator.cpp.
References SBS::SBS::delta, ElevatorRate, SBS::Object::GetPosition(), SBS::ObjectBase::sbs, and StoppingDistance.
Referenced by MoveElevatorToFloor(), and ProcessCallQueue().
bool SBS::Elevator::CallCancel | ( | ) |
Definition at line 764 of file elevator.cpp.
References DeleteRoute(), SBS::SBS::GetPower(), LastQueueFloor, Report(), ReportError(), Running, SBS::ObjectBase::sbs, and SBS::SBS::Verbose.
Referenced by SBS::Action::Run().
bool SBS::Elevator::CallCancelAll | ( | ) |
Definition at line 788 of file elevator.cpp.
References SBS::SBS::GetPower(), LastQueueFloor, Report(), ReportError(), ResetQueue(), Running, SBS::ObjectBase::sbs, and SBS::SBS::Verbose.
Referenced by SBS::Action::Run().
void SBS::Elevator::CancelHallCall | ( | int | floor, |
int | direction ) |
Definition at line 4398 of file elevator.cpp.
References Cars, DeleteRoute(), SBS::Control::GetLightStatus(), SBS::SBS::GetPower(), and SBS::ObjectBase::sbs.
Referenced by SBS::DispatchController::ProcessRoutes().
void SBS::Elevator::ChangeLight | ( | int | floor, |
bool | value ) |
Definition at line 4622 of file elevator.cpp.
References Cars.
Referenced by AddRoute(), DeleteRoute(), and Go().
bool SBS::Elevator::Check | ( | Vector3 | position | ) |
Definition at line 3912 of file elevator.cpp.
References Cars, Check(), IsEnabled, and SBS_PROFILE.
Referenced by Check(), and SBS::Camera::CheckElevator().
bool SBS::Elevator::CheckInterlocks | ( | bool | skip_current_floor = false | ) |
Definition at line 4450 of file elevator.cpp.
References AreDoorsOpen(), AreShaftDoorsClosed(), DoorsStopped(), and Interlocks.
Referenced by AvailableForCall(), and MoveElevatorToFloor().
void SBS::Elevator::CloseDoors | ( | ) |
Definition at line 4656 of file elevator.cpp.
References Cars, SBS::SBS::GetPower(), and SBS::ObjectBase::sbs.
Referenced by Go(), and ProcessCallQueue().
Wall * SBS::Elevator::CreateCounterweight | ( | const std::string & | frame_texture, |
const std::string & | weight_texture, | ||
Real | x, | ||
Real | z, | ||
const Vector3 & | size, | ||
Real | weight_voffset ) |
Definition at line 449 of file elevator.cpp.
References SBS::SBS::AddWall(), Counterweight, counterweightsound, SBS::ElevatorCar::Created, SBS::SBS::CreateWallBox(), SBS::TextureManager::GetAutoSize(), SBS::Floor::GetBase(), GetBottomFloor(), GetCar(), GetCarCount(), SBS::SBS::GetFloor(), SBS::ObjectBase::GetName(), SBS::Object::GetPosition(), SBS::SBS::GetTextureManager(), GetTopFloor(), MotorPosition, ReportError(), RopeMesh, RopePosition, RopeTexture, SBS::ObjectBase::sbs, SBS::TextureManager::SetAutoSize(), SBS::Object::SetPosition(), SBS::ToString(), weight_size, WeightMesh, and WeightRopeMesh.
Referenced by Skyscraper::ScriptProcessor::ElevatorSection::Run().
Definition at line 343 of file elevator.cpp.
References Acceleration, AccelJerk, ACPFloorSet, SBS::DispatchController::AddElevator(), SBS::Shaft::AddElevator(), AssignedShaft, Controllers, Created, Deceleration, DecelJerk, DownSpeed, elevposition, SBS::Floor::GetBase(), GetBottomFloor(), GetCar(), SBS::SBS::GetController(), SBS::SBS::GetFloor(), SBS::Object::GetPosition(), GetShaft(), GetTopFloor(), motoridlesound, MotorPosition, motorsound, Number, RecallAltSet, RecallSet, Report(), ReportError(), SBS::ObjectBase::sbs, SetACPFloor(), SetAlternateRecallFloor(), SBS::Object::SetPosition(), SBS::Object::SetPositionY(), SetRecallFloor(), SBS::ToString(), SBS::TruncateNumber(), UpSpeed, and SBS::SBS::Verbose.
Referenced by Skyscraper::ScriptProcessor::ElevatorSection::Run().
void SBS::Elevator::DeleteActiveRoute | ( | ) |
Definition at line 3336 of file elevator.cpp.
References ActiveCall, SBS::Elevator::QueueEntry::call_type, SBS::Elevator::QueueEntry::car, DeleteRoute(), SBS::Elevator::QueueEntry::direction, SBS::Elevator::QueueEntry::floor, GetCarCount(), GetFloorForCar(), SBS::SBS::GetPower(), IsQueued(), Report(), ReportError(), Running, SBS::ObjectBase::sbs, and SBS::SBS::Verbose.
Referenced by MoveElevatorToFloor().
bool SBS::Elevator::DeleteRoute | ( | int | floor, |
int | direction ) |
Definition at line 679 of file elevator.cpp.
References ChangeLight(), DownQueue, DownQueueEmpty, SBS::SBS::GetFloor(), SBS::SBS::GetPower(), HandleDequeue(), SBS::Floor::ID, Report(), ReportError(), Running, SBS::ObjectBase::sbs, SBS::ToString(), UpQueue, UpQueueEmpty, and SBS::SBS::Verbose.
Referenced by CallCancel(), CancelHallCall(), and DeleteActiveRoute().
|
private |
Definition at line 4757 of file elevator.cpp.
References Cars.
Referenced by EnableFireService1(), EnableIndependentService(), EnableInspectionService(), MoveElevatorToFloor(), and SetRunState().
bool SBS::Elevator::DoorsStopped | ( | ) |
Definition at line 4553 of file elevator.cpp.
References Cars, and DoorsStopped().
Referenced by CheckInterlocks(), and DoorsStopped().
|
private |
Definition at line 4901 of file elevator.cpp.
References Cars, and ControlQueue.
Referenced by Loop().
bool SBS::Elevator::Down | ( | ) |
Definition at line 4006 of file elevator.cpp.
References SBS::SBS::camera, Down(), SBS::SBS::GetPower(), ManualMove, ManualMoveHold, SBS::Camera::MouseDown(), and SBS::ObjectBase::sbs.
Referenced by Down(), Loop(), and SBS::Action::Run().
bool SBS::Elevator::Down | ( | bool | value | ) |
Definition at line 4064 of file elevator.cpp.
References Direction, SBS::SBS::GetPower(), IsMoving, ManualMove, ManualStop, MoveElevator, Report(), ReportError(), Running, SBS::ObjectBase::sbs, Stop(), and SBS::SBS::Verbose.
void SBS::Elevator::DumpQueues | ( | ) |
Definition at line 2210 of file elevator.cpp.
References DownQueue, GetCarCount(), SBS::ObjectBase::GetName(), SBS::ObjectBase::Report(), SBS::ToString(), and UpQueue.
Referenced by Skyscraper::editelevator::On_bDumpQueues_Click().
bool SBS::Elevator::EnableACP | ( | bool | value | ) |
Definition at line 2510 of file elevator.cpp.
References ACP, FireServicePhase1, FireServicePhase2, SBS::SBS::GetPower(), IndependentService, InspectionService, Report(), ReportError(), Running, SBS::ObjectBase::sbs, SetControls(), and SBS::SBS::Verbose.
Referenced by EnableFireService1(), EnableFireService2(), EnableIndependentService(), EnableInspectionService(), Loop(), Skyscraper::editelevator::On_bACPMode_Toggle(), and SBS::Action::Run().
|
virtual |
Reimplemented from SBS::Object.
Definition at line 2258 of file elevator.cpp.
References Cars, SBS::Object::EnableLoop(), IsEnabled, Report(), SBS::ObjectBase::sbs, and SBS::SBS::Verbose.
Referenced by Skyscraper::MeshControl::On_chkElevators_Click(), Skyscraper::editelevator::On_chkVisible_Click(), and OnInit().
bool SBS::Elevator::EnableDownPeak | ( | bool | value | ) |
Definition at line 2617 of file elevator.cpp.
References AutoDoors, Cars, DownPeak, EnableUpPeak(), FireServicePhase1, FireServicePhase2, SBS::SBS::GetFloor(), SBS::SBS::GetPower(), IndependentService, InspectionService, IsMoving, OnTopFloor(), Report(), ReportError(), ResetDoors(), ResetNudgeTimers(), Running, SBS::ObjectBase::sbs, SetControls(), and SBS::SBS::Verbose.
Referenced by EnableFireService1(), EnableFireService2(), EnableIndependentService(), EnableInspectionService(), EnableUpPeak(), Loop(), Skyscraper::editelevator::On_bDownPeak_Toggle(), and SBS::Action::Run().
bool SBS::Elevator::EnableFireService1 | ( | int | value | ) |
Definition at line 2830 of file elevator.cpp.
References DirectionalIndicatorsOff(), EnableACP(), EnableDownPeak(), EnableIndependentService(), EnableNudgeMode(), EnableUpPeak(), FireServicePhase1, FireServicePhase2, SBS::SBS::GetPower(), GoToRecallFloor(), HoldDoors(), InspectionService, OnRecallFloor(), Report(), ReportError(), ResetDoors(), ResetNudgeTimers(), Running, SBS::ObjectBase::sbs, and SBS::SBS::Verbose.
Referenced by EnableInspectionService(), SBS::DispatchController::FireService(), and Loop().
bool SBS::Elevator::EnableFireService2 | ( | int | value, |
int | car_number = 0, | ||
bool | force = false ) |
Definition at line 2910 of file elevator.cpp.
References AreDoorsOpen(), SBS::ElevatorCar::CloseDoors(), EnableACP(), EnableDownPeak(), EnableIndependentService(), EnableNudgeMode(), EnableUpPeak(), FireServicePhase1, FireServicePhase2, FireServicePhase2Car, GetCar(), GetCarCount(), SBS::SBS::GetPower(), GoToRecallFloor(), SBS::ElevatorCar::HoldDoors(), InspectionService, OnRecallFloor(), Report(), ReportError(), ResetDoors(), SBS::ElevatorCar::ResetNudgeTimer(), ResetNudgeTimers(), ResetQueue(), Running, SBS::ObjectBase::sbs, SetControls(), SBS::ToString(), and SBS::SBS::Verbose.
Referenced by EnableInspectionService(), Loop(), Skyscraper::editelevator::On_Fire2Hold_Select(), Skyscraper::editelevator::On_Fire2Off_Select(), Skyscraper::editelevator::On_Fire2On_Select(), and SBS::Action::Run().
bool SBS::Elevator::EnableIndependentService | ( | bool | value, |
int | car_number = 0 ) |
Definition at line 2679 of file elevator.cpp.
References AutoDoors, DirectionalIndicatorsOff(), EnableACP(), EnableDownPeak(), EnableUpPeak(), FireServicePhase1, FireServicePhase2, GetCar(), SBS::SBS::GetPower(), SBS::ElevatorCar::HoldDoors(), IndependentService, IndependentServiceCar, InspectionService, IsMoving, SBS::ElevatorCar::OpenDoors(), Report(), ReportError(), ResetDoors(), SBS::ElevatorCar::ResetNudgeTimer(), ResetNudgeTimers(), ResetQueue(), Running, SBS::ObjectBase::sbs, SetControls(), SBS::ToString(), and SBS::SBS::Verbose.
Referenced by EnableFireService1(), EnableFireService2(), EnableInspectionService(), Loop(), Skyscraper::editelevator::On_bIndService_Toggle(), and SBS::Action::Run().
bool SBS::Elevator::EnableInspectionService | ( | bool | value | ) |
Definition at line 2749 of file elevator.cpp.
References SBS::SBS::CarNumber, DirectionalIndicatorsOff(), SBS::SBS::ElevatorNumber, SBS::SBS::ElevatorSync, EnableACP(), SBS::SBS::EnableBuildings(), SBS::Floor::Enabled(), EnableDownPeak(), SBS::SBS::EnableExternal(), EnableFireService1(), EnableFireService2(), SBS::Floor::EnableGroup(), EnableIndependentService(), SBS::SBS::EnableLandscape(), SBS::SBS::EnableSkybox(), EnableUpPeak(), GetCar(), SBS::ElevatorCar::GetFloor(), SBS::SBS::GetFloor(), SBS::SBS::GetPower(), HoistwayAccess, HoistwayAccessFloor, HoldDoors(), InspectionService, IsMoving, Number, Report(), ReportError(), ResetDoors(), ResetNudgeTimers(), ResetQueue(), ResetShaftDoors(), ReturnToNearestFloor(), SBS::ObjectBase::sbs, SetControls(), Stop(), UpdateFloorIndicators(), and SBS::SBS::Verbose.
Referenced by Loop(), Skyscraper::editelevator::On_bInsService_Toggle(), and SBS::Action::Run().
void SBS::Elevator::EnableMalfunctions | ( | bool | value | ) |
Definition at line 5029 of file elevator.cpp.
References SBS::SBS::GetPower(), malfunction_timer, RandomFrequency, Report(), SBS::ObjectBase::sbs, SBS::TimerObject::Start(), and SBS::TimerObject::Stop().
Referenced by SBS::SBS::EnableMalfunctions().
void SBS::Elevator::EnableNudgeMode | ( | bool | value | ) |
Definition at line 4767 of file elevator.cpp.
References Cars, SBS::SBS::GetPower(), and SBS::ObjectBase::sbs.
Referenced by EnableFireService1(), and EnableFireService2().
bool SBS::Elevator::EnableUpPeak | ( | bool | value | ) |
Definition at line 2555 of file elevator.cpp.
References AutoDoors, Cars, EnableDownPeak(), FireServicePhase1, FireServicePhase2, SBS::SBS::GetFloor(), SBS::SBS::GetPower(), IndependentService, InspectionService, IsMoving, OnBottomFloor(), Report(), ReportError(), ResetDoors(), ResetNudgeTimers(), Running, SBS::ObjectBase::sbs, SetControls(), UpPeak, and SBS::SBS::Verbose.
Referenced by EnableDownPeak(), EnableFireService1(), EnableFireService2(), EnableIndependentService(), EnableInspectionService(), Loop(), Skyscraper::editelevator::On_bUpPeak_Toggle(), and SBS::Action::Run().
|
private |
Definition at line 2025 of file elevator.cpp.
References ActiveDirection, AutoDoors, SBS::SBS::camera, SBS::ElevatorCar::CameraOffset, Controllers, SBS::Camera::CurrentFloor, SBS::ElevatorCar::CurrentFloor, DownCall, DownQueue, SBS::DispatchController::ElevatorArrived(), SBS::SBS::ElevatorNumber, SBS::SBS::ElevatorSync, EmergencyStop, SBS::SBS::EnableBuildings(), SBS::Floor::Enabled(), SBS::SBS::EnableExternal(), SBS::Floor::EnableGroup(), SBS::SBS::EnableLandscape(), SBS::SBS::EnableSkybox(), FinishedMove, FireServicePhase1, FireServicePhase2, FireServicePhase2Car, GetArrivalDirection(), GetBottomFloor(), GetCallStatus(), GetCar(), GetCarCount(), GetCarForFloor(), SBS::SBS::GetController(), SBS::ElevatorCar::GetFloor(), SBS::SBS::GetFloor(), GetFloorForCar(), GetTopFloor(), GotoFloor, SBS::ElevatorCar::GotoFloor, GotoFloorCar, SBS::ElevatorCar::Height, SBS::Floor::ID, InServiceMode(), InspectionService, IsManuallyStopped(), LastQueueDirection, ManualStop, Notified, NotifyArrival(), NotifyEarly, Number, OnFloor, OnPeakFloor(), OnRecallFloor(), OpenDoors(), SBS::ElevatorCar::OpenDoors(), Parking, QueuePositionDirection, QueueResets, Report(), ResetQueue(), ResetShaftDoors(), SBS::ObjectBase::sbs, SkipFloorSound, SBS::ToString(), UpCall, UpdateDirectionalIndicators(), SBS::Floor::UpdateDirectionalIndicators(), UpdateFloorIndicators(), SBS::Floor::UpdateFloorIndicators(), UpQueue, and SBS::SBS::Verbose.
Referenced by MoveElevatorToFloor().
int SBS::Elevator::GetActiveCallDirection | ( | ) |
Definition at line 4120 of file elevator.cpp.
References ActiveCall, and SBS::Elevator::QueueEntry::direction.
Referenced by Skyscraper::editelevator::Loop(), SBS::ElevatorCar::RespondingToCall(), and SBS::ElevatorCar::RespondingToCall().
int SBS::Elevator::GetActiveCallFloor | ( | ) |
Definition at line 4115 of file elevator.cpp.
References ActiveCall, and SBS::Elevator::QueueEntry::floor.
Referenced by Skyscraper::editelevator::Loop(), SBS::ElevatorCar::RespondingToCall(), and SBS::ElevatorCar::RespondingToCall().
int SBS::Elevator::GetActiveCallType | ( | ) |
Definition at line 4125 of file elevator.cpp.
References ActiveCall, and SBS::Elevator::QueueEntry::call_type.
Referenced by Skyscraper::editelevator::Loop(), SBS::ElevatorCar::RespondingToCall(), and SBS::ElevatorCar::RespondingToCall().
int SBS::Elevator::GetActiveRecallFloor | ( | ) |
Definition at line 4353 of file elevator.cpp.
References RecallFloor, RecallFloorAlternate, and RecallUnavailable.
Referenced by SBS::Person::ProcessRoute().
bool SBS::Elevator::GetArrivalDirection | ( | int | floor | ) |
Definition at line 3504 of file elevator.cpp.
References DownQueue, DownQueueEmpty, SBS::ElevatorCar::GetBottomFloor(), GetCallStatus(), GetCarForFloor(), SBS::ElevatorCar::GetTopFloor(), NotifyEarly, QueuePositionDirection, QueueResets, UpQueue, and UpQueueEmpty.
Referenced by FinishMove(), and SBS::ElevatorCar::NotifyArrival().
int SBS::Elevator::GetBottomFloor | ( | ) |
Definition at line 3278 of file elevator.cpp.
References SBS::ElevatorCar::GetBottomFloor(), and GetCar().
Referenced by CreateCounterweight(), CreateElevator(), FinishMove(), and MoveElevatorToFloor().
bool SBS::Elevator::GetBrakeStatus | ( | ) |
Definition at line 2323 of file elevator.cpp.
References Brakes.
Referenced by Skyscraper::editelevator::Loop().
bool SBS::Elevator::GetCallStatus | ( | int | floor, |
bool & | up, | ||
bool & | down ) |
Definition at line 5008 of file elevator.cpp.
References Controllers, SBS::DispatchController::GetCallStatus(), SBS::SBS::GetController(), Number, and SBS::ObjectBase::sbs.
Referenced by FinishMove(), GetArrivalDirection(), and SBS::ElevatorCar::NotifyArrival().
ElevatorCar * SBS::Elevator::GetCar | ( | int | number | ) |
Definition at line 4474 of file elevator.cpp.
References Cars.
Referenced by SBS::Shaft::Check(), SBS::ElevatorCar::CreateCar(), CreateCounterweight(), CreateElevator(), SBS::DirectionalIndicator::DirectionalIndicator(), SBS::DirectionalIndicator::DownLight(), SBS::Shaft::Level::Enabled(), EnableFireService2(), EnableIndependentService(), EnableInspectionService(), FinishMove(), SBS::FloorIndicator::FloorIndicator(), GetBottomFloor(), GetCarOffset(), Skyscraper::ScriptProcessor::Section::GetElevatorCar(), GetFloorForCar(), SBS::DispatchController::GetFloorRange(), Skyscraper::ScriptProcessor::Section::GetMeshObject(), GetTopFloor(), GoToRecallFloor(), IsLeveled(), IsManuallyStopped(), Loop(), Skyscraper::DebugPanel::Loop(), Skyscraper::editelevator::Loop(), MoveElevatorToFloor(), NotifyArrival(), OnBottomFloor(), Skyscraper::editelevator::OnInit(), OnRecallFloor(), OnTopFloor(), ProcessCallQueue(), ProcessGotoFloor(), ReturnToBottomFloor(), ReturnToNearestFloor(), SBS::Action::Run(), Skyscraper::ScriptProcessor::CommandsSection::Run(), Skyscraper::ScriptProcessor::ElevatorCarSection::Run(), Skyscraper::ScriptProcessor::FloorSection::Run(), SetAlternateRecallFloor(), SetRecallFloor(), SBS::FloorIndicator::Update(), and SBS::DirectionalIndicator::UpLight().
int SBS::Elevator::GetCarCount | ( | ) |
Definition at line 4485 of file elevator.cpp.
References Cars.
Referenced by AddRoute(), CreateCounterweight(), DeleteActiveRoute(), SBS::SBS::DeleteObject(), DumpQueues(), SBS::ElevatorCar::DumpServicedFloors(), SBS::Shaft::Level::Enabled(), EnableFireService2(), FinishMove(), SBS::DispatchController::GetFloorRange(), GetTopFloor(), Loop(), Skyscraper::editelevator::Loop(), MoveElevatorToFloor(), NotifyArrival(), Skyscraper::editelevator::OnInit(), ProcessCallQueue(), ProcessGotoFloor(), SBS::ElevatorCar::Report(), and SBS::ElevatorCar::ReportError().
ElevatorCar * SBS::Elevator::GetCarForFloor | ( | int | number, |
bool | report_on_failure = false ) |
Definition at line 4503 of file elevator.cpp.
References Cars, and IsServicedFloor().
Referenced by AddRoute(), AvailableForCall(), SBS::DispatchController::FindClosestElevator(), FinishMove(), GetArrivalDirection(), GetDestinationAltitude(), GetDestinationOffset(), SBS::Floor::GetDirectFloors(), SBS::Floor::GetDirectRoute(), Skyscraper::ScriptProcessor::Section::GetElevatorCar(), GetFloorForCar(), SBS::SBS::GetIndirectRoute(), Go(), IsServicedFloor(), SBS::Elevator::Timer::Notify(), OnParkingFloor(), ProcessCallQueue(), SBS::Person::ProcessRoute(), SBS::DispatchController::ProcessRoutes(), SameFloorArrival(), SelectFloor(), SetACPFloor(), and SetHoistwayAccess().
Real SBS::Elevator::GetCarOffset | ( | int | number | ) |
Definition at line 4781 of file elevator.cpp.
References GetCar(), SBS::Object::GetPosition(), and GotoFloorCar.
Referenced by GetDestinationAltitude().
Real SBS::Elevator::GetDestination | ( | ) |
Definition at line 2311 of file elevator.cpp.
References Destination.
Referenced by Skyscraper::editelevator::Loop().
|
private |
Definition at line 3637 of file elevator.cpp.
References GetCarForFloor(), GetCarOffset(), SBS::ElevatorCar::GetDestinationAltitude(), and SBS::ElevatorCar::Number.
Referenced by IsManuallyStopped(), MoveElevatorToFloor(), and ProcessCallQueue().
bool SBS::Elevator::GetDestinationDispatch | ( | ) |
Definition at line 4918 of file elevator.cpp.
References Controllers, SBS::DispatchController::DestinationDispatch, SBS::SBS::GetController(), and SBS::ObjectBase::sbs.
Referenced by SBS::ElevatorCar::NotifyArrival(), and SBS::Person::ProcessRoute().
|
private |
Definition at line 3650 of file elevator.cpp.
References GetCarForFloor(), and SBS::ElevatorCar::GetDestinationOffset().
|
inline |
Definition at line 213 of file elevator.h.
Referenced by SBS::ElevatorDoor::AddDoorComponent().
Real SBS::Elevator::GetElevatorStart | ( | ) |
Definition at line 2305 of file elevator.cpp.
References ElevatorStart.
Referenced by Skyscraper::editelevator::Loop().
int SBS::Elevator::GetEmergencyStopStatus | ( | ) |
Definition at line 2329 of file elevator.cpp.
References EmergencyStop.
Referenced by Skyscraper::editelevator::Loop().
int SBS::Elevator::GetFloorForCar | ( | int | car, |
int | number ) |
Definition at line 4791 of file elevator.cpp.
References GetCar(), GetCarForFloor(), and SBS::ElevatorCar::Offset.
Referenced by DeleteActiveRoute(), FinishMove(), NotifyArrival(), SBS::ElevatorDoor::OpenDoors(), and ProcessGotoFloor().
std::string SBS::Elevator::GetFloorSkipText | ( | ) |
Definition at line 2377 of file elevator.cpp.
References FloorSkipText.
Referenced by Skyscraper::editelevator::SetMainValues().
bool SBS::Elevator::GetHoldStatus | ( | ) |
Definition at line 4670 of file elevator.cpp.
References Cars, and GetHoldStatus().
Referenced by AvailableForCall(), GetHoldStatus(), and PeakWaiting().
Real SBS::Elevator::GetJerkPosition | ( | ) |
Definition at line 2352 of file elevator.cpp.
References JerkPos.
Real SBS::Elevator::GetJerkRate | ( | ) |
Definition at line 2347 of file elevator.cpp.
References JerkRate.
Referenced by Skyscraper::editelevator::Loop().
std::vector< Floor * > SBS::Elevator::GetLobbies | ( | ) |
Definition at line 4363 of file elevator.cpp.
References Cars, SBS::Floor::FloorType, SBS::SBS::GetFloor(), RecallFloor, SBS::ObjectBase::sbs, and SBS::SetCaseCopy().
int SBS::Elevator::GetMotorRoom | ( | ) |
Definition at line 5024 of file elevator.cpp.
References SBS::SBS::GetFloorNumber(), MotorPosition, and SBS::ObjectBase::sbs.
CallStation * SBS::Elevator::GetPrimaryCallStation | ( | ) |
Definition at line 4106 of file elevator.cpp.
References SBS::Floor::GetCallStationForElevator(), SBS::SBS::GetFloor(), Number, RecallFloor, and SBS::ObjectBase::sbs.
Referenced by Skyscraper::editelevator::On_Fire1Bypass_Select(), Skyscraper::editelevator::On_Fire1Off_Select(), Skyscraper::editelevator::On_Fire1On_Select(), and SBS::Action::Run().
int SBS::Elevator::GetRecallFloor | ( | ) |
Definition at line 2501 of file elevator.cpp.
References RecallFloor, RecallFloorAlternate, and RecallUnavailable.
Referenced by SBS::DispatchController::GetRecallFloor(), and SBS::ElevatorCar::ProcessCache().
Shaft * SBS::Elevator::GetShaft | ( | ) |
Definition at line 4100 of file elevator.cpp.
References AssignedShaft, SBS::SBS::GetShaft(), and SBS::ObjectBase::sbs.
Referenced by SBS::ElevatorDoor::AddDoorComponent(), AddRails(), SBS::ElevatorDoor::AddShaftDoorComponent(), SBS::ElevatorCar::CheckServicedFloors(), SBS::ElevatorCar::CreateCar(), CreateElevator(), SBS::ElevatorDoor::FinishDoors(), SBS::ElevatorDoor::MoveDoors(), MoveElevatorToFloor(), SBS::ElevatorDoor::ShaftDoorsEnabled(), and SBS::ElevatorDoor::ShaftDoorsEnabledRange().
Real SBS::Elevator::GetStoppingDistance | ( | ) |
Definition at line 2317 of file elevator.cpp.
References StoppingDistance.
Referenced by Skyscraper::editelevator::Loop().
int SBS::Elevator::GetTopFloor | ( | ) |
Definition at line 3271 of file elevator.cpp.
References GetCar(), GetCarCount(), and SBS::ElevatorCar::GetTopFloor().
Referenced by AvailableForCall(), CreateCounterweight(), CreateElevator(), FinishMove(), MoveElevatorToFloor(), and MoveObjects().
bool SBS::Elevator::Go | ( | int | floor, |
bool | hold = false ) |
Definition at line 2392 of file elevator.cpp.
References AutoDoors, SBS::SBS::camera, ChangeLight(), CloseDoors(), GetCarForFloor(), SBS::SBS::GetFloor(), SBS::SBS::GetPower(), GoActive, GoActiveFloor, GoPending, GotoFloor, GotoFloorCar, SBS::Floor::ID, InspectionService, SBS::Camera::MouseDown(), MoveElevator, SBS::ElevatorCar::Number, Report(), ReportError(), Running, SBS::ObjectBase::sbs, Stop(), SBS::ToString(), SBS::SBS::Verbose, and WaitForDoors.
Referenced by Loop(), Skyscraper::editelevator::On_bGo_Click(), and SelectFloor().
void SBS::Elevator::GoToRecallFloor | ( | ) |
Definition at line 2452 of file elevator.cpp.
References AddRoute(), AutoDoors, GetCar(), SBS::SBS::GetPower(), OnRecallFloor(), OpenDoors(), RecallFloor, RecallFloorAlternate, RecallUnavailable, Report(), ReportError(), ResetQueue(), Running, and SBS::ObjectBase::sbs.
Referenced by EnableFireService1(), and EnableFireService2().
|
private |
Definition at line 4421 of file elevator.cpp.
References ActiveCall, SBS::Elevator::QueueEntry::call_type, SBS::Elevator::QueueEntry::car, SBS::Elevator::QueueEntry::direction, DownQueue, EmergencyStop, SBS::Elevator::QueueEntry::floor, MoveElevator, Stop(), and UpQueue.
Referenced by DeleteRoute(), and ResetQueue().
void SBS::Elevator::HoldDoors | ( | ) |
Definition at line 4743 of file elevator.cpp.
References Cars, SBS::SBS::GetPower(), and SBS::ObjectBase::sbs.
Referenced by EnableFireService1(), and EnableInspectionService().
bool SBS::Elevator::InElevator | ( | ) |
Definition at line 4130 of file elevator.cpp.
References SBS::SBS::ElevatorNumber, SBS::SBS::InElevator, Number, and SBS::ObjectBase::sbs.
bool SBS::Elevator::InServiceMode | ( | ) |
Definition at line 2383 of file elevator.cpp.
References FireServicePhase1, FireServicePhase2, IndependentService, and InspectionService.
Referenced by SBS::ElevatorDoor::AllowNudgeMode(), AvailableForCall(), SBS::DispatchController::ElevatorUnavailable(), FinishMove(), IsManuallyStopped(), Loop(), SBS::ElevatorCar::Loop(), SBS::ElevatorDoor::MoveDoors(), SBS::Elevator::Timer::Notify(), SBS::ElevatorDoor::Timer::Notify(), SBS::ElevatorCar::NotifyArrival(), SBS::ElevatorCar::OpenDoors(), SBS::ElevatorDoor::OpenDoors(), SBS::ElevatorCar::PlayFloorBeep(), SBS::ElevatorCar::PlayFloorSound(), SBS::ElevatorCar::PlayMessageSound(), SBS::Person::ProcessRoute(), ReturnToBottomFloor(), ReturnToNearestFloor(), and SelectFloor().
bool SBS::Elevator::IsIdle | ( | ) |
Definition at line 3297 of file elevator.cpp.
References AreDoorsMoving(), AreDoorsOpen(), DownPeak, SBS::SBS::GetPower(), MoveElevator, Running, SBS::ObjectBase::sbs, and UpPeak.
Referenced by AvailableForCall(), Loop(), Skyscraper::editelevator::Loop(), SBS::Elevator::Timer::Notify(), ProcessCallQueue(), SBS::DispatchController::ProcessRoutes(), ReturnToBottomFloor(), and ReturnToNearestFloor().
ElevatorCar * SBS::Elevator::IsInElevator | ( | const Vector3 & | position, |
bool | camera = false ) |
Definition at line 2282 of file elevator.cpp.
References Cars, and IsEnabled.
Referenced by SBS::CustomObject::Drop(), SBS::Model::Drop(), SBS::Primitive::Drop(), SBS::CustomObject::Loop(), SBS::Model::Loop(), and SBS::Primitive::Loop().
bool SBS::Elevator::IsLeveled | ( | ) |
Definition at line 3977 of file elevator.cpp.
References GetCar(), and SBS::ElevatorCar::IsLeveled().
Referenced by MoveElevatorToFloor(), and SelectFloor().
bool SBS::Elevator::IsManuallyStopped | ( | ) |
Definition at line 4443 of file elevator.cpp.
References GetCar(), GetDestinationAltitude(), SBS::Object::GetPosition(), InServiceMode(), and ManualStop.
Referenced by FinishMove(), and MoveElevatorToFloor().
bool SBS::Elevator::IsNudgeModeActive | ( | ) |
Definition at line 4692 of file elevator.cpp.
References Cars, and IsNudgeModeActive().
Referenced by AvailableForCall(), and IsNudgeModeActive().
bool SBS::Elevator::IsQueueActive | ( | ) |
Definition at line 3367 of file elevator.cpp.
References QueuePositionDirection.
Referenced by SBS::ElevatorCar::PlayMessageSound(), and SelectFloor().
bool SBS::Elevator::IsQueued | ( | int | floor, |
int | queue = 0 ) |
Definition at line 3457 of file elevator.cpp.
References DownQueue, and UpQueue.
Referenced by DeleteActiveRoute(), and ProcessGotoFloor().
bool SBS::Elevator::IsRunning | ( | ) |
Definition at line 3631 of file elevator.cpp.
References Running.
Referenced by AvailableForCall(), SBS::DispatchController::ElevatorUnavailable(), Skyscraper::editelevator::Loop(), and SBS::Elevator::Timer::Notify().
bool SBS::Elevator::IsServicedFloor | ( | int | floor, |
bool | report = true ) |
Definition at line 4589 of file elevator.cpp.
References GetCarForFloor(), Report(), SBS::ObjectBase::sbs, SBS::ToString(), and SBS::SBS::Verbose.
Referenced by SBS::Floor::AddDirectionalIndicator(), SBS::ElevatorCar::AddServicedFloor(), SBS::DispatchController::FindClosestElevator(), GetCarForFloor(), SBS::Floor::GetElevatorList(), SBS::ElevatorCar::GetFloorDisplay(), SBS::DispatchController::IsServicedFloor(), MoveElevatorToFloor(), SBS::DispatchController::ServesFloor(), SetAlternateRecallFloor(), and SetRecallFloor().
bool SBS::Elevator::IsStopped | ( | ) |
Definition at line 4391 of file elevator.cpp.
References FinishedMove, IsMoving, and OnFloor.
Referenced by SBS::DispatchController::ElevatorUnavailable().
|
virtual |
Reimplemented from SBS::Object.
Definition at line 1179 of file elevator.cpp.
References ACP, ACPFloor, AutoDoors, Created, DoSetControls(), Down(), DownPeak, EnableACP(), EnableDownPeak(), EnableFireService1(), EnableFireService2(), EnableIndependentService(), EnableInspectionService(), EnableUpPeak(), FireServicePhase1, FireServicePhase2, FireServicePhase2Car, FirstRun, GetCar(), GetCarCount(), SBS::SBS::GetPower(), Go(), GoActive, GoActiveFloor, HeightSet, HoistwayAccess, HoistwayAccessFloor, HoistwayAccessHold, IndependentService, IndependentServiceCar, InServiceMode(), InspectionService, IsIdle(), SBS::Sound::IsLoaded(), SBS::Sound::IsPlaying(), SBS::TimerObject::IsRunning(), SBS::Sound::Load(), SBS::ElevatorCar::Loop(), ManualMove, ManualMoveHold, MotorIdleSound, motoridlesound, MoveElevator, MoveElevatorToFloor(), parking_timer, ParkingDelay, SBS::Sound::Play(), ProcessCallQueue(), Report(), Running, SBS::ObjectBase::sbs, SBS_PROFILE, SetACPFloor(), SBS::ElevatorCar::SetHeight(), SetHoistwayAccess(), SBS::Sound::SetLoopState(), SBS::TimerObject::Start(), Stop(), SBS::Sound::Stop(), Up(), UpdateFloorIndicators(), UpPeak, and SBS::SBS::Verbose.
void SBS::Elevator::Malfunction | ( | ) |
Definition at line 5052 of file elevator.cpp.
References Cars, SBS::RandomGen::Get(), Report(), ResetQueue(), rnd_type, SetRunState(), and Stop().
Referenced by SBS::Elevator::Timer::Notify(), and Skyscraper::editelevator::On_bMalfunction_Click().
bool SBS::Elevator::MoveDown | ( | ) |
Definition at line 3114 of file elevator.cpp.
References Direction, SBS::SBS::GetPower(), InspectionService, IsMoving, ManualGo, MoveElevator, Report(), ReportError(), Running, SBS::ObjectBase::sbs, and SBS::SBS::Verbose.
Referenced by SetDownButton(), and SetGoButton().
|
private |
Definition at line 1316 of file elevator.cpp.
References Acceleration, AccelJerk, ActiveDirection, SBS::Floor::Altitude, AreDoorsMoving(), AreDoorsOpen(), arrival_delay, ArrivalDelay, BeyondDecelMarker(), Brakes, CalculateStoppingDistance, SBS::SBS::camera, SBS::SBS::CarNumber, Cars, SBS::ElevatorCar::ChangeLight(), CheckInterlocks(), Controllers, SBS::Camera::CurrentFloor, SBS::ElevatorCar::CurrentFloor, Deceleration, DecelJerk, DeleteActiveRoute(), SBS::SBS::delta, departure_delay, DepartureDelay, Destination, Direction, DirectionalIndicatorsOff(), DistanceToTravel, DownSpeed, SBS::SBS::ElevatorNumber, ElevatorRate, ElevatorStart, SBS::SBS::ElevatorSync, elevposition, EmergencyStop, EmergencyStopSpeed, SBS::SBS::EnableBuildings(), SBS::Floor::Enabled(), SBS::SBS::EnableExternal(), SBS::Floor::EnableGroup(), SBS::SBS::EnableLandscape(), SBS::SBS::EnableSkybox(), Error, ErrorOffset, FinishedMove, FinishMove(), GetBottomFloor(), GetCar(), GetCarCount(), SBS::SBS::GetController(), GetDestinationAltitude(), SBS::ElevatorCar::GetFloor(), SBS::SBS::GetFloor(), SBS::Object::GetPosition(), GetShaft(), GetTopFloor(), GoPending, GotoFloor, SBS::ElevatorCar::GotoFloor, GotoFloorCar, HoistwayAccess, HoistwayAccessFloor, SBS::Floor::ID, InspectionService, InspectionSpeed, IsLeveled(), IsManuallyStopped(), IsMoving, SBS::TimerObject::IsRunning(), IsServicedFloor(), SBS::ElevatorCar::IsServicedFloor(), JerkPos, JerkRate, Leveling, LevelingOffset, LevelingOpen, LevelingSpeed, ManualMove, ManualStop, MoveElevator, MovementRunning, MoveObjects(), Notified, NotifyArrival(), NotifyEarly, Number, oldfloor, OnFloor, Parking, SBS::ElevatorCar::PlayFloorBeep(), PlayMovingSounds(), PlayStartingSounds(), PlayStoppingSounds(), Report(), ReportError(), SBS::DispatchController::ResetArrival(), ResetShaftDoors(), Running, SBS::ObjectBase::sbs, SBS_PROFILE, SkipFloorSound, SoundsQueued, SBS::TimerObject::Start(), SBS::TimerObject::Stop(), StoppingDistance, StopSounds(), TempDeceleration, tmpDecelJerk, SBS::ToString(), UpdateDirectionalIndicators(), SBS::Floor::UpdateDirectionalIndicators(), UpdateFloorIndicators(), SBS::Floor::UpdateFloorIndicators(), UpSpeed, SBS::SBS::Verbose, WaitForDoors, and WaitForTimer.
Referenced by Loop().
void SBS::Elevator::MoveObjects | ( | Real | offset | ) |
Definition at line 1997 of file elevator.cpp.
References SBS::SBS::camera, SBS::MeshObject::ChangeHeight(), SBS::SBS::ElevatorNumber, SBS::SBS::ElevatorSync, elevposition, SBS::SBS::GetFloor(), SBS::Object::GetPosition(), GetTopFloor(), MotorPosition, SBS::Object::Move(), SBS::Camera::MovePosition(), Number, RopeMesh, SBS::ObjectBase::sbs, SBS_PROFILE, weight_size, WeightMesh, and WeightRopeMesh.
Referenced by MoveElevatorToFloor(), and SBS::ElevatorCar::SetFloor().
bool SBS::Elevator::MoveUp | ( | ) |
Definition at line 3076 of file elevator.cpp.
References Direction, SBS::SBS::GetPower(), InspectionService, IsMoving, ManualGo, MoveElevator, Report(), ReportError(), Running, SBS::ObjectBase::sbs, and SBS::SBS::Verbose.
Referenced by SetGoButton(), and SetUpButton().
|
private |
Definition at line 3483 of file elevator.cpp.
References GetCar(), GetCarCount(), GetFloorForCar(), SBS::SBS::GetPower(), GotoFloor, SBS::ElevatorCar::GotoFloor, Notified, SBS::ElevatorCar::NotifyArrival(), and SBS::ObjectBase::sbs.
Referenced by FinishMove(), and MoveElevatorToFloor().
bool SBS::Elevator::OnBottomFloor | ( | ) |
Definition at line 4687 of file elevator.cpp.
References GetCar(), and SBS::ElevatorCar::OnBottomFloor().
Referenced by EnableUpPeak(), OnPeakFloor(), and PeakWaiting().
|
virtual |
Reimplemented from SBS::Object.
Definition at line 3661 of file elevator.cpp.
References Created, Enabled(), SBS::SBS::GetConfigBool(), and SBS::ObjectBase::sbs.
bool SBS::Elevator::OnParkingFloor | ( | ) |
Definition at line 4823 of file elevator.cpp.
References GetCarForFloor(), SBS::ElevatorCar::GetFloor(), and ParkingFloor.
bool SBS::Elevator::OnPeakFloor | ( | ) |
Definition at line 4331 of file elevator.cpp.
References DownPeak, OnBottomFloor(), OnTopFloor(), and UpPeak.
Referenced by FinishMove().
bool SBS::Elevator::OnRecallFloor | ( | ) |
Definition at line 4341 of file elevator.cpp.
References GetCar(), SBS::ElevatorCar::IsOnFloor(), RecallFloor, RecallFloorAlternate, and RecallUnavailable.
Referenced by SBS::ElevatorDoor::AllowNudgeMode(), SBS::ElevatorDoor::CloseDoors(), EnableFireService1(), EnableFireService2(), FinishMove(), GoToRecallFloor(), and SBS::ElevatorCar::OpenDoors().
bool SBS::Elevator::OnTopFloor | ( | ) |
Definition at line 4682 of file elevator.cpp.
References GetCar(), and SBS::ElevatorCar::OnTopFloor().
Referenced by EnableDownPeak(), OnPeakFloor(), and PeakWaiting().
void SBS::Elevator::OpenDoors | ( | ) |
Definition at line 4642 of file elevator.cpp.
References Cars, SBS::SBS::GetPower(), and SBS::ObjectBase::sbs.
Referenced by FinishMove(), and GoToRecallFloor().
bool SBS::Elevator::PeakWaiting | ( | ) |
Definition at line 4318 of file elevator.cpp.
References DownPeak, GetHoldStatus(), IsMoving, OnBottomFloor(), OnTopFloor(), and UpPeak.
Referenced by AvailableForCall(), SBS::ElevatorDoor::CheckSensor(), and SBS::ElevatorDoor::OpenDoors().
|
private |
Definition at line 4269 of file elevator.cpp.
References Cars, CounterweightMoveSound, counterweightsound, Direction, SBS::Sound::IsPlaying(), SBS::Sound::Load(), MotorDownRunSound, motorsound, MotorUpRunSound, SBS::Sound::Play(), Report(), SBS::ObjectBase::sbs, SBS_PROFILE, SBS::Sound::SetLoopState(), and SBS::SBS::Verbose.
Referenced by MoveElevatorToFloor().
|
private |
Definition at line 4137 of file elevator.cpp.
References Cars, counterweightsound, CounterweightStartSound, Direction, SBS::Sound::Load(), MotorDownStartSound, motorsound, MotorUpStartSound, SBS::Sound::Play(), Report(), SBS::ObjectBase::sbs, SBS::Sound::SetLoopState(), SBS::Sound::Stop(), and SBS::SBS::Verbose.
Referenced by MoveElevatorToFloor().
|
private |
Definition at line 4184 of file elevator.cpp.
References ActiveDirection, AutoAdjustSound, Cars, counterweightsound, CounterweightStopSound, Direction, DownSpeed, ElevatorRate, SBS::Sound::Load(), MotorDownStopSound, MotorEmergencyStopSound, motorsound, MotorUpStopSound, SBS::Sound::Play(), Report(), SBS::Sound::Reset(), SBS::ObjectBase::sbs, SBS::Sound::SetLoopState(), SBS::Sound::SetPlayPosition(), SBS::Sound::Stop(), UpSpeed, and SBS::SBS::Verbose.
Referenced by MoveElevatorToFloor().
void SBS::Elevator::ProcessCallQueue | ( | ) |
Definition at line 853 of file elevator.cpp.
References ActiveCall, ActiveDirection, AddRoute(), AreDoorsMoving(), AreDoorsOpen(), BeyondDecelMarker(), CloseDoors(), SBS::ElevatorCar::CurrentFloor, Destination, DownCall, DownPeak, DownQueue, DownQueueEmpty, EmergencyStop, FireServicePhase2, SBS::Elevator::QueueEntry::floor, SBS::ElevatorCar::GetBottomFloor(), GetCar(), GetCarCount(), GetCarForFloor(), GetDestinationAltitude(), SBS::SBS::GetFloor(), SBS::SBS::GetPower(), SBS::ElevatorCar::GetTopFloor(), GoPending, GotoFloor, SBS::ElevatorCar::GotoFloor, GotoFloorCar, SBS::Floor::ID, InspectionService, IsIdle(), IsMoving, LastQueueDirection, Leveling, ManualMove, MoveElevator, NotifyEarly, SBS::ElevatorCar::Number, ProcessGotoFloor(), QueuePending, QueuePositionDirection, Report(), Running, SBS::ObjectBase::sbs, SBS_PROFILE, SBS::ToString(), UpCall, UpPeak, UpQueue, UpQueueEmpty, SBS::SBS::Verbose, and WaitForDoors.
Referenced by Loop().
|
private |
Definition at line 4806 of file elevator.cpp.
References GetCar(), GetCarCount(), GetFloorForCar(), SBS::ElevatorCar::GotoFloor, GotoFloorCar, IsQueued(), and MoveElevator.
Referenced by AddRoute(), and ProcessCallQueue().
void SBS::Elevator::RemoveCar | ( | ElevatorCar * | car | ) |
Definition at line 4490 of file elevator.cpp.
References Cars.
Referenced by SBS::ElevatorCar::~ElevatorCar().
void SBS::Elevator::RemoveController | ( | int | controller | ) |
Definition at line 4994 of file elevator.cpp.
References Controllers.
Referenced by SBS::DispatchController::RemoveElevator().
|
virtual |
Reimplemented from SBS::ObjectBase.
Definition at line 3392 of file elevator.cpp.
References SBS::ObjectBase::GetName(), and SBS::ObjectBase::Report().
Referenced by AddRoute(), AvailableForCall(), CallCancel(), CallCancelAll(), CreateElevator(), DeleteActiveRoute(), DeleteRoute(), Down(), Elevator(), SBS::ElevatorCar::ElevatorCar(), EnableACP(), Enabled(), EnableDownPeak(), EnableFireService1(), EnableFireService2(), EnableIndependentService(), EnableInspectionService(), EnableMalfunctions(), EnableUpPeak(), FinishMove(), Go(), GoToRecallFloor(), IsServicedFloor(), Loop(), Malfunction(), MoveDown(), MoveElevatorToFloor(), MoveUp(), SBS::Elevator::Timer::Notify(), PlayMovingSounds(), PlayStartingSounds(), PlayStoppingSounds(), ProcessCallQueue(), SBS::ElevatorCar::Report(), ResetQueue(), ReturnToBottomFloor(), ReturnToNearestFloor(), SameFloorArrival(), SetACPFloor(), SetAlternateRecallFloor(), SetDownButton(), SetFloorSkipText(), SetGoButton(), SetHoistwayAccess(), SetRecallFloor(), SetRunState(), SetUpButton(), Stop(), Up(), ~Elevator(), and SBS::ElevatorCar::~ElevatorCar().
|
virtual |
Reimplemented from SBS::ObjectBase.
Definition at line 3398 of file elevator.cpp.
References SBS::ObjectBase::GetName(), and SBS::ObjectBase::ReportError().
Referenced by AddRails(), AddRoute(), CallCancel(), CallCancelAll(), CreateCounterweight(), CreateElevator(), DeleteActiveRoute(), DeleteRoute(), Down(), EnableACP(), EnableDownPeak(), EnableFireService1(), EnableFireService2(), EnableIndependentService(), EnableInspectionService(), EnableUpPeak(), Go(), GoToRecallFloor(), MoveDown(), MoveElevatorToFloor(), MoveUp(), SBS::ElevatorCar::ReportError(), SameFloorArrival(), SelectFloor(), SetACPFloor(), SetAlternateRecallFloor(), SetDownButton(), SetGoButton(), SetHoistwayAccess(), SetRecallFloor(), SetUpButton(), Stop(), and Up().
void SBS::Elevator::ResetDoors | ( | ) |
Definition at line 4725 of file elevator.cpp.
References Cars.
Referenced by EnableDownPeak(), EnableFireService1(), EnableFireService2(), EnableIndependentService(), EnableInspectionService(), and EnableUpPeak().
void SBS::Elevator::ResetLights | ( | ) |
void SBS::Elevator::ResetNudgeTimers | ( | bool | start = true | ) |
Definition at line 4734 of file elevator.cpp.
References Cars.
Referenced by EnableDownPeak(), EnableFireService1(), EnableFireService2(), EnableIndependentService(), EnableInspectionService(), and EnableUpPeak().
void SBS::Elevator::ResetQueue | ( | bool | up, |
bool | down, | ||
bool | stop_if_empty = true ) |
Definition at line 3311 of file elevator.cpp.
References DownQueue, HandleDequeue(), QueuePending, Report(), ResetLights(), SBS::ObjectBase::sbs, UpQueue, and SBS::SBS::Verbose.
Referenced by CallCancelAll(), EnableFireService2(), EnableIndependentService(), EnableInspectionService(), FinishMove(), GoToRecallFloor(), Malfunction(), Skyscraper::editelevator::On_bResetQueues_Click(), and Stop().
void SBS::Elevator::ResetShaftDoors | ( | int | floor | ) |
Definition at line 4704 of file elevator.cpp.
References SBS::Shaft::EnableRange(), SBS::SBS::GetShaft(), SBS::SBS::GetShaftCount(), SBS::Shaft::IsEnabled, SBS::ObjectBase::sbs, and SBS::SBS::ShaftDisplayRange.
Referenced by EnableInspectionService(), FinishMove(), and MoveElevatorToFloor().
bool SBS::Elevator::ReturnToBottomFloor | ( | ) |
Definition at line 3957 of file elevator.cpp.
References AddRoute(), SBS::ElevatorCar::GetBottomFloor(), GetCar(), SBS::SBS::GetPower(), InServiceMode(), IsIdle(), Parking, Report(), and SBS::ObjectBase::sbs.
bool SBS::Elevator::ReturnToNearestFloor | ( | bool | parking = true, |
int | car = 1 ) |
Definition at line 3930 of file elevator.cpp.
References AddRoute(), GetCar(), SBS::ElevatorCar::GetNearestServicedFloor(), SBS::SBS::GetPower(), InServiceMode(), IsIdle(), Parking, Report(), SBS::ObjectBase::sbs, and SBS::ToString().
Referenced by EnableInspectionService(), SBS::Action::Run(), and SelectFloor().
bool SBS::Elevator::RouteExists | ( | bool | direction, |
int | floor ) |
Definition at line 736 of file elevator.cpp.
References DownQueue, SBS::SBS::GetPower(), SBS::ObjectBase::sbs, and UpQueue.
Referenced by AddRoute().
|
private |
Definition at line 4930 of file elevator.cpp.
References Controllers, SBS::DispatchController::ElevatorArrived(), GetCarForFloor(), SBS::SBS::GetController(), SBS::ElevatorCar::LateDirection, SBS::ElevatorCar::NotifyArrival(), NotifyEarly, NotifyLate, Number, SBS::ElevatorCar::OpenDoors(), Report(), ReportError(), SBS::DispatchController::ResetArrival(), SBS::ObjectBase::sbs, SBS::ToString(), and SBS::SBS::Verbose.
Referenced by AddRoute().
bool SBS::Elevator::SelectFloor | ( | int | floor | ) |
Definition at line 3818 of file elevator.cpp.
References AddRoute(), AutoDoors, SBS::ElevatorCar::Chime(), ChimeOnArrival, Controllers, SBS::DispatchController::DestinationDispatch, Direction, FireServicePhase1, FireServicePhase2, FloorHold, GetCarForFloor(), SBS::SBS::GetController(), SBS::ElevatorCar::GetFloor(), SBS::SBS::GetPower(), Go(), SBS::DispatchController::Hybrid, InServiceMode(), InspectionService, IsLeveled(), IsQueueActive(), LastChimeDirection, LastQueueDirection, SBS::ElevatorCar::Number, SBS::ElevatorCar::OpenDoors(), ReOpen, ReportError(), ReturnToNearestFloor(), Running, SBS::ObjectBase::sbs, and SBS::ToString().
Referenced by SBS::ElevatorCar::ProcessCache(), and SBS::Action::Run().
bool SBS::Elevator::SetACPFloor | ( | int | floor | ) |
Definition at line 3055 of file elevator.cpp.
References ACPFloor, ACPFloorSet, GetCarForFloor(), SBS::SBS::GetPower(), SBS::ElevatorCar::IsServicedFloor(), Report(), ReportError(), SBS::ObjectBase::sbs, SBS::ToString(), and SBS::SBS::Verbose.
Referenced by CreateElevator(), Loop(), Skyscraper::editelevator::On_bSetACPFloor_Click(), and Skyscraper::ScriptProcessor::ElevatorSection::Run().
bool SBS::Elevator::SetAlternateRecallFloor | ( | int | floor | ) |
Definition at line 3037 of file elevator.cpp.
References GetCar(), SBS::SBS::GetPower(), IsServicedFloor(), RecallAltSet, RecallFloorAlternate, Report(), ReportError(), SBS::ObjectBase::sbs, SBS::ToString(), and SBS::SBS::Verbose.
Referenced by CreateElevator(), Skyscraper::editelevator::On_bSetRecallAlternate_Click(), and Skyscraper::ScriptProcessor::ElevatorSection::Run().
void SBS::Elevator::SetControls | ( | const std::string & | action_name | ) |
Definition at line 4894 of file elevator.cpp.
References ControlQueue.
Referenced by EnableACP(), EnableDownPeak(), EnableFireService2(), EnableIndependentService(), EnableInspectionService(), EnableUpPeak(), SetDownButton(), SetGoButton(), SetRunState(), and SetUpButton().
bool SBS::Elevator::SetDownButton | ( | bool | value | ) |
Definition at line 3233 of file elevator.cpp.
References SBS::SBS::GetPower(), InspectionService, ManualDown, ManualGo, MoveDown(), Report(), ReportError(), Running, SBS::ObjectBase::sbs, SetControls(), Stop(), and SBS::SBS::Verbose.
Referenced by Skyscraper::editelevator::On_bDown_Toggle(), and SBS::Action::Run().
void SBS::Elevator::SetFloorSkipText | ( | const std::string & | id | ) |
Definition at line 2357 of file elevator.cpp.
References FloorSkipText, Report(), SBS::ObjectBase::sbs, SBS::TrimString(), UseFloorSkipText, and SBS::SBS::Verbose.
Referenced by Skyscraper::editelevator::On_bSetSkipFloorText_Click(), and Skyscraper::ScriptProcessor::ElevatorSection::Run().
bool SBS::Elevator::SetGoButton | ( | bool | value | ) |
Definition at line 3152 of file elevator.cpp.
References SBS::SBS::GetPower(), InspectionService, ManualDown, ManualGo, ManualUp, MoveDown(), MoveUp(), Report(), ReportError(), Running, SBS::ObjectBase::sbs, SetControls(), Stop(), and SBS::SBS::Verbose.
Referenced by Skyscraper::editelevator::On_bGoToggle_Toggle(), Skyscraper::editelevator::On_bInsService_Toggle(), and SBS::Action::Run().
bool SBS::Elevator::SetHoistwayAccess | ( | int | floor, |
int | access ) |
Definition at line 4834 of file elevator.cpp.
References SBS::ElevatorCar::AreShaftDoorsOpen(), SBS::SBS::camera, Direction, GetCarForFloor(), HoistwayAccess, HoistwayAccessFloor, HoistwayAccessHold, InspectionService, IsMoving, SBS::Camera::MouseDown(), MoveElevator, Report(), ReportError(), Running, SBS::ObjectBase::sbs, Stop(), SBS::ToString(), and SBS::SBS::Verbose.
Referenced by Loop(), and SBS::Action::Run().
bool SBS::Elevator::SetRecallFloor | ( | int | floor | ) |
Definition at line 3019 of file elevator.cpp.
References GetCar(), SBS::SBS::GetPower(), IsServicedFloor(), RecallFloor, RecallSet, Report(), ReportError(), SBS::ObjectBase::sbs, SBS::ToString(), and SBS::SBS::Verbose.
Referenced by CreateElevator(), Skyscraper::editelevator::On_bSetRecallFloor_Click(), and Skyscraper::ScriptProcessor::ElevatorSection::Run().
void SBS::Elevator::SetRunState | ( | bool | value | ) |
Definition at line 3598 of file elevator.cpp.
References DirectionalIndicatorsOff(), InspectionService, IsMoving, Report(), Running, SetControls(), and Stop().
Referenced by Malfunction(), Skyscraper::editelevator::On_chkRun_Click(), SBS::Action::Run(), and Skyscraper::ScriptProcessor::ElevatorSection::Run().
bool SBS::Elevator::SetUpButton | ( | bool | value | ) |
Definition at line 3195 of file elevator.cpp.
References SBS::SBS::GetPower(), InspectionService, ManualGo, ManualUp, MoveUp(), Report(), ReportError(), Running, SBS::ObjectBase::sbs, SetControls(), Stop(), and SBS::SBS::Verbose.
Referenced by Skyscraper::editelevator::On_bUp_Toggle(), and SBS::Action::Run().
bool SBS::Elevator::Stop | ( | bool | emergency = false | ) |
Definition at line 812 of file elevator.cpp.
References EmergencyStop, FireServicePhase1, FireServicePhase2, InspectionService, IsMoving, Report(), ReportError(), ResetQueue(), SBS::ObjectBase::sbs, and SBS::SBS::Verbose.
Referenced by Down(), EnableInspectionService(), Go(), HandleDequeue(), Loop(), Malfunction(), Skyscraper::editelevator::On_bStop_Click(), SBS::ElevatorCar::OpenDoors(), SBS::Action::Run(), SetDownButton(), SetGoButton(), SetHoistwayAccess(), SetRunState(), SetUpButton(), and Up().
|
private |
Definition at line 4611 of file elevator.cpp.
References Cars, motorsound, and SBS::Sound::Stop().
Referenced by MoveElevatorToFloor().
bool SBS::Elevator::Up | ( | ) |
Definition at line 3984 of file elevator.cpp.
References SBS::SBS::camera, SBS::SBS::GetPower(), ManualMove, ManualMoveHold, SBS::Camera::MouseDown(), SBS::ObjectBase::sbs, and Up().
Referenced by Loop(), SBS::Action::Run(), and Up().
bool SBS::Elevator::Up | ( | bool | value | ) |
Definition at line 4028 of file elevator.cpp.
References Direction, SBS::SBS::GetPower(), IsMoving, ManualMove, ManualStop, MoveElevator, Report(), ReportError(), Running, SBS::ObjectBase::sbs, Stop(), and SBS::SBS::Verbose.
void SBS::Elevator::UpdateDirectionalIndicators | ( | ) |
Definition at line 3285 of file elevator.cpp.
References Cars, and SBS_PROFILE.
Referenced by FinishMove(), and MoveElevatorToFloor().
void SBS::Elevator::UpdateFloorIndicators | ( | ) |
Definition at line 2335 of file elevator.cpp.
References Cars, and SBS_PROFILE.
Referenced by EnableInspectionService(), FinishMove(), Loop(), and MoveElevatorToFloor().
|
friend |
Definition at line 32 of file elevator.h.
Referenced by AddCar().
|
friend |
Definition at line 31 of file elevator.h.
Real SBS::Elevator::Acceleration |
Definition at line 48 of file elevator.h.
Referenced by CreateElevator(), Elevator(), MoveElevatorToFloor(), Skyscraper::editelevator::On_bSetAcceleration_Click(), Skyscraper::ScriptProcessor::ElevatorSection::Run(), and Skyscraper::editelevator::SetMainValues().
Real SBS::Elevator::AccelJerk |
Definition at line 50 of file elevator.h.
Referenced by CreateElevator(), Elevator(), MoveElevatorToFloor(), Skyscraper::editelevator::On_bSetAccelJerk_Click(), Skyscraper::ScriptProcessor::ElevatorSection::Run(), and Skyscraper::editelevator::SetMainValues().
bool SBS::Elevator::ACP |
Definition at line 70 of file elevator.h.
Referenced by AddRoute(), Elevator(), EnableACP(), Loop(), Skyscraper::editelevator::Loop(), and Skyscraper::ScriptProcessor::ElevatorSection::Run().
int SBS::Elevator::ACPFloor |
Definition at line 71 of file elevator.h.
Referenced by AddRoute(), Elevator(), Loop(), SetACPFloor(), and Skyscraper::editelevator::SetMainValues().
|
private |
Definition at line 368 of file elevator.h.
Referenced by CreateElevator(), Elevator(), and SetACPFloor().
|
private |
Definition at line 312 of file elevator.h.
Referenced by DeleteActiveRoute(), GetActiveCallDirection(), GetActiveCallFloor(), GetActiveCallType(), HandleDequeue(), and ProcessCallQueue().
int SBS::Elevator::ActiveDirection |
Definition at line 95 of file elevator.h.
Referenced by Elevator(), FinishMove(), SBS::ElevatorCar::Loop(), Skyscraper::editelevator::Loop(), MoveElevatorToFloor(), SBS::ElevatorCar::PlayMessageSound(), PlayStoppingSounds(), ProcessCallQueue(), SBS::ElevatorCar::UpdateDirectionalIndicators(), SBS::Floor::UpdateDirectionalIndicators(), and SBS::Floor::UpdateDirectionalIndicators().
|
private |
Definition at line 292 of file elevator.h.
Referenced by Elevator(), MoveElevatorToFloor(), and ~Elevator().
Real SBS::Elevator::ArrivalDelay |
Definition at line 101 of file elevator.h.
Referenced by Elevator(), MoveElevatorToFloor(), Skyscraper::editelevator::On_bSetArrivalDelay_Click(), Skyscraper::ScriptProcessor::ElevatorSection::Run(), and Skyscraper::editelevator::SetMainValues().
int SBS::Elevator::AssignedShaft |
Definition at line 56 of file elevator.h.
Referenced by SBS::ElevatorCar::CheckServicedFloors(), CreateElevator(), SBS::SBS::DeleteObject(), Elevator(), GetShaft(), Skyscraper::editelevator::Loop(), and Skyscraper::ScriptProcessor::ElevatorSection::Run().
bool SBS::Elevator::AutoAdjustSound |
Definition at line 116 of file elevator.h.
Referenced by Elevator(), PlayStoppingSounds(), and SBS::ElevatorCar::PlayStoppingSounds().
bool SBS::Elevator::AutoDoors |
Definition at line 107 of file elevator.h.
Referenced by SBS::ElevatorDoor::AllowNudgeMode(), SBS::DirectionalIndicator::DownLight(), Elevator(), EnableDownPeak(), EnableIndependentService(), SBS::ElevatorDoor::EnableSensor(), EnableUpPeak(), SBS::ElevatorDoor::FinishDoors(), FinishMove(), Go(), GoToRecallFloor(), Loop(), Skyscraper::editelevator::Loop(), Skyscraper::editelevator::On_bSetAutoDoors_Click(), SBS::ElevatorCar::OpenDoors(), SBS::ElevatorDoor::OpenDoors(), SBS::ElevatorDoor::Reset(), Skyscraper::ScriptProcessor::ElevatorSection::Run(), SelectFloor(), and SBS::DirectionalIndicator::UpLight().
|
private |
Definition at line 308 of file elevator.h.
Referenced by Elevator(), GetBrakeStatus(), and MoveElevatorToFloor().
|
private |
Definition at line 307 of file elevator.h.
Referenced by Elevator(), and MoveElevatorToFloor().
|
private |
Definition at line 301 of file elevator.h.
Referenced by AddCar(), AreDoorsClosing(), AreDoorsMoving(), AreDoorsOpen(), AreDoorsOpening(), AreShaftDoorsClosed(), CancelHallCall(), ChangeLight(), Check(), CloseDoors(), DirectionalIndicatorsOff(), DoorsStopped(), DoSetControls(), Enabled(), EnableDownPeak(), EnableNudgeMode(), EnableUpPeak(), GetCar(), GetCarCount(), GetCarForFloor(), GetHoldStatus(), GetLobbies(), HoldDoors(), IsInElevator(), IsNudgeModeActive(), Malfunction(), MoveElevatorToFloor(), OpenDoors(), PlayMovingSounds(), PlayStartingSounds(), PlayStoppingSounds(), RemoveCar(), ResetDoors(), ResetLights(), ResetNudgeTimers(), StopSounds(), UpdateDirectionalIndicators(), UpdateFloorIndicators(), and ~Elevator().
bool SBS::Elevator::ChimeOnArrival |
Definition at line 118 of file elevator.h.
Referenced by Elevator(), Skyscraper::editelevator::Loop(), SBS::ElevatorCar::NotifyArrival(), Skyscraper::editelevator::On_bSetChimeOnArrival_Click(), Skyscraper::ScriptProcessor::ElevatorSection::Run(), and SelectFloor().
|
private |
Definition at line 324 of file elevator.h.
Referenced by AddController(), CreateElevator(), FinishMove(), GetCallStatus(), GetDestinationDispatch(), MoveElevatorToFloor(), RemoveController(), SameFloorArrival(), and SelectFloor().
|
private |
Definition at line 353 of file elevator.h.
Referenced by DoSetControls(), and SetControls().
bool SBS::Elevator::Counterweight |
Definition at line 125 of file elevator.h.
Referenced by CreateCounterweight(), and Elevator().
std::string SBS::Elevator::CounterweightMoveSound |
Definition at line 123 of file elevator.h.
Referenced by Elevator(), PlayMovingSounds(), and Skyscraper::ScriptProcessor::ElevatorSection::Run().
|
private |
Definition at line 348 of file elevator.h.
Referenced by CreateCounterweight(), Elevator(), PlayMovingSounds(), PlayStartingSounds(), PlayStoppingSounds(), and ~Elevator().
std::string SBS::Elevator::CounterweightStartSound |
Definition at line 122 of file elevator.h.
Referenced by Elevator(), PlayStartingSounds(), and Skyscraper::ScriptProcessor::ElevatorSection::Run().
std::string SBS::Elevator::CounterweightStopSound |
Definition at line 124 of file elevator.h.
Referenced by Elevator(), PlayStoppingSounds(), and Skyscraper::ScriptProcessor::ElevatorSection::Run().
bool SBS::Elevator::Created |
Definition at line 39 of file elevator.h.
Referenced by SBS::ElevatorCar::CreateCar(), CreateElevator(), Elevator(), Loop(), OnInit(), and Skyscraper::ScriptProcessor::ElevatorCarSection::Run().
Real SBS::Elevator::Deceleration |
Definition at line 49 of file elevator.h.
Referenced by CreateElevator(), Elevator(), MoveElevatorToFloor(), Skyscraper::editelevator::On_bSetDeceleration_Click(), Skyscraper::ScriptProcessor::ElevatorSection::Run(), and Skyscraper::editelevator::SetMainValues().
Real SBS::Elevator::DecelJerk |
Definition at line 51 of file elevator.h.
Referenced by CreateElevator(), Elevator(), MoveElevatorToFloor(), Skyscraper::editelevator::On_bSetDecelJerk_Click(), Skyscraper::ScriptProcessor::ElevatorSection::Run(), and Skyscraper::editelevator::SetMainValues().
|
private |
Definition at line 293 of file elevator.h.
Referenced by Elevator(), MoveElevatorToFloor(), and ~Elevator().
Real SBS::Elevator::DepartureDelay |
Definition at line 100 of file elevator.h.
Referenced by Elevator(), MoveElevatorToFloor(), Skyscraper::editelevator::On_bSetDepartureDelay_Click(), Skyscraper::ScriptProcessor::ElevatorSection::Run(), and Skyscraper::editelevator::SetMainValues().
|
private |
Definition at line 305 of file elevator.h.
Referenced by Elevator(), GetDestination(), MoveElevatorToFloor(), and ProcessCallQueue().
int SBS::Elevator::Direction |
Definition at line 58 of file elevator.h.
Referenced by Down(), Elevator(), Skyscraper::editelevator::Loop(), MoveDown(), MoveElevatorToFloor(), MoveUp(), PlayMovingSounds(), SBS::ElevatorCar::PlayMovingSounds(), PlayStartingSounds(), SBS::ElevatorCar::PlayStartingSounds(), PlayStoppingSounds(), SBS::ElevatorCar::PlayStoppingSounds(), SBS::Action::Run(), SelectFloor(), SetHoistwayAccess(), and Up().
Real SBS::Elevator::DistanceToTravel |
Definition at line 54 of file elevator.h.
Referenced by Elevator(), Skyscraper::editelevator::Loop(), and MoveElevatorToFloor().
|
private |
Definition at line 351 of file elevator.h.
Referenced by Elevator(), SBS::ElevatorCar::EnableDoors(), and ~Elevator().
|
private |
Definition at line 318 of file elevator.h.
Referenced by Elevator(), FinishMove(), and ProcessCallQueue().
bool SBS::Elevator::DownPeak |
Definition at line 73 of file elevator.h.
Referenced by SBS::ElevatorDoor::AllowNudgeMode(), Elevator(), EnableDownPeak(), IsIdle(), Loop(), SBS::ElevatorCar::Loop(), Skyscraper::editelevator::Loop(), SBS::ElevatorDoor::MoveDoors(), OnPeakFloor(), PeakWaiting(), ProcessCallQueue(), and Skyscraper::ScriptProcessor::ElevatorSection::Run().
|
private |
Definition at line 303 of file elevator.h.
Referenced by AddRoute(), AvailableForCall(), DeleteRoute(), DumpQueues(), FinishMove(), GetArrivalDirection(), HandleDequeue(), IsQueued(), SBS::ElevatorCar::Loop(), ProcessCallQueue(), SBS::ElevatorCar::Requested(), ResetQueue(), and RouteExists().
|
private |
Definition at line 316 of file elevator.h.
Referenced by DeleteRoute(), Elevator(), GetArrivalDirection(), and ProcessCallQueue().
Real SBS::Elevator::DownSpeed |
Definition at line 44 of file elevator.h.
Referenced by CreateElevator(), Elevator(), MoveElevatorToFloor(), Skyscraper::editelevator::On_bSetDownSpeed_Click(), PlayStoppingSounds(), SBS::ElevatorCar::PlayStoppingSounds(), Skyscraper::ScriptProcessor::ElevatorSection::Run(), and Skyscraper::editelevator::SetMainValues().
Real SBS::Elevator::ElevatorRate |
Definition at line 55 of file elevator.h.
Referenced by BeyondDecelMarker(), Elevator(), Skyscraper::editelevator::Loop(), MoveElevatorToFloor(), PlayStoppingSounds(), and SBS::ElevatorCar::PlayStoppingSounds().
|
private |
Definition at line 304 of file elevator.h.
Referenced by Elevator(), GetElevatorStart(), and MoveElevatorToFloor().
|
private |
Definition at line 370 of file elevator.h.
Referenced by CreateElevator(), Elevator(), MoveElevatorToFloor(), and MoveObjects().
|
private |
Definition at line 309 of file elevator.h.
Referenced by Elevator(), FinishMove(), GetEmergencyStopStatus(), HandleDequeue(), MoveElevatorToFloor(), ProcessCallQueue(), and Stop().
Real SBS::Elevator::EmergencyStopSpeed |
Definition at line 115 of file elevator.h.
Referenced by Elevator(), MoveElevatorToFloor(), and Skyscraper::ScriptProcessor::ElevatorSection::Run().
bool SBS::Elevator::Error |
Definition at line 126 of file elevator.h.
Referenced by Elevator(), and MoveElevatorToFloor().
Real SBS::Elevator::ErrorOffset |
Definition at line 53 of file elevator.h.
Referenced by Elevator(), Skyscraper::editelevator::Loop(), and MoveElevatorToFloor().
|
private |
Definition at line 372 of file elevator.h.
Referenced by Elevator(), FinishMove(), IsStopped(), and MoveElevatorToFloor().
int SBS::Elevator::FireServicePhase1 |
Definition at line 77 of file elevator.h.
Referenced by SBS::ElevatorDoor::AllowNudgeMode(), SBS::ElevatorDoor::CloseDoors(), Elevator(), EnableACP(), EnableDownPeak(), EnableFireService1(), EnableFireService2(), EnableIndependentService(), EnableUpPeak(), FinishMove(), InServiceMode(), Loop(), Skyscraper::editelevator::Loop(), SBS::ElevatorCar::NotifyArrival(), SBS::Person::ProcessRoute(), SBS::ElevatorCar::Requested(), Skyscraper::ScriptProcessor::ElevatorSection::Run(), SelectFloor(), and Stop().
int SBS::Elevator::FireServicePhase2 |
Definition at line 78 of file elevator.h.
Referenced by AddRoute(), SBS::ElevatorDoor::AllowNudgeMode(), SBS::ElevatorDoor::CloseDoors(), Elevator(), EnableACP(), EnableDownPeak(), EnableFireService1(), EnableFireService2(), EnableIndependentService(), EnableUpPeak(), FinishMove(), SBS::ElevatorCar::FirePhase2Active(), SBS::ElevatorCar::FirePhase2OnOtherCar(), InServiceMode(), Loop(), SBS::ElevatorDoor::MoveDoors(), SBS::ElevatorCar::NotifyArrival(), ProcessCallQueue(), SBS::ElevatorCar::Requested(), SBS::Action::Run(), Skyscraper::ScriptProcessor::ElevatorCarSection::Run(), SelectFloor(), and Stop().
int SBS::Elevator::FireServicePhase2Car |
Definition at line 79 of file elevator.h.
Referenced by Elevator(), EnableFireService2(), FinishMove(), SBS::ElevatorCar::FirePhase2Active(), SBS::ElevatorCar::FirePhase2OnOtherCar(), Loop(), and Skyscraper::ScriptProcessor::ElevatorCarSection::Run().
|
private |
Definition at line 313 of file elevator.h.
Referenced by Elevator(), and Loop().
bool SBS::Elevator::FloorHold |
Definition at line 113 of file elevator.h.
Referenced by Elevator(), Skyscraper::ScriptProcessor::ElevatorSection::Run(), and SelectFloor().
|
private |
Definition at line 365 of file elevator.h.
Referenced by SBS::ElevatorCar::GetFloorDisplay(), GetFloorSkipText(), and SetFloorSkipText().
bool SBS::Elevator::GoActive |
Definition at line 112 of file elevator.h.
Referenced by Elevator(), Go(), and Loop().
|
private |
Definition at line 320 of file elevator.h.
Referenced by Elevator(), Go(), and Loop().
bool SBS::Elevator::GoPending |
Definition at line 114 of file elevator.h.
Referenced by Elevator(), Go(), MoveElevatorToFloor(), and ProcessCallQueue().
int SBS::Elevator::GotoFloor |
Definition at line 46 of file elevator.h.
Referenced by Elevator(), FinishMove(), Go(), Skyscraper::editelevator::Loop(), MoveElevatorToFloor(), NotifyArrival(), SBS::ElevatorDoor::OpenDoors(), SBS::ElevatorCar::PlayFloorSound(), ProcessCallQueue(), SBS::ElevatorCar::RespondingToCall(), and SBS::ElevatorCar::RespondingToCall().
int SBS::Elevator::GotoFloorCar |
Definition at line 47 of file elevator.h.
Referenced by Elevator(), FinishMove(), GetCarOffset(), Go(), MoveElevatorToFloor(), ProcessCallQueue(), and ProcessGotoFloor().
bool SBS::Elevator::HeightSet |
Definition at line 59 of file elevator.h.
Referenced by Elevator(), and Loop().
|
private |
Definition at line 322 of file elevator.h.
Referenced by Elevator(), EnableInspectionService(), Loop(), MoveElevatorToFloor(), and SetHoistwayAccess().
|
private |
Definition at line 323 of file elevator.h.
Referenced by Elevator(), EnableInspectionService(), Loop(), MoveElevatorToFloor(), and SetHoistwayAccess().
bool SBS::Elevator::HoistwayAccessHold |
Definition at line 119 of file elevator.h.
Referenced by Elevator(), Loop(), SBS::Action::Run(), Skyscraper::ScriptProcessor::ElevatorSection::Run(), and SetHoistwayAccess().
std::string SBS::Elevator::ID |
Definition at line 37 of file elevator.h.
Referenced by SBS::ElevatorCar::AddElevatorIDSigns(), Elevator(), Skyscraper::editelevator::On_bSetID_Click(), SBS::CallStation::ReportElevator(), Skyscraper::ScriptProcessor::ElevatorSection::Run(), and Skyscraper::editelevator::SetMainValues().
bool SBS::Elevator::IndependentService |
Definition at line 74 of file elevator.h.
Referenced by AddRoute(), Elevator(), EnableACP(), EnableDownPeak(), EnableIndependentService(), EnableUpPeak(), SBS::ElevatorCar::IndependentServiceActive(), SBS::ElevatorCar::IndependentServiceOnOtherCar(), InServiceMode(), Loop(), SBS::ElevatorCar::Requested(), SBS::Action::Run(), and Skyscraper::ScriptProcessor::ElevatorCarSection::Run().
int SBS::Elevator::IndependentServiceCar |
Definition at line 75 of file elevator.h.
Referenced by Elevator(), EnableIndependentService(), SBS::ElevatorCar::IndependentServiceActive(), SBS::ElevatorCar::IndependentServiceOnOtherCar(), Loop(), and Skyscraper::ScriptProcessor::ElevatorCarSection::Run().
bool SBS::Elevator::InspectionService |
Definition at line 76 of file elevator.h.
Referenced by AddRoute(), Elevator(), EnableACP(), EnableDownPeak(), EnableFireService1(), EnableFireService2(), EnableIndependentService(), EnableInspectionService(), EnableUpPeak(), FinishMove(), Go(), InServiceMode(), Loop(), Skyscraper::editelevator::Loop(), MoveDown(), MoveElevatorToFloor(), MoveUp(), Skyscraper::editelevator::On_bDown_Toggle(), Skyscraper::editelevator::On_bGoToggle_Toggle(), Skyscraper::editelevator::On_bUp_Toggle(), ProcessCallQueue(), SBS::ElevatorCar::Requested(), SBS::Action::Run(), Skyscraper::ScriptProcessor::ElevatorSection::Run(), SelectFloor(), SetDownButton(), SetGoButton(), SetHoistwayAccess(), SetRunState(), SetUpButton(), and Stop().
Real SBS::Elevator::InspectionSpeed |
Definition at line 103 of file elevator.h.
Referenced by Elevator(), MoveElevatorToFloor(), Skyscraper::editelevator::On_bSetInspectionSpeed_Click(), Skyscraper::ScriptProcessor::ElevatorSection::Run(), and Skyscraper::editelevator::SetMainValues().
bool SBS::Elevator::Interlocks |
Definition at line 111 of file elevator.h.
Referenced by CheckInterlocks(), Elevator(), Skyscraper::editelevator::Loop(), Skyscraper::editelevator::On_bInterlocks_Click(), SBS::ElevatorCar::OpenDoors(), SBS::Action::Run(), and Skyscraper::ScriptProcessor::ElevatorSection::Run().
bool SBS::Elevator::IsEnabled |
Definition at line 57 of file elevator.h.
Referenced by Check(), Elevator(), Enabled(), IsInElevator(), and Skyscraper::editelevator::Loop().
bool SBS::Elevator::IsMoving |
Definition at line 60 of file elevator.h.
Referenced by SBS::Shaft::Check(), Down(), Elevator(), EnableDownPeak(), EnableIndependentService(), EnableInspectionService(), EnableUpPeak(), SBS::ElevatorCar::IsOnFloor(), IsStopped(), SBS::ElevatorCar::Loop(), Skyscraper::editelevator::Loop(), MoveDown(), MoveElevatorToFloor(), MoveUp(), SBS::ElevatorCar::OpenDoors(), PeakWaiting(), ProcessCallQueue(), SBS::Person::ProcessRoute(), SBS::ElevatorCar::Requested(), SetHoistwayAccess(), SetRunState(), Stop(), and Up().
|
private |
Definition at line 311 of file elevator.h.
Referenced by Elevator(), GetJerkPosition(), and MoveElevatorToFloor().
|
private |
Definition at line 310 of file elevator.h.
Referenced by Elevator(), GetJerkRate(), and MoveElevatorToFloor().
int SBS::Elevator::LastChimeDirection |
Definition at line 106 of file elevator.h.
Referenced by SBS::ElevatorCar::Chime(), Elevator(), Skyscraper::editelevator::Loop(), SBS::ElevatorCar::NotifyArrival(), SBS::ElevatorCar::PlayMessageSound(), and SelectFloor().
|
private |
Definition at line 363 of file elevator.h.
Referenced by Elevator().
|
private |
Definition at line 364 of file elevator.h.
Referenced by Elevator().
int SBS::Elevator::LastQueueDirection |
Definition at line 41 of file elevator.h.
Referenced by Elevator(), FinishMove(), Skyscraper::editelevator::Loop(), SBS::ElevatorCar::PlayMessageSound(), ProcessCallQueue(), and SelectFloor().
int SBS::Elevator::LastQueueFloor[2] |
Definition at line 42 of file elevator.h.
Referenced by AddRoute(), CallCancel(), CallCancelAll(), Elevator(), and Skyscraper::editelevator::Loop().
bool SBS::Elevator::Leveling |
Definition at line 90 of file elevator.h.
Referenced by SBS::Shaft::Check(), Elevator(), Skyscraper::editelevator::Loop(), MoveElevatorToFloor(), SBS::ElevatorDoor::OpenDoors(), and ProcessCallQueue().
Real SBS::Elevator::LevelingOffset |
Definition at line 92 of file elevator.h.
Referenced by Elevator(), MoveElevatorToFloor(), Skyscraper::editelevator::On_bSetLevelingOffset_Click(), Skyscraper::ScriptProcessor::ElevatorSection::Run(), and Skyscraper::editelevator::SetMainValues().
Real SBS::Elevator::LevelingOpen |
Definition at line 93 of file elevator.h.
Referenced by Elevator(), MoveElevatorToFloor(), Skyscraper::editelevator::On_bSetLevelingOpen_Click(), Skyscraper::ScriptProcessor::ElevatorSection::Run(), and Skyscraper::editelevator::SetMainValues().
Real SBS::Elevator::LevelingSpeed |
Definition at line 91 of file elevator.h.
Referenced by Elevator(), MoveElevatorToFloor(), Skyscraper::editelevator::On_bSetLevelingSpeed_Click(), Skyscraper::ScriptProcessor::ElevatorSection::Run(), and Skyscraper::editelevator::SetMainValues().
bool SBS::Elevator::LimitQueue |
Definition at line 104 of file elevator.h.
Referenced by AddRoute(), AvailableForCall(), Elevator(), Skyscraper::editelevator::Loop(), SBS::ElevatorCar::Requested(), and Skyscraper::ScriptProcessor::ElevatorSection::Run().
|
private |
Definition at line 296 of file elevator.h.
Referenced by Elevator(), EnableMalfunctions(), and ~Elevator().
bool SBS::Elevator::ManualDown |
Definition at line 85 of file elevator.h.
Referenced by Elevator(), SetDownButton(), and SetGoButton().
bool SBS::Elevator::ManualGo |
Definition at line 83 of file elevator.h.
Referenced by Elevator(), Skyscraper::editelevator::Loop(), MoveDown(), MoveUp(), SetDownButton(), SetGoButton(), and SetUpButton().
int SBS::Elevator::ManualMove |
Definition at line 109 of file elevator.h.
Referenced by Down(), Down(), Elevator(), Loop(), Skyscraper::editelevator::Loop(), MoveElevatorToFloor(), ProcessCallQueue(), Up(), and Up().
bool SBS::Elevator::ManualMoveHold |
Definition at line 110 of file elevator.h.
Referenced by Down(), Elevator(), Loop(), and Up().
|
private |
Definition at line 321 of file elevator.h.
Referenced by Down(), Elevator(), FinishMove(), IsManuallyStopped(), MoveElevatorToFloor(), and Up().
bool SBS::Elevator::ManualUp |
Definition at line 84 of file elevator.h.
Referenced by Elevator(), SetGoButton(), and SetUpButton().
std::string SBS::Elevator::MotorDownRunSound |
Definition at line 65 of file elevator.h.
Referenced by Elevator(), PlayMovingSounds(), Skyscraper::ScriptProcessor::ElevatorCarSection::Run(), and Skyscraper::ScriptProcessor::ElevatorSection::Run().
std::string SBS::Elevator::MotorDownStartSound |
Definition at line 64 of file elevator.h.
Referenced by Elevator(), PlayStartingSounds(), Skyscraper::ScriptProcessor::ElevatorCarSection::Run(), and Skyscraper::ScriptProcessor::ElevatorSection::Run().
std::string SBS::Elevator::MotorDownStopSound |
Definition at line 66 of file elevator.h.
Referenced by Elevator(), PlayStoppingSounds(), Skyscraper::ScriptProcessor::ElevatorCarSection::Run(), and Skyscraper::ScriptProcessor::ElevatorSection::Run().
std::string SBS::Elevator::MotorEmergencyStopSound |
Definition at line 68 of file elevator.h.
Referenced by Elevator(), PlayStoppingSounds(), and Skyscraper::ScriptProcessor::ElevatorSection::Run().
std::string SBS::Elevator::MotorIdleSound |
Definition at line 67 of file elevator.h.
Referenced by Elevator(), Loop(), Skyscraper::ScriptProcessor::ElevatorCarSection::Run(), and Skyscraper::ScriptProcessor::ElevatorSection::Run().
|
private |
Definition at line 345 of file elevator.h.
Referenced by CreateElevator(), Elevator(), Loop(), and ~Elevator().
Vector3 SBS::Elevator::MotorPosition |
Definition at line 86 of file elevator.h.
Referenced by AddRails(), CreateCounterweight(), CreateElevator(), Elevator(), GetMotorRoom(), Skyscraper::editelevator::Loop(), MoveObjects(), and Skyscraper::ScriptProcessor::ElevatorSection::Run().
|
private |
Definition at line 344 of file elevator.h.
Referenced by CreateElevator(), Elevator(), PlayMovingSounds(), PlayStartingSounds(), PlayStoppingSounds(), StopSounds(), and ~Elevator().
std::string SBS::Elevator::MotorUpRunSound |
Definition at line 62 of file elevator.h.
Referenced by Elevator(), PlayMovingSounds(), Skyscraper::ScriptProcessor::ElevatorCarSection::Run(), and Skyscraper::ScriptProcessor::ElevatorSection::Run().
std::string SBS::Elevator::MotorUpStartSound |
Definition at line 61 of file elevator.h.
Referenced by Elevator(), PlayStartingSounds(), Skyscraper::ScriptProcessor::ElevatorCarSection::Run(), and Skyscraper::ScriptProcessor::ElevatorSection::Run().
std::string SBS::Elevator::MotorUpStopSound |
Definition at line 63 of file elevator.h.
Referenced by Elevator(), PlayStoppingSounds(), Skyscraper::ScriptProcessor::ElevatorCarSection::Run(), and Skyscraper::ScriptProcessor::ElevatorSection::Run().
bool SBS::Elevator::MoveElevator |
Definition at line 45 of file elevator.h.
Referenced by AvailableForCall(), Down(), Elevator(), Go(), HandleDequeue(), IsIdle(), Loop(), Skyscraper::editelevator::Loop(), MoveDown(), MoveElevatorToFloor(), MoveUp(), SBS::ElevatorDoor::OpenDoors(), ProcessCallQueue(), ProcessGotoFloor(), SetHoistwayAccess(), and Up().
|
private |
Definition at line 361 of file elevator.h.
Referenced by Elevator(), and MoveElevatorToFloor().
std::string SBS::Elevator::Name |
Definition at line 36 of file elevator.h.
Referenced by Elevator(), SBS::Person::GotoFloor(), Skyscraper::editelevator::On_bSetName_Click(), Skyscraper::ScriptProcessor::ElevatorSection::Run(), and Skyscraper::editelevator::SetMainValues().
bool SBS::Elevator::Notified |
Definition at line 98 of file elevator.h.
Referenced by Elevator(), FinishMove(), Skyscraper::editelevator::Loop(), MoveElevatorToFloor(), and NotifyArrival().
int SBS::Elevator::NotifyEarly |
Definition at line 96 of file elevator.h.
Referenced by Elevator(), FinishMove(), GetArrivalDirection(), MoveElevatorToFloor(), Skyscraper::editelevator::On_bNotifyEarly_Click(), SBS::ElevatorCar::PlayMessageSound(), ProcessCallQueue(), Skyscraper::ScriptProcessor::ElevatorSection::Run(), SameFloorArrival(), and Skyscraper::editelevator::SetMainValues().
bool SBS::Elevator::NotifyLate |
Definition at line 97 of file elevator.h.
Referenced by Elevator(), Skyscraper::editelevator::Loop(), SBS::ElevatorDoor::MoveDoors(), SBS::ElevatorCar::NotifyArrival(), Skyscraper::editelevator::On_bNotifyLate_Click(), SBS::ElevatorCar::PlayMessageSound(), and SameFloorArrival().
int SBS::Elevator::Number |
Definition at line 35 of file elevator.h.
Referenced by SBS::ElevatorCar::AddDirectionalIndicator(), SBS::ElevatorCar::AddDirectionalIndicators(), SBS::ElevatorDoor::AddDoorComponent(), SBS::ElevatorCar::AddFloorIndicator(), SBS::ElevatorDoor::AddShaftDoorComponent(), SBS::ElevatorCar::Check(), CreateElevator(), SBS::SBS::DeleteObject(), SBS::DoorWrapper::DoorWrapper(), SBS::ElevatorCar::DumpServicedFloors(), Elevator(), EnableInspectionService(), SBS::DispatchController::FindClosestElevator(), SBS::ElevatorDoor::FinishDoors(), FinishMove(), GetCallStatus(), SBS::Floor::GetDirectRoute(), SBS::Floor::GetElevatorList(), GetPrimaryCallStation(), SBS::Person::GetStatus(), SBS::Person::GotoFloor(), SBS::ElevatorCar::InCar(), InElevator(), Skyscraper::editelevator::Loop(), MoveElevatorToFloor(), MoveObjects(), SBS::Person::ProcessRoute(), SBS::DispatchController::ProcessRoutes(), SameFloorArrival(), and SBS::ElevatorCar::SetDirectionalIndicators().
|
private |
Definition at line 362 of file elevator.h.
Referenced by Elevator(), and MoveElevatorToFloor().
bool SBS::Elevator::OnFloor |
Definition at line 82 of file elevator.h.
Referenced by SBS::ElevatorDoor::CloseDoors(), Elevator(), FinishMove(), IsStopped(), Skyscraper::editelevator::Loop(), MoveElevatorToFloor(), SBS::ElevatorCar::OpenDoors(), SBS::ElevatorDoor::OpenDoors(), and SBS::Person::ProcessRoute().
bool SBS::Elevator::OpenOnStart |
Definition at line 108 of file elevator.h.
Referenced by Elevator(), SBS::ElevatorCar::Loop(), Skyscraper::editelevator::Loop(), and Skyscraper::ScriptProcessor::ElevatorSection::Run().
bool SBS::Elevator::Parking |
Definition at line 99 of file elevator.h.
Referenced by Elevator(), FinishMove(), Skyscraper::editelevator::Loop(), MoveElevatorToFloor(), SBS::Elevator::Timer::Notify(), ReturnToBottomFloor(), and ReturnToNearestFloor().
|
private |
Definition at line 289 of file elevator.h.
Referenced by Elevator(), Loop(), and ~Elevator().
Real SBS::Elevator::ParkingDelay |
Definition at line 89 of file elevator.h.
Referenced by Elevator(), Loop(), SBS::Elevator::Timer::Notify(), Skyscraper::editelevator::On_bSetParkingDelay_Click(), Skyscraper::ScriptProcessor::ElevatorSection::Run(), and Skyscraper::editelevator::SetMainValues().
int SBS::Elevator::ParkingFloor |
Definition at line 88 of file elevator.h.
Referenced by Elevator(), SBS::Elevator::Timer::Notify(), Skyscraper::editelevator::On_bSetParkingFloor_Click(), OnParkingFloor(), Skyscraper::ScriptProcessor::ElevatorSection::Run(), and Skyscraper::editelevator::SetMainValues().
|
private |
Definition at line 319 of file elevator.h.
Referenced by AddRoute(), AvailableForCall(), Elevator(), ProcessCallQueue(), and ResetQueue().
int SBS::Elevator::QueuePositionDirection |
Definition at line 40 of file elevator.h.
Referenced by AddRoute(), AvailableForCall(), Elevator(), FinishMove(), GetArrivalDirection(), IsQueueActive(), Skyscraper::editelevator::Loop(), ProcessCallQueue(), and SBS::ElevatorCar::Requested().
bool SBS::Elevator::QueueResets |
Definition at line 87 of file elevator.h.
Referenced by AvailableForCall(), Elevator(), FinishMove(), GetArrivalDirection(), Skyscraper::editelevator::Loop(), and Skyscraper::ScriptProcessor::ElevatorSection::Run().
|
private |
Definition at line 298 of file elevator.h.
Referenced by Elevator(), and EnableMalfunctions().
|
private |
Definition at line 297 of file elevator.h.
Referenced by Elevator(), and SBS::Elevator::Timer::Notify().
|
private |
Definition at line 367 of file elevator.h.
Referenced by CreateElevator(), Elevator(), and SetAlternateRecallFloor().
int SBS::Elevator::RecallFloor |
Definition at line 80 of file elevator.h.
Referenced by Elevator(), GetActiveRecallFloor(), GetLobbies(), GetPrimaryCallStation(), GetRecallFloor(), GoToRecallFloor(), OnRecallFloor(), Skyscraper::editelevator::SetMainValues(), and SetRecallFloor().
int SBS::Elevator::RecallFloorAlternate |
Definition at line 81 of file elevator.h.
Referenced by Elevator(), GetActiveRecallFloor(), GetRecallFloor(), GoToRecallFloor(), OnRecallFloor(), SetAlternateRecallFloor(), and Skyscraper::editelevator::SetMainValues().
|
private |
Definition at line 366 of file elevator.h.
Referenced by CreateElevator(), Elevator(), and SetRecallFloor().
|
private |
Definition at line 369 of file elevator.h.
Referenced by Elevator(), GetActiveRecallFloor(), GetRecallFloor(), GoToRecallFloor(), and OnRecallFloor().
bool SBS::Elevator::ReOpen |
Definition at line 105 of file elevator.h.
Referenced by Elevator(), Skyscraper::editelevator::Loop(), Skyscraper::editelevator::On_bSetReOpen_Click(), Skyscraper::ScriptProcessor::ElevatorSection::Run(), and SelectFloor().
|
private |
Definition at line 325 of file elevator.h.
Referenced by Elevator(), SBS::Elevator::Timer::Notify(), and ~Elevator().
|
private |
Definition at line 325 of file elevator.h.
Referenced by Elevator(), Malfunction(), and ~Elevator().
|
private |
Definition at line 358 of file elevator.h.
Referenced by CreateCounterweight(), Elevator(), MoveObjects(), and ~Elevator().
Vector3 SBS::Elevator::RopePosition |
Definition at line 120 of file elevator.h.
Referenced by CreateCounterweight(), Elevator(), and Skyscraper::ScriptProcessor::ElevatorSection::Run().
std::string SBS::Elevator::RopeTexture |
Definition at line 121 of file elevator.h.
Referenced by CreateCounterweight(), and Skyscraper::ScriptProcessor::ElevatorSection::Run().
|
private |
Definition at line 314 of file elevator.h.
Referenced by AddRoute(), CallCancel(), CallCancelAll(), DeleteActiveRoute(), DeleteRoute(), Down(), Elevator(), EnableACP(), EnableDownPeak(), EnableFireService1(), EnableFireService2(), EnableIndependentService(), EnableUpPeak(), SBS::ElevatorCar::GetFloorButton(), Go(), GoToRecallFloor(), IsIdle(), IsRunning(), Loop(), MoveDown(), MoveElevatorToFloor(), MoveUp(), ProcessCallQueue(), SBS::ElevatorCar::Requested(), SelectFloor(), SetDownButton(), SetGoButton(), SetHoistwayAccess(), SetRunState(), SetUpButton(), and Up().
bool SBS::Elevator::SkipFloorSound |
Definition at line 117 of file elevator.h.
Referenced by Elevator(), FinishMove(), MoveElevatorToFloor(), and SBS::ElevatorCar::PlayFloorSound().
|
private |
Definition at line 373 of file elevator.h.
Referenced by Elevator(), and MoveElevatorToFloor().
|
private |
Definition at line 306 of file elevator.h.
Referenced by BeyondDecelMarker(), Elevator(), GetStoppingDistance(), and MoveElevatorToFloor().
Real SBS::Elevator::TempDeceleration |
Definition at line 52 of file elevator.h.
Referenced by Elevator(), Skyscraper::editelevator::Loop(), and MoveElevatorToFloor().
|
private |
Definition at line 371 of file elevator.h.
Referenced by Elevator(), and MoveElevatorToFloor().
std::string SBS::Elevator::Type |
Definition at line 38 of file elevator.h.
Referenced by Elevator(), SBS::Floor::GetDirectFloors(), SBS::Floor::GetDirectRoute(), SBS::Floor::GetElevatorList(), Skyscraper::editelevator::On_bSetType_Click(), Skyscraper::ScriptProcessor::ElevatorSection::Run(), Skyscraper::editelevator::SetMainValues(), and SBS::Elevator::Timer::Timer().
|
private |
Definition at line 317 of file elevator.h.
Referenced by Elevator(), FinishMove(), and ProcessCallQueue().
bool SBS::Elevator::UpPeak |
Definition at line 72 of file elevator.h.
Referenced by SBS::ElevatorDoor::AllowNudgeMode(), Elevator(), EnableUpPeak(), IsIdle(), Loop(), SBS::ElevatorCar::Loop(), Skyscraper::editelevator::Loop(), SBS::ElevatorDoor::MoveDoors(), OnPeakFloor(), PeakWaiting(), ProcessCallQueue(), and Skyscraper::ScriptProcessor::ElevatorSection::Run().
|
private |
Definition at line 302 of file elevator.h.
Referenced by AddRoute(), AvailableForCall(), DeleteRoute(), DumpQueues(), FinishMove(), GetArrivalDirection(), HandleDequeue(), IsQueued(), SBS::ElevatorCar::Loop(), ProcessCallQueue(), SBS::ElevatorCar::Requested(), ResetQueue(), and RouteExists().
|
private |
Definition at line 315 of file elevator.h.
Referenced by DeleteRoute(), Elevator(), GetArrivalDirection(), and ProcessCallQueue().
Real SBS::Elevator::UpSpeed |
Definition at line 43 of file elevator.h.
Referenced by CreateElevator(), Elevator(), MoveElevatorToFloor(), Skyscraper::editelevator::On_bSetUpSpeed_Click(), PlayStoppingSounds(), SBS::ElevatorCar::PlayStoppingSounds(), Skyscraper::ScriptProcessor::ElevatorSection::Run(), and Skyscraper::editelevator::SetMainValues().
bool SBS::Elevator::UseFloorSkipText |
Definition at line 69 of file elevator.h.
Referenced by Elevator(), SBS::ElevatorCar::GetFloorDisplay(), and SetFloorSkipText().
bool SBS::Elevator::WaitForDoors |
Definition at line 94 of file elevator.h.
Referenced by SBS::ElevatorDoor::CloseDoors(), Elevator(), Go(), Skyscraper::editelevator::Loop(), SBS::ElevatorDoor::MoveDoors(), MoveElevatorToFloor(), SBS::ElevatorDoor::Timer::Notify(), and ProcessCallQueue().
bool SBS::Elevator::WaitForTimer |
Definition at line 102 of file elevator.h.
Referenced by Elevator(), Skyscraper::editelevator::Loop(), MoveElevatorToFloor(), and SBS::Elevator::Timer::Notify().
|
private |
Definition at line 357 of file elevator.h.
Referenced by CreateCounterweight(), and MoveObjects().
|
private |
Definition at line 355 of file elevator.h.
Referenced by CreateCounterweight(), Elevator(), MoveObjects(), and ~Elevator().
|
private |
Definition at line 356 of file elevator.h.
Referenced by CreateCounterweight(), Elevator(), MoveObjects(), and ~Elevator().