Skyscraper 2.0
SBS::Elevator Class Reference

#include <elevator.h>

Inheritance diagram for SBS::Elevator:
Collaboration diagram for SBS::Elevator:

Classes

struct  QueueEntry
 
class  Timer
 

Public Member Functions

 Elevator (Object *parent, int number)
 
 ~Elevator ()
 
bool CreateElevator (bool relative, Real x, Real z, int floor)
 
WallCreateCounterweight (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)
 
ElevatorCarIsInElevator (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)
 
ShaftGetShaft ()
 
CallStationGetPrimaryCallStation ()
 
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 ()
 
DynamicMeshGetDoorContainer ()
 
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 ()
 
ElevatorCarAddCar ()
 
ElevatorCarGetCar (int number)
 
void RemoveCar (ElevatorCar *car)
 
int GetCarCount ()
 
ElevatorCarGetCarForFloor (int number, bool report_on_failure=false)
 
int GetFloorForCar (int car, int number)
 
Real GetCarOffset (int number)
 
- Public Member Functions inherited from SBS::Object
 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)
 
ObjectGetChild (int index)
 
int GetChildrenCount ()
 
void RemoveChild (Object *object)
 
SceneNodeGetSceneNode ()
 
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 ()
 
- Public Member Functions inherited from SBS::ObjectBase
 ObjectBase (Object *parent)
 
virtual ~ObjectBase ()
 
ObjectGetParent ()
 
SBSGetRoot ()
 
void SetName (const std::string &name)
 
const std::string & GetName ()
 
std::string GetNameBase ()
 

Public Attributes

int Number
 
std::string Name
 
std::string ID
 
std::string Type
 
bool Created
 
int QueuePositionDirection
 
int LastQueueDirection
 
int LastQueueFloor [2]
 
Real UpSpeed
 
Real DownSpeed
 
bool MoveElevator
 
int GotoFloor
 
int GotoFloorCar
 
Real Acceleration
 
Real Deceleration
 
Real AccelJerk
 
Real DecelJerk
 
Real TempDeceleration
 
Real ErrorOffset
 
Real DistanceToTravel
 
Real ElevatorRate
 
int AssignedShaft
 
bool IsEnabled
 
int Direction
 
bool HeightSet
 
bool IsMoving
 
std::string MotorUpStartSound
 
std::string MotorUpRunSound
 
std::string MotorUpStopSound
 
std::string MotorDownStartSound
 
std::string MotorDownRunSound
 
std::string MotorDownStopSound
 
std::string MotorIdleSound
 
std::string MotorEmergencyStopSound
 
bool UseFloorSkipText
 
bool ACP
 
int ACPFloor
 
bool UpPeak
 
bool DownPeak
 
bool IndependentService
 
int IndependentServiceCar
 
bool InspectionService
 
int FireServicePhase1
 
int FireServicePhase2
 
int FireServicePhase2Car
 
int RecallFloor
 
int RecallFloorAlternate
 
bool OnFloor
 
bool ManualGo
 
bool ManualUp
 
bool ManualDown
 
Vector3 MotorPosition
 
bool QueueResets
 
int ParkingFloor
 
Real ParkingDelay
 
bool Leveling
 
Real LevelingSpeed
 
Real LevelingOffset
 
Real LevelingOpen
 
bool WaitForDoors
 
int ActiveDirection
 
int NotifyEarly
 
bool NotifyLate
 
bool Notified
 
bool Parking
 
Real DepartureDelay
 
Real ArrivalDelay
 
bool WaitForTimer
 
Real InspectionSpeed
 
bool LimitQueue
 
bool ReOpen
 
int LastChimeDirection
 
bool AutoDoors
 
bool OpenOnStart
 
int ManualMove
 
bool ManualMoveHold
 
bool Interlocks
 
bool GoActive
 
bool FloorHold
 
bool GoPending
 
Real EmergencyStopSpeed
 
bool AutoAdjustSound
 
bool SkipFloorSound
 
bool ChimeOnArrival
 
bool HoistwayAccessHold
 
Vector3 RopePosition
 
std::string RopeTexture
 
std::string CounterweightStartSound
 
std::string CounterweightMoveSound
 
std::string CounterweightStopSound
 
bool Counterweight
 
bool Error
 
- Public Attributes inherited from SBS::Object
std::string command
 
std::string command_processed
 
std::string context
 
int linenum
 
std::string includefile
 
bool parent_deleting
 

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)
 

Private Attributes

Timerparking_timer
 
Timerarrival_delay
 
Timerdeparture_delay
 
Timermalfunction_timer
 
int RandomProbability
 
Real RandomFrequency
 
std::vector< ElevatorCar * > Cars
 
std::vector< QueueEntryUpQueue
 
std::vector< QueueEntryDownQueue
 
Real ElevatorStart
 
Real Destination
 
Real StoppingDistance
 
bool CalculateStoppingDistance
 
bool Brakes
 
int EmergencyStop
 
Real JerkRate
 
Real JerkPos
 
QueueEntry ActiveCall
 
bool FirstRun
 
bool Running
 
bool UpQueueEmpty
 
bool DownQueueEmpty
 
bool UpCall
 
bool DownCall
 
bool QueuePending
 
int GoActiveFloor
 
bool ManualStop
 
int HoistwayAccess
 
int HoistwayAccessFloor
 
std::vector< int > Controllers
 
RandomGenrnd_time
 
RandomGenrnd_type
 
Soundmotorsound
 
Soundmotoridlesound
 
Soundcounterweightsound
 
DynamicMeshDoorContainer
 
std::queue< std::string > ControlQueue
 
MeshObjectWeightMesh
 
MeshObjectWeightRopeMesh
 
Vector3 weight_size
 
MeshObjectRopeMesh
 
bool MovementRunning
 
int oldfloor
 
int lastfloor
 
bool lastfloorset
 
std::string FloorSkipText
 
bool RecallSet
 
bool RecallAltSet
 
bool ACPFloorSet
 
bool RecallUnavailable
 
Vector3 elevposition
 
Real tmpDecelJerk
 
bool FinishedMove
 
bool SoundsQueued
 

Friends

class ElevatorDoor
 
class ElevatorCar
 

Additional Inherited Members

- Protected Member Functions inherited from SBS::Object
void EnableLoop (bool value)
 
void LoopChildren ()
 
bool SelfDestruct ()
 
- Protected Attributes inherited from SBS::ObjectBase
SBSsbs
 

Detailed Description

Definition at line 29 of file elevator.h.

Constructor & Destructor Documentation

◆ Elevator()

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.

Here is the call graph for this function:

◆ ~Elevator()

Member Function Documentation

◆ AddCar()

ElevatorCar * SBS::Elevator::AddCar ( )

Definition at line 4464 of file elevator.cpp.

References Cars, and ElevatorCar.

Referenced by Elevator(), and Skyscraper::ScriptProcessor::ElevatorCarSection::Run().

◆ AddController()

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().

Here is the call graph for this function:

◆ AddRails()

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 )

◆ AddRoute()

◆ AreDoorsClosing()

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().

Here is the call graph for this function:

◆ AreDoorsMoving()

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().

Here is the call graph for this function:

◆ AreDoorsOpen()

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().

Here is the call graph for this function:

◆ AreDoorsOpening()

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().

Here is the call graph for this function:

◆ AreShaftDoorsClosed()

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().

Here is the call graph for this function:

◆ AvailableForCall()

◆ BeyondDecelMarker()

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().

Here is the call graph for this function:

◆ CallCancel()

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().

Here is the call graph for this function:

◆ CallCancelAll()

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().

Here is the call graph for this function:

◆ CancelHallCall()

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().

Here is the call graph for this function:

◆ ChangeLight()

void SBS::Elevator::ChangeLight ( int floor,
bool value )

Definition at line 4622 of file elevator.cpp.

References Cars.

Referenced by AddRoute(), DeleteRoute(), and Go().

◆ Check()

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().

Here is the call graph for this function:

◆ CheckInterlocks()

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().

Here is the call graph for this function:

◆ CloseDoors()

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().

Here is the call graph for this function:

◆ CreateCounterweight()

◆ CreateElevator()

◆ DeleteActiveRoute()

◆ DeleteRoute()

bool SBS::Elevator::DeleteRoute ( int floor,
int direction )

◆ DirectionalIndicatorsOff()

void SBS::Elevator::DirectionalIndicatorsOff ( )
private

◆ DoorsStopped()

bool SBS::Elevator::DoorsStopped ( )

Definition at line 4553 of file elevator.cpp.

References Cars, and DoorsStopped().

Referenced by CheckInterlocks(), and DoorsStopped().

Here is the call graph for this function:

◆ DoSetControls()

void SBS::Elevator::DoSetControls ( )
private

Definition at line 4901 of file elevator.cpp.

References Cars, and ControlQueue.

Referenced by Loop().

◆ Down() [1/2]

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().

Here is the call graph for this function:

◆ Down() [2/2]

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.

Here is the call graph for this function:

◆ DumpQueues()

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().

Here is the call graph for this function:

◆ EnableACP()

◆ Enabled()

void SBS::Elevator::Enabled ( bool value)
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().

Here is the call graph for this function:

◆ EnableDownPeak()

◆ EnableFireService1()

◆ EnableFireService2()

◆ EnableIndependentService()

◆ EnableInspectionService()

◆ EnableMalfunctions()

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().

Here is the call graph for this function:

◆ EnableNudgeMode()

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().

Here is the call graph for this function:

◆ EnableUpPeak()

◆ FinishMove()

void SBS::Elevator::FinishMove ( )
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().

Here is the call graph for this function:

◆ GetActiveCallDirection()

int SBS::Elevator::GetActiveCallDirection ( )

◆ GetActiveCallFloor()

int SBS::Elevator::GetActiveCallFloor ( )

◆ GetActiveCallType()

int SBS::Elevator::GetActiveCallType ( )

◆ GetActiveRecallFloor()

int SBS::Elevator::GetActiveRecallFloor ( )

Definition at line 4353 of file elevator.cpp.

References RecallFloor, RecallFloorAlternate, and RecallUnavailable.

Referenced by SBS::Person::ProcessRoute().

◆ GetArrivalDirection()

bool SBS::Elevator::GetArrivalDirection ( int floor)

◆ GetBottomFloor()

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().

Here is the call graph for this function:

◆ GetBrakeStatus()

bool SBS::Elevator::GetBrakeStatus ( )

Definition at line 2323 of file elevator.cpp.

References Brakes.

Referenced by Skyscraper::editelevator::Loop().

◆ GetCallStatus()

bool SBS::Elevator::GetCallStatus ( int floor,
bool & up,
bool & down )

◆ GetCar()

◆ GetCarCount()

◆ GetCarForFloor()

◆ GetCarOffset()

Real SBS::Elevator::GetCarOffset ( int number)

Definition at line 4781 of file elevator.cpp.

References GetCar(), SBS::Object::GetPosition(), and GotoFloorCar.

Referenced by GetDestinationAltitude().

Here is the call graph for this function:

◆ GetDestination()

Real SBS::Elevator::GetDestination ( )

Definition at line 2311 of file elevator.cpp.

References Destination.

Referenced by Skyscraper::editelevator::Loop().

◆ GetDestinationAltitude()

Real SBS::Elevator::GetDestinationAltitude ( int floor)
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().

Here is the call graph for this function:

◆ GetDestinationDispatch()

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().

Here is the call graph for this function:

◆ GetDestinationOffset()

Real SBS::Elevator::GetDestinationOffset ( int floor)
private

Definition at line 3650 of file elevator.cpp.

References GetCarForFloor(), and SBS::ElevatorCar::GetDestinationOffset().

Here is the call graph for this function:

◆ GetDoorContainer()

DynamicMesh * SBS::Elevator::GetDoorContainer ( )
inline

Definition at line 213 of file elevator.h.

Referenced by SBS::ElevatorDoor::AddDoorComponent().

◆ GetElevatorStart()

Real SBS::Elevator::GetElevatorStart ( )

Definition at line 2305 of file elevator.cpp.

References ElevatorStart.

Referenced by Skyscraper::editelevator::Loop().

◆ GetEmergencyStopStatus()

int SBS::Elevator::GetEmergencyStopStatus ( )

Definition at line 2329 of file elevator.cpp.

References EmergencyStop.

Referenced by Skyscraper::editelevator::Loop().

◆ GetFloorForCar()

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().

Here is the call graph for this function:

◆ GetFloorSkipText()

std::string SBS::Elevator::GetFloorSkipText ( )

Definition at line 2377 of file elevator.cpp.

References FloorSkipText.

Referenced by Skyscraper::editelevator::SetMainValues().

◆ GetHoldStatus()

bool SBS::Elevator::GetHoldStatus ( )

Definition at line 4670 of file elevator.cpp.

References Cars, and GetHoldStatus().

Referenced by AvailableForCall(), GetHoldStatus(), and PeakWaiting().

Here is the call graph for this function:

◆ GetJerkPosition()

Real SBS::Elevator::GetJerkPosition ( )

Definition at line 2352 of file elevator.cpp.

References JerkPos.

◆ GetJerkRate()

Real SBS::Elevator::GetJerkRate ( )

Definition at line 2347 of file elevator.cpp.

References JerkRate.

Referenced by Skyscraper::editelevator::Loop().

◆ GetLobbies()

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().

Here is the call graph for this function:

◆ GetMotorRoom()

int SBS::Elevator::GetMotorRoom ( )

Definition at line 5024 of file elevator.cpp.

References SBS::SBS::GetFloorNumber(), MotorPosition, and SBS::ObjectBase::sbs.

Here is the call graph for this function:

◆ GetPrimaryCallStation()

◆ GetRecallFloor()

int SBS::Elevator::GetRecallFloor ( )

◆ GetShaft()

◆ GetStoppingDistance()

Real SBS::Elevator::GetStoppingDistance ( )

Definition at line 2317 of file elevator.cpp.

References StoppingDistance.

Referenced by Skyscraper::editelevator::Loop().

◆ GetTopFloor()

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().

Here is the call graph for this function:

◆ Go()

◆ GoToRecallFloor()

void SBS::Elevator::GoToRecallFloor ( )

◆ HandleDequeue()

void SBS::Elevator::HandleDequeue ( int direction,
bool stop_if_empty = true )
private

◆ HoldDoors()

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().

Here is the call graph for this function:

◆ InElevator()

bool SBS::Elevator::InElevator ( )

◆ InServiceMode()

◆ IsIdle()

◆ IsInElevator()

ElevatorCar * SBS::Elevator::IsInElevator ( const Vector3 & position,
bool camera = false )

◆ IsLeveled()

bool SBS::Elevator::IsLeveled ( )

Definition at line 3977 of file elevator.cpp.

References GetCar(), and SBS::ElevatorCar::IsLeveled().

Referenced by MoveElevatorToFloor(), and SelectFloor().

Here is the call graph for this function:

◆ IsManuallyStopped()

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().

Here is the call graph for this function:

◆ IsNudgeModeActive()

bool SBS::Elevator::IsNudgeModeActive ( )

Definition at line 4692 of file elevator.cpp.

References Cars, and IsNudgeModeActive().

Referenced by AvailableForCall(), and IsNudgeModeActive().

Here is the call graph for this function:

◆ IsQueueActive()

bool SBS::Elevator::IsQueueActive ( )

Definition at line 3367 of file elevator.cpp.

References QueuePositionDirection.

Referenced by SBS::ElevatorCar::PlayMessageSound(), and SelectFloor().

◆ IsQueued()

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().

◆ IsRunning()

bool SBS::Elevator::IsRunning ( )

◆ IsServicedFloor()

◆ IsStopped()

bool SBS::Elevator::IsStopped ( )

Definition at line 4391 of file elevator.cpp.

References FinishedMove, IsMoving, and OnFloor.

Referenced by SBS::DispatchController::ElevatorUnavailable().

◆ Loop()

◆ Malfunction()

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().

Here is the call graph for this function:

◆ MoveDown()

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().

Here is the call graph for this function:

◆ MoveElevatorToFloor()

void SBS::Elevator::MoveElevatorToFloor ( )
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().

Here is the call graph for this function:

◆ MoveObjects()

◆ MoveUp()

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().

Here is the call graph for this function:

◆ NotifyArrival()

void SBS::Elevator::NotifyArrival ( bool early = false)
private

◆ OnBottomFloor()

bool SBS::Elevator::OnBottomFloor ( )

Definition at line 4687 of file elevator.cpp.

References GetCar(), and SBS::ElevatorCar::OnBottomFloor().

Referenced by EnableUpPeak(), OnPeakFloor(), and PeakWaiting().

Here is the call graph for this function:

◆ OnInit()

void SBS::Elevator::OnInit ( )
virtual

Reimplemented from SBS::Object.

Definition at line 3661 of file elevator.cpp.

References Created, Enabled(), SBS::SBS::GetConfigBool(), and SBS::ObjectBase::sbs.

Here is the call graph for this function:

◆ OnParkingFloor()

bool SBS::Elevator::OnParkingFloor ( )

Definition at line 4823 of file elevator.cpp.

References GetCarForFloor(), SBS::ElevatorCar::GetFloor(), and ParkingFloor.

Here is the call graph for this function:

◆ OnPeakFloor()

bool SBS::Elevator::OnPeakFloor ( )

Definition at line 4331 of file elevator.cpp.

References DownPeak, OnBottomFloor(), OnTopFloor(), and UpPeak.

Referenced by FinishMove().

Here is the call graph for this function:

◆ OnRecallFloor()

◆ OnTopFloor()

bool SBS::Elevator::OnTopFloor ( )

Definition at line 4682 of file elevator.cpp.

References GetCar(), and SBS::ElevatorCar::OnTopFloor().

Referenced by EnableDownPeak(), OnPeakFloor(), and PeakWaiting().

Here is the call graph for this function:

◆ OpenDoors()

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().

Here is the call graph for this function:

◆ PeakWaiting()

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().

Here is the call graph for this function:

◆ PlayMovingSounds()

void SBS::Elevator::PlayMovingSounds ( )
private

◆ PlayStartingSounds()

void SBS::Elevator::PlayStartingSounds ( )
private

◆ PlayStoppingSounds()

◆ ProcessCallQueue()

◆ ProcessGotoFloor()

void SBS::Elevator::ProcessGotoFloor ( int floor,
int direction )
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().

Here is the call graph for this function:

◆ RemoveCar()

void SBS::Elevator::RemoveCar ( ElevatorCar * car)

Definition at line 4490 of file elevator.cpp.

References Cars.

Referenced by SBS::ElevatorCar::~ElevatorCar().

◆ RemoveController()

void SBS::Elevator::RemoveController ( int controller)

Definition at line 4994 of file elevator.cpp.

References Controllers.

Referenced by SBS::DispatchController::RemoveElevator().

◆ Report()

◆ ReportError()

◆ ResetDoors()

void SBS::Elevator::ResetDoors ( )

◆ ResetLights()

void SBS::Elevator::ResetLights ( )

Definition at line 4632 of file elevator.cpp.

References Cars.

Referenced by ResetQueue().

◆ ResetNudgeTimers()

void SBS::Elevator::ResetNudgeTimers ( bool start = true)

◆ ResetQueue()

void SBS::Elevator::ResetQueue ( bool up,
bool down,
bool stop_if_empty = true )

◆ ResetShaftDoors()

void SBS::Elevator::ResetShaftDoors ( int floor)

◆ ReturnToBottomFloor()

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.

Here is the call graph for this function:

◆ ReturnToNearestFloor()

bool SBS::Elevator::ReturnToNearestFloor ( bool parking = true,
int car = 1 )

◆ RouteExists()

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().

Here is the call graph for this function:

◆ SameFloorArrival()

◆ SelectFloor()

◆ SetACPFloor()

◆ SetAlternateRecallFloor()

◆ SetControls()

void SBS::Elevator::SetControls ( const std::string & action_name)

◆ SetDownButton()

bool SBS::Elevator::SetDownButton ( bool value)

◆ SetFloorSkipText()

void SBS::Elevator::SetFloorSkipText ( const std::string & id)

◆ SetGoButton()

◆ SetHoistwayAccess()

bool SBS::Elevator::SetHoistwayAccess ( int floor,
int access )

◆ SetRecallFloor()

◆ SetRunState()

void SBS::Elevator::SetRunState ( bool value)

◆ SetUpButton()

bool SBS::Elevator::SetUpButton ( bool value)

◆ Stop()

◆ StopSounds()

void SBS::Elevator::StopSounds ( )
private

Definition at line 4611 of file elevator.cpp.

References Cars, motorsound, and SBS::Sound::Stop().

Referenced by MoveElevatorToFloor().

Here is the call graph for this function:

◆ Up() [1/2]

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().

Here is the call graph for this function:

◆ Up() [2/2]

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.

Here is the call graph for this function:

◆ UpdateDirectionalIndicators()

void SBS::Elevator::UpdateDirectionalIndicators ( )

Definition at line 3285 of file elevator.cpp.

References Cars, and SBS_PROFILE.

Referenced by FinishMove(), and MoveElevatorToFloor().

◆ UpdateFloorIndicators()

void SBS::Elevator::UpdateFloorIndicators ( )

Definition at line 2335 of file elevator.cpp.

References Cars, and SBS_PROFILE.

Referenced by EnableInspectionService(), FinishMove(), Loop(), and MoveElevatorToFloor().

Friends And Related Symbol Documentation

◆ ElevatorCar

friend class ElevatorCar
friend

Definition at line 32 of file elevator.h.

Referenced by AddCar().

◆ ElevatorDoor

friend class ElevatorDoor
friend

Definition at line 31 of file elevator.h.

Member Data Documentation

◆ Acceleration

◆ AccelJerk

◆ ACP

◆ ACPFloor

int SBS::Elevator::ACPFloor

◆ ACPFloorSet

bool SBS::Elevator::ACPFloorSet
private

Definition at line 368 of file elevator.h.

Referenced by CreateElevator(), Elevator(), and SetACPFloor().

◆ ActiveCall

QueueEntry SBS::Elevator::ActiveCall
private

◆ ActiveDirection

◆ arrival_delay

Timer* SBS::Elevator::arrival_delay
private

Definition at line 292 of file elevator.h.

Referenced by Elevator(), MoveElevatorToFloor(), and ~Elevator().

◆ ArrivalDelay

◆ AssignedShaft

◆ AutoAdjustSound

bool SBS::Elevator::AutoAdjustSound

Definition at line 116 of file elevator.h.

Referenced by Elevator(), PlayStoppingSounds(), and SBS::ElevatorCar::PlayStoppingSounds().

◆ AutoDoors

◆ Brakes

bool SBS::Elevator::Brakes
private

Definition at line 308 of file elevator.h.

Referenced by Elevator(), GetBrakeStatus(), and MoveElevatorToFloor().

◆ CalculateStoppingDistance

bool SBS::Elevator::CalculateStoppingDistance
private

Definition at line 307 of file elevator.h.

Referenced by Elevator(), and MoveElevatorToFloor().

◆ Cars

◆ ChimeOnArrival

◆ Controllers

std::vector<int> SBS::Elevator::Controllers
private

◆ ControlQueue

std::queue<std::string> SBS::Elevator::ControlQueue
private

Definition at line 353 of file elevator.h.

Referenced by DoSetControls(), and SetControls().

◆ Counterweight

bool SBS::Elevator::Counterweight

Definition at line 125 of file elevator.h.

Referenced by CreateCounterweight(), and Elevator().

◆ CounterweightMoveSound

std::string SBS::Elevator::CounterweightMoveSound

◆ counterweightsound

Sound* SBS::Elevator::counterweightsound
private

◆ CounterweightStartSound

std::string SBS::Elevator::CounterweightStartSound

◆ CounterweightStopSound

std::string SBS::Elevator::CounterweightStopSound

◆ Created

◆ Deceleration

◆ DecelJerk

◆ departure_delay

Timer* SBS::Elevator::departure_delay
private

Definition at line 293 of file elevator.h.

Referenced by Elevator(), MoveElevatorToFloor(), and ~Elevator().

◆ DepartureDelay

◆ Destination

Real SBS::Elevator::Destination
private

Definition at line 305 of file elevator.h.

Referenced by Elevator(), GetDestination(), MoveElevatorToFloor(), and ProcessCallQueue().

◆ Direction

◆ DistanceToTravel

Real SBS::Elevator::DistanceToTravel

Definition at line 54 of file elevator.h.

Referenced by Elevator(), Skyscraper::editelevator::Loop(), and MoveElevatorToFloor().

◆ DoorContainer

DynamicMesh* SBS::Elevator::DoorContainer
private

Definition at line 351 of file elevator.h.

Referenced by Elevator(), SBS::ElevatorCar::EnableDoors(), and ~Elevator().

◆ DownCall

bool SBS::Elevator::DownCall
private

Definition at line 318 of file elevator.h.

Referenced by Elevator(), FinishMove(), and ProcessCallQueue().

◆ DownPeak

◆ DownQueue

◆ DownQueueEmpty

bool SBS::Elevator::DownQueueEmpty
private

Definition at line 316 of file elevator.h.

Referenced by DeleteRoute(), Elevator(), GetArrivalDirection(), and ProcessCallQueue().

◆ DownSpeed

◆ ElevatorRate

◆ ElevatorStart

Real SBS::Elevator::ElevatorStart
private

Definition at line 304 of file elevator.h.

Referenced by Elevator(), GetElevatorStart(), and MoveElevatorToFloor().

◆ elevposition

Vector3 SBS::Elevator::elevposition
private

Definition at line 370 of file elevator.h.

Referenced by CreateElevator(), Elevator(), MoveElevatorToFloor(), and MoveObjects().

◆ EmergencyStop

int SBS::Elevator::EmergencyStop
private

◆ EmergencyStopSpeed

Real SBS::Elevator::EmergencyStopSpeed

◆ Error

bool SBS::Elevator::Error

Definition at line 126 of file elevator.h.

Referenced by Elevator(), and MoveElevatorToFloor().

◆ ErrorOffset

Real SBS::Elevator::ErrorOffset

Definition at line 53 of file elevator.h.

Referenced by Elevator(), Skyscraper::editelevator::Loop(), and MoveElevatorToFloor().

◆ FinishedMove

bool SBS::Elevator::FinishedMove
private

Definition at line 372 of file elevator.h.

Referenced by Elevator(), FinishMove(), IsStopped(), and MoveElevatorToFloor().

◆ FireServicePhase1

◆ FireServicePhase2

◆ FireServicePhase2Car

◆ FirstRun

bool SBS::Elevator::FirstRun
private

Definition at line 313 of file elevator.h.

Referenced by Elevator(), and Loop().

◆ FloorHold

bool SBS::Elevator::FloorHold

◆ FloorSkipText

std::string SBS::Elevator::FloorSkipText
private

◆ GoActive

bool SBS::Elevator::GoActive

Definition at line 112 of file elevator.h.

Referenced by Elevator(), Go(), and Loop().

◆ GoActiveFloor

int SBS::Elevator::GoActiveFloor
private

Definition at line 320 of file elevator.h.

Referenced by Elevator(), Go(), and Loop().

◆ GoPending

bool SBS::Elevator::GoPending

Definition at line 114 of file elevator.h.

Referenced by Elevator(), Go(), MoveElevatorToFloor(), and ProcessCallQueue().

◆ GotoFloor

◆ GotoFloorCar

int SBS::Elevator::GotoFloorCar

◆ HeightSet

bool SBS::Elevator::HeightSet

Definition at line 59 of file elevator.h.

Referenced by Elevator(), and Loop().

◆ HoistwayAccess

int SBS::Elevator::HoistwayAccess
private

◆ HoistwayAccessFloor

int SBS::Elevator::HoistwayAccessFloor
private

◆ HoistwayAccessHold

bool SBS::Elevator::HoistwayAccessHold

◆ ID

◆ IndependentService

◆ IndependentServiceCar

◆ InspectionService

◆ InspectionSpeed

◆ Interlocks

◆ IsEnabled

bool SBS::Elevator::IsEnabled

Definition at line 57 of file elevator.h.

Referenced by Check(), Elevator(), Enabled(), IsInElevator(), and Skyscraper::editelevator::Loop().

◆ IsMoving

◆ JerkPos

Real SBS::Elevator::JerkPos
private

Definition at line 311 of file elevator.h.

Referenced by Elevator(), GetJerkPosition(), and MoveElevatorToFloor().

◆ JerkRate

Real SBS::Elevator::JerkRate
private

Definition at line 310 of file elevator.h.

Referenced by Elevator(), GetJerkRate(), and MoveElevatorToFloor().

◆ LastChimeDirection

◆ lastfloor

int SBS::Elevator::lastfloor
private

Definition at line 363 of file elevator.h.

Referenced by Elevator().

◆ lastfloorset

bool SBS::Elevator::lastfloorset
private

Definition at line 364 of file elevator.h.

Referenced by Elevator().

◆ LastQueueDirection

int SBS::Elevator::LastQueueDirection

◆ LastQueueFloor

int SBS::Elevator::LastQueueFloor[2]

◆ Leveling

◆ LevelingOffset

◆ LevelingOpen

◆ LevelingSpeed

◆ LimitQueue

◆ malfunction_timer

Timer* SBS::Elevator::malfunction_timer
private

Definition at line 296 of file elevator.h.

Referenced by Elevator(), EnableMalfunctions(), and ~Elevator().

◆ ManualDown

bool SBS::Elevator::ManualDown

Definition at line 85 of file elevator.h.

Referenced by Elevator(), SetDownButton(), and SetGoButton().

◆ ManualGo

bool SBS::Elevator::ManualGo

◆ ManualMove

int SBS::Elevator::ManualMove

◆ ManualMoveHold

bool SBS::Elevator::ManualMoveHold

Definition at line 110 of file elevator.h.

Referenced by Down(), Elevator(), Loop(), and Up().

◆ ManualStop

bool SBS::Elevator::ManualStop
private

Definition at line 321 of file elevator.h.

Referenced by Down(), Elevator(), FinishMove(), IsManuallyStopped(), MoveElevatorToFloor(), and Up().

◆ ManualUp

bool SBS::Elevator::ManualUp

Definition at line 84 of file elevator.h.

Referenced by Elevator(), SetGoButton(), and SetUpButton().

◆ MotorDownRunSound

std::string SBS::Elevator::MotorDownRunSound

◆ MotorDownStartSound

std::string SBS::Elevator::MotorDownStartSound

◆ MotorDownStopSound

std::string SBS::Elevator::MotorDownStopSound

◆ MotorEmergencyStopSound

std::string SBS::Elevator::MotorEmergencyStopSound

◆ MotorIdleSound

std::string SBS::Elevator::MotorIdleSound

◆ motoridlesound

Sound* SBS::Elevator::motoridlesound
private

Definition at line 345 of file elevator.h.

Referenced by CreateElevator(), Elevator(), Loop(), and ~Elevator().

◆ MotorPosition

◆ motorsound

Sound* SBS::Elevator::motorsound
private

◆ MotorUpRunSound

std::string SBS::Elevator::MotorUpRunSound

◆ MotorUpStartSound

std::string SBS::Elevator::MotorUpStartSound

◆ MotorUpStopSound

std::string SBS::Elevator::MotorUpStopSound

◆ MoveElevator

◆ MovementRunning

bool SBS::Elevator::MovementRunning
private

Definition at line 361 of file elevator.h.

Referenced by Elevator(), and MoveElevatorToFloor().

◆ Name

◆ Notified

bool SBS::Elevator::Notified

◆ NotifyEarly

◆ NotifyLate

◆ Number

◆ oldfloor

int SBS::Elevator::oldfloor
private

Definition at line 362 of file elevator.h.

Referenced by Elevator(), and MoveElevatorToFloor().

◆ OnFloor

◆ OpenOnStart

bool SBS::Elevator::OpenOnStart

◆ Parking

◆ parking_timer

Timer* SBS::Elevator::parking_timer
private

Definition at line 289 of file elevator.h.

Referenced by Elevator(), Loop(), and ~Elevator().

◆ ParkingDelay

◆ ParkingFloor

◆ QueuePending

bool SBS::Elevator::QueuePending
private

Definition at line 319 of file elevator.h.

Referenced by AddRoute(), AvailableForCall(), Elevator(), ProcessCallQueue(), and ResetQueue().

◆ QueuePositionDirection

◆ QueueResets

◆ RandomFrequency

Real SBS::Elevator::RandomFrequency
private

Definition at line 298 of file elevator.h.

Referenced by Elevator(), and EnableMalfunctions().

◆ RandomProbability

int SBS::Elevator::RandomProbability
private

Definition at line 297 of file elevator.h.

Referenced by Elevator(), and SBS::Elevator::Timer::Notify().

◆ RecallAltSet

bool SBS::Elevator::RecallAltSet
private

Definition at line 367 of file elevator.h.

Referenced by CreateElevator(), Elevator(), and SetAlternateRecallFloor().

◆ RecallFloor

◆ RecallFloorAlternate

◆ RecallSet

bool SBS::Elevator::RecallSet
private

Definition at line 366 of file elevator.h.

Referenced by CreateElevator(), Elevator(), and SetRecallFloor().

◆ RecallUnavailable

bool SBS::Elevator::RecallUnavailable
private

◆ ReOpen

◆ rnd_time

RandomGen* SBS::Elevator::rnd_time
private

Definition at line 325 of file elevator.h.

Referenced by Elevator(), SBS::Elevator::Timer::Notify(), and ~Elevator().

◆ rnd_type

RandomGen * SBS::Elevator::rnd_type
private

Definition at line 325 of file elevator.h.

Referenced by Elevator(), Malfunction(), and ~Elevator().

◆ RopeMesh

MeshObject* SBS::Elevator::RopeMesh
private

Definition at line 358 of file elevator.h.

Referenced by CreateCounterweight(), Elevator(), MoveObjects(), and ~Elevator().

◆ RopePosition

Vector3 SBS::Elevator::RopePosition

◆ RopeTexture

std::string SBS::Elevator::RopeTexture

◆ Running

◆ SkipFloorSound

bool SBS::Elevator::SkipFloorSound

◆ SoundsQueued

bool SBS::Elevator::SoundsQueued
private

Definition at line 373 of file elevator.h.

Referenced by Elevator(), and MoveElevatorToFloor().

◆ StoppingDistance

Real SBS::Elevator::StoppingDistance
private

Definition at line 306 of file elevator.h.

Referenced by BeyondDecelMarker(), Elevator(), GetStoppingDistance(), and MoveElevatorToFloor().

◆ TempDeceleration

Real SBS::Elevator::TempDeceleration

Definition at line 52 of file elevator.h.

Referenced by Elevator(), Skyscraper::editelevator::Loop(), and MoveElevatorToFloor().

◆ tmpDecelJerk

Real SBS::Elevator::tmpDecelJerk
private

Definition at line 371 of file elevator.h.

Referenced by Elevator(), and MoveElevatorToFloor().

◆ Type

◆ UpCall

bool SBS::Elevator::UpCall
private

Definition at line 317 of file elevator.h.

Referenced by Elevator(), FinishMove(), and ProcessCallQueue().

◆ UpPeak

◆ UpQueue

◆ UpQueueEmpty

bool SBS::Elevator::UpQueueEmpty
private

Definition at line 315 of file elevator.h.

Referenced by DeleteRoute(), Elevator(), GetArrivalDirection(), and ProcessCallQueue().

◆ UpSpeed

◆ UseFloorSkipText

bool SBS::Elevator::UseFloorSkipText

Definition at line 69 of file elevator.h.

Referenced by Elevator(), SBS::ElevatorCar::GetFloorDisplay(), and SetFloorSkipText().

◆ WaitForDoors

◆ WaitForTimer

bool SBS::Elevator::WaitForTimer

◆ weight_size

Vector3 SBS::Elevator::weight_size
private

Definition at line 357 of file elevator.h.

Referenced by CreateCounterweight(), and MoveObjects().

◆ WeightMesh

MeshObject* SBS::Elevator::WeightMesh
private

Definition at line 355 of file elevator.h.

Referenced by CreateCounterweight(), Elevator(), MoveObjects(), and ~Elevator().

◆ WeightRopeMesh

MeshObject* SBS::Elevator::WeightRopeMesh
private

Definition at line 356 of file elevator.h.

Referenced by CreateCounterweight(), Elevator(), MoveObjects(), and ~Elevator().


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