Skyscraper 2.0
SBS::ElevatorDoor Class Reference

#include <elevatordoor.h>

Inheritance diagram for SBS::ElevatorDoor:
Collaboration diagram for SBS::ElevatorDoor:

Classes

class  Timer
 

Public Member Functions

 ElevatorDoor (int number, ElevatorCar *car)
 
 ~ElevatorDoor ()
 
void OpenDoorsEmergency (int whichdoors=1, int floor=0)
 
void CloseDoorsEmergency (int whichdoors=1, int floor=0)
 
void OpenDoors (int whichdoors=1, int floor=0, bool manual=false)
 
void CloseDoors (int whichdoors=1, int floor=0, bool manual=false)
 
void StopDoors ()
 
void Hold (bool sensor=false)
 
void ShaftDoorsEnabled (int floor, bool value)
 
void ShaftDoorsEnabledRange (int floor, int range)
 
bool AreDoorsOpen ()
 
bool AreShaftDoorsOpen (int floor)
 
bool AreShaftDoorsClosed (bool skip_current_floor=false)
 
void Reset (bool sensor=false)
 
bool DoorsStopped ()
 
DoorWrapperAddDoors (const std::string &lefttexture, const std::string &righttexture, Real thickness, Real CenterX, Real CenterZ, Real width, Real height, bool direction, Real tw, Real th)
 
bool AddShaftDoors (const std::string &lefttexture, const std::string &righttexture, Real thickness, Real CenterX, Real CenterZ, Real voffset, Real tw, Real th)
 
DoorWrapperAddShaftDoor (int floor, const std::string &lefttexture, const std::string &righttexture, Real tw, Real th)
 
DoorWrapperAddShaftDoor (int floor, const std::string &lefttexture, const std::string &righttexture, Real thickness, Real CenterX, Real CenterZ, Real voffset, Real tw, Real th)
 
void Chime (int floor, bool direction)
 
void EarlyChime (int floor, bool direction)
 
void Loop ()
 
void MoveSound (const Vector3 &position, bool relative_x, bool relative_y, bool relative_z)
 
void Enabled (bool value)
 
bool IsEnabled ()
 
void SetShaftDoors (Real thickness, Real CenterX, Real CenterZ)
 
bool ShaftDoorsExist (int floor, bool include_nonserviced=false)
 
int GetWhichDoors ()
 
DoorComponentAddDoorComponent (DoorWrapper *wrapper, const std::string &name, const std::string &meshname, const std::string &texture, const std::string &sidetexture, Real thickness, const std::string &direction, Real OpenSpeed, Real CloseSpeed, Real x1, Real z1, Real x2, Real z2, Real height, Real voffset, Real tw, Real th, Real side_tw, Real side_th)
 
DoorWrapperAddDoorComponent (const std::string &name, const std::string &texture, const std::string &sidetexture, Real thickness, const std::string &direction, Real OpenSpeed, Real CloseSpeed, Real x1, Real z1, Real x2, Real z2, Real height, Real voffset, Real tw, Real th, Real side_tw, Real side_th)
 
DoorWrapperAddShaftDoorComponent (int floor, const std::string &name, const std::string &texture, const std::string &sidetexture, Real thickness, const std::string &direction, Real OpenSpeed, Real CloseSpeed, Real x1, Real z1, Real x2, Real z2, Real height, Real voffset, Real tw, Real th, Real side_tw, Real side_th)
 
void AddShaftDoorsComponent (const std::string &name, const std::string &texture, const std::string &sidetexture, Real thickness, const std::string &direction, Real OpenSpeed, Real CloseSpeed, Real x1, Real z1, Real x2, Real z2, Real height, Real voffset, Real tw, Real th, Real side_tw, Real side_th)
 
DoorWrapperFinishDoors (DoorWrapper *wrapper, int floor, bool ShaftDoor, bool DoorWalls=true, bool TrackWalls=true)
 
DoorWrapperFinishDoors (bool DoorWalls=true, bool TrackWalls=true)
 
DoorWrapperFinishShaftDoor (int floor, bool DoorWalls=true, bool TrackWalls=true)
 
bool FinishShaftDoors (bool DoorWalls=true, bool TrackWalls=true)
 
DoorWrapperGetDoorWrapper ()
 
DoorWrapperGetShaftDoorWrapper (int floor)
 
bool TimerIsRunning ()
 
void EnableNudgeMode (bool value)
 
bool GetNudgeStatus ()
 
int GetManualIndex (int floor)
 
Real GetShaftDoorAltitude (int floor)
 
void CheckSensor ()
 
void CreateSensor (Vector3 &area_min, Vector3 &area_max)
 
bool AreDoorsMoving (int doors=0, bool car_doors=true, bool shaft_doors=true)
 
void EnableSensor (bool value, bool persistent=true)
 
bool GetSensorStatus (bool persistent=true)
 
bool IsSensorBlocked ()
 
bool GetHoldStatus ()
 
void ResetNudgeTimer (bool start=true)
 
bool AllowNudgeMode ()
 
std::string GetNumberText ()
 
void ResetState ()
 
void RemoveShaftDoor (DoorWrapper *door)
 
void AddServicedFloor (int floor)
 
void RemoveServicedFloor (int floor)
 
bool GetDoorChanged ()
 
bool GetPreviousOpen ()
 
- 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)
 
void ChangeParent (Object *new_parent)
 
bool IsGlobal ()
 
void Init (bool children=true)
 
virtual void OnInit ()
 
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 ()
 
virtual void Report (const std::string &message)
 
virtual bool ReportError (const std::string &message)
 

Public Attributes

int Number
 
Elevatorelev
 
ElevatorCarcar
 
Real OpenSpeed
 
bool DoorDirection
 
int DoorTimer
 
int QuickClose
 
Real NudgeTimer
 
std::string OpenSound
 
std::string CloseSound
 
std::string UpChimeSound
 
std::string DownChimeSound
 
std::string EarlyUpChimeSound
 
std::string EarlyDownChimeSound
 
std::string NudgeSound
 
std::string SensorSound
 
int OpenDoor
 
Real ShaftDoorThickness
 
Vector3 ShaftDoorOrigin
 
Real ManualSpeed
 
Real SlowSpeed
 
bool EarlyUpSet
 
bool EarlyDownSet
 
- 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 MoveDoors (bool open, bool manual)
 
int GetIndex (int floor)
 

Private Attributes

DoorWrapperDoors
 
int WhichDoors
 
int ShaftDoorFloor
 
std::vector< DoorWrapper * > ShaftDoors
 
std::vector< int > ManualFloors
 
Timertimer
 
Timernudgetimer
 
Sounddoorsound
 
Soundchime
 
Soundearlychime
 
Soundnudgesound
 
bool DoorIsRunning
 
int index
 
bool previous_open
 
bool door_changed
 
bool quick_close
 
bool doors_stopped
 
bool nudge_enabled
 
bool nudgesound_loaded
 
int chimesound_loaded
 
int earlychimesound_loaded
 
bool sensor_enabled
 
bool sensor_status
 
Triggersensor
 
Actionsensor_action
 
Actionreset_action
 

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 32 of file elevatordoor.h.

Constructor & Destructor Documentation

◆ ElevatorDoor()

◆ ~ElevatorDoor()

Member Function Documentation

◆ AddDoorComponent() [1/2]

DoorWrapper * SBS::ElevatorDoor::AddDoorComponent ( const std::string & name,
const std::string & texture,
const std::string & sidetexture,
Real thickness,
const std::string & direction,
Real OpenSpeed,
Real CloseSpeed,
Real x1,
Real z1,
Real x2,
Real z2,
Real height,
Real voffset,
Real tw,
Real th,
Real side_tw,
Real side_th )

Definition at line 887 of file elevatordoor.cpp.

References AddDoorComponent(), car, Doors, elev, SBS::ObjectBase::Name, SBS::Elevator::Number, SBS::ElevatorCar::Number, Number, OpenSpeed, SBS::ToString(), and SBS::TrimString().

Here is the call graph for this function:

◆ AddDoorComponent() [2/2]

DoorComponent * SBS::ElevatorDoor::AddDoorComponent ( DoorWrapper * wrapper,
const std::string & name,
const std::string & meshname,
const std::string & texture,
const std::string & sidetexture,
Real thickness,
const std::string & direction,
Real OpenSpeed,
Real CloseSpeed,
Real x1,
Real z1,
Real x2,
Real z2,
Real height,
Real voffset,
Real tw,
Real th,
Real side_tw,
Real side_th )

◆ AddDoors()

DoorWrapper * SBS::ElevatorDoor::AddDoors ( const std::string & lefttexture,
const std::string & righttexture,
Real thickness,
Real CenterX,
Real CenterZ,
Real width,
Real height,
bool direction,
Real tw,
Real th )

Definition at line 781 of file elevatordoor.cpp.

References AddDoorComponent(), FinishDoors(), and OpenSpeed.

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

Here is the call graph for this function:

◆ AddServicedFloor()

void SBS::ElevatorDoor::AddServicedFloor ( int floor)

Definition at line 211 of file elevatordoor.cpp.

References ShaftDoors.

◆ AddShaftDoor() [1/2]

DoorWrapper * SBS::ElevatorDoor::AddShaftDoor ( int floor,
const std::string & lefttexture,
const std::string & righttexture,
Real thickness,
Real CenterX,
Real CenterZ,
Real voffset,
Real tw,
Real th )

◆ AddShaftDoor() [2/2]

DoorWrapper * SBS::ElevatorDoor::AddShaftDoor ( int floor,
const std::string & lefttexture,
const std::string & righttexture,
Real tw,
Real th )

Definition at line 1184 of file elevatordoor.cpp.

References AddShaftDoor(), ShaftDoorOrigin, and ShaftDoorThickness.

Referenced by SBS::ElevatorCar::AddShaftDoor(), SBS::ElevatorCar::AddShaftDoor(), AddShaftDoor(), and AddShaftDoors().

Here is the call graph for this function:

◆ AddShaftDoorComponent()

DoorWrapper * SBS::ElevatorDoor::AddShaftDoorComponent ( int floor,
const std::string & name,
const std::string & texture,
const std::string & sidetexture,
Real thickness,
const std::string & direction,
Real OpenSpeed,
Real CloseSpeed,
Real x1,
Real z1,
Real x2,
Real z2,
Real height,
Real voffset,
Real tw,
Real th,
Real side_tw,
Real side_th )

◆ AddShaftDoors()

bool SBS::ElevatorDoor::AddShaftDoors ( const std::string & lefttexture,
const std::string & righttexture,
Real thickness,
Real CenterX,
Real CenterZ,
Real voffset,
Real tw,
Real th )

Definition at line 1165 of file elevatordoor.cpp.

References AddShaftDoor(), car, SBS::ElevatorCar::ServicedFloors, ShaftDoorOrigin, and ShaftDoorThickness.

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

Here is the call graph for this function:

◆ AddShaftDoorsComponent()

void SBS::ElevatorDoor::AddShaftDoorsComponent ( const std::string & name,
const std::string & texture,
const std::string & sidetexture,
Real thickness,
const std::string & direction,
Real OpenSpeed,
Real CloseSpeed,
Real x1,
Real z1,
Real x2,
Real z2,
Real height,
Real voffset,
Real tw,
Real th,
Real side_tw,
Real side_th )

Definition at line 929 of file elevatordoor.cpp.

References AddShaftDoorComponent(), car, OpenSpeed, and SBS::ElevatorCar::ServicedFloors.

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

Here is the call graph for this function:

◆ AllowNudgeMode()

◆ AreDoorsMoving()

bool SBS::ElevatorDoor::AreDoorsMoving ( int doors = 0,
bool car_doors = true,
bool shaft_doors = true )

◆ AreDoorsOpen()

◆ AreShaftDoorsClosed()

bool SBS::ElevatorDoor::AreShaftDoorsClosed ( bool skip_current_floor = false)

Definition at line 1338 of file elevatordoor.cpp.

References AreDoorsMoving(), car, SBS::DoorWrapper::floor, SBS::ElevatorCar::GetFloor(), SBS::DoorWrapper::Open, and ShaftDoors.

Here is the call graph for this function:

◆ AreShaftDoorsOpen()

bool SBS::ElevatorDoor::AreShaftDoorsOpen ( int floor)

Definition at line 1322 of file elevatordoor.cpp.

References GetIndex(), index, ShaftDoors, and ShaftDoorsExist().

Referenced by SBS::ElevatorCar::AreShaftDoorsOpen(), CloseDoors(), and OpenDoors().

Here is the call graph for this function:

◆ CheckSensor()

void SBS::ElevatorDoor::CheckSensor ( )

◆ Chime()

◆ CloseDoors()

◆ CloseDoorsEmergency()

void SBS::ElevatorDoor::CloseDoorsEmergency ( int whichdoors = 1,
int floor = 0 )

Definition at line 274 of file elevatordoor.cpp.

References CloseDoors().

Here is the call graph for this function:

◆ CreateSensor()

void SBS::ElevatorDoor::CreateSensor ( Vector3 & area_min,
Vector3 & area_max )

Definition at line 1679 of file elevatordoor.cpp.

References SBS::SBS::AddAction(), car, SBS::ObjectBase::GetName(), Number, reset_action, SBS::ObjectBase::sbs, sensor, sensor_action, SensorSound, and SBS::ToString().

Referenced by FinishDoors().

Here is the call graph for this function:

◆ DoorsStopped()

bool SBS::ElevatorDoor::DoorsStopped ( )

Definition at line 1470 of file elevatordoor.cpp.

References doors_stopped.

Referenced by SBS::ElevatorCar::DoorsStopped(), and Skyscraper::editelevator::Loop().

◆ EarlyChime()

◆ Enabled()

void SBS::ElevatorDoor::Enabled ( bool value)
virtual

Reimplemented from SBS::Object.

Definition at line 1493 of file elevatordoor.cpp.

References Doors, and SBS::DoorWrapper::Enabled().

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

Here is the call graph for this function:

◆ EnableNudgeMode()

◆ EnableSensor()

void SBS::ElevatorDoor::EnableSensor ( bool value,
bool persistent = true )

◆ FinishDoors() [1/2]

DoorWrapper * SBS::ElevatorDoor::FinishDoors ( bool DoorWalls = true,
bool TrackWalls = true )

Definition at line 1120 of file elevatordoor.cpp.

References Doors, and FinishDoors().

Here is the call graph for this function:

◆ FinishDoors() [2/2]

◆ FinishShaftDoor()

DoorWrapper * SBS::ElevatorDoor::FinishShaftDoor ( int floor,
bool DoorWalls = true,
bool TrackWalls = true )

◆ FinishShaftDoors()

bool SBS::ElevatorDoor::FinishShaftDoors ( bool DoorWalls = true,
bool TrackWalls = true )

Definition at line 1155 of file elevatordoor.cpp.

References car, FinishShaftDoor(), and SBS::ElevatorCar::ServicedFloors.

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

Here is the call graph for this function:

◆ GetDoorChanged()

bool SBS::ElevatorDoor::GetDoorChanged ( )

Definition at line 1895 of file elevatordoor.cpp.

References door_changed.

Referenced by SBS::DoorComponent::MoveDoors().

◆ GetDoorWrapper()

DoorWrapper * SBS::ElevatorDoor::GetDoorWrapper ( )

Definition at line 1577 of file elevatordoor.cpp.

References Doors.

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

◆ GetHoldStatus()

bool SBS::ElevatorDoor::GetHoldStatus ( )

Definition at line 1795 of file elevatordoor.cpp.

References AreDoorsMoving(), AreDoorsOpen(), and TimerIsRunning().

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

Here is the call graph for this function:

◆ GetIndex()

int SBS::ElevatorDoor::GetIndex ( int floor)
private

◆ GetManualIndex()

int SBS::ElevatorDoor::GetManualIndex ( int floor)

Definition at line 1595 of file elevatordoor.cpp.

References ManualFloors.

Referenced by CloseDoors(), MoveDoors(), and OpenDoors().

◆ GetNudgeStatus()

bool SBS::ElevatorDoor::GetNudgeStatus ( )

◆ GetNumberText()

std::string SBS::ElevatorDoor::GetNumberText ( )

Definition at line 1845 of file elevatordoor.cpp.

References car, Number, SBS::ElevatorCar::NumDoors, and SBS::ToString().

Referenced by CloseDoors(), EnableNudgeMode(), EnableSensor(), FinishDoors(), Hold(), MoveDoors(), OpenDoors(), Reset(), and StopDoors().

Here is the call graph for this function:

◆ GetPreviousOpen()

bool SBS::ElevatorDoor::GetPreviousOpen ( )

Definition at line 1900 of file elevatordoor.cpp.

References previous_open.

Referenced by SBS::DoorComponent::MoveDoors().

◆ GetSensorStatus()

bool SBS::ElevatorDoor::GetSensorStatus ( bool persistent = true)

◆ GetShaftDoorAltitude()

Real SBS::ElevatorDoor::GetShaftDoorAltitude ( int floor)

Definition at line 1510 of file elevatordoor.cpp.

References GetIndex(), SBS::Object::GetPosition(), index, ShaftDoors, and SBS::DoorWrapper::voffset.

Here is the call graph for this function:

◆ GetShaftDoorWrapper()

DoorWrapper * SBS::ElevatorDoor::GetShaftDoorWrapper ( int floor)

Definition at line 1583 of file elevatordoor.cpp.

References GetIndex(), index, and ShaftDoors.

Here is the call graph for this function:

◆ GetWhichDoors()

int SBS::ElevatorDoor::GetWhichDoors ( )

Definition at line 1504 of file elevatordoor.cpp.

References WhichDoors.

Referenced by SBS::DoorWrapper::OnHit().

◆ Hold()

void SBS::ElevatorDoor::Hold ( bool sensor = false)

◆ IsEnabled()

bool SBS::ElevatorDoor::IsEnabled ( )

Definition at line 1498 of file elevatordoor.cpp.

References Doors, and SBS::DoorWrapper::IsEnabled.

◆ IsSensorBlocked()

bool SBS::ElevatorDoor::IsSensorBlocked ( )

Definition at line 1785 of file elevatordoor.cpp.

References SBS::Trigger::IsInside(), and sensor.

Referenced by MoveDoors().

Here is the call graph for this function:

◆ Loop()

void SBS::ElevatorDoor::Loop ( )
virtual

Reimplemented from SBS::Object.

Definition at line 1475 of file elevatordoor.cpp.

References SBS::SBS::GetPower(), MoveDoors(), nudgesound, OpenDoor, SBS::ObjectBase::sbs, SBS_PROFILE, and SBS::Sound::Stop().

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

Here is the call graph for this function:

◆ MoveDoors()

void SBS::ElevatorDoor::MoveDoors ( bool open,
bool manual )
private

◆ MoveSound()

void SBS::ElevatorDoor::MoveSound ( const Vector3 & position,
bool relative_x,
bool relative_y,
bool relative_z )

Definition at line 1527 of file elevatordoor.cpp.

References Doors, doorsound, SBS::Object::GetPosition(), SBS::DoorWrapper::Height, nudgesound, and SBS::Object::SetPosition().

Here is the call graph for this function:

◆ OpenDoors()

◆ OpenDoorsEmergency()

void SBS::ElevatorDoor::OpenDoorsEmergency ( int whichdoors = 1,
int floor = 0 )

Definition at line 260 of file elevatordoor.cpp.

References OpenDoors().

Here is the call graph for this function:

◆ RemoveServicedFloor()

void SBS::ElevatorDoor::RemoveServicedFloor ( int floor)

Definition at line 241 of file elevatordoor.cpp.

References ShaftDoors.

◆ RemoveShaftDoor()

void SBS::ElevatorDoor::RemoveShaftDoor ( DoorWrapper * door)

Definition at line 1880 of file elevatordoor.cpp.

References ShaftDoors.

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

◆ Reset()

void SBS::ElevatorDoor::Reset ( bool sensor = false)

◆ ResetNudgeTimer()

void SBS::ElevatorDoor::ResetNudgeTimer ( bool start = true)

◆ ResetState()

void SBS::ElevatorDoor::ResetState ( )
virtual

Reimplemented from SBS::Object.

Definition at line 1856 of file elevatordoor.cpp.

References door_changed, DoorIsRunning, Doors, doors_stopped, EnableNudgeMode(), nudgetimer, OpenDoor, SBS::DoorWrapper::ResetState(), ShaftDoors, SBS::TimerObject::Stop(), timer, and WhichDoors.

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

Here is the call graph for this function:

◆ SetShaftDoors()

void SBS::ElevatorDoor::SetShaftDoors ( Real thickness,
Real CenterX,
Real CenterZ )

Definition at line 1246 of file elevatordoor.cpp.

References ShaftDoorOrigin, and ShaftDoorThickness.

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

◆ ShaftDoorsEnabled()

void SBS::ElevatorDoor::ShaftDoorsEnabled ( int floor,
bool value )

Definition at line 1258 of file elevatordoor.cpp.

References elev, GetIndex(), SBS::Elevator::GetShaft(), SBS::Shaft::GetShowFull(), index, SBS_PROFILE, ShaftDoors, and ShaftDoorsExist().

Referenced by SBS::ElevatorCar::ShaftDoorsEnabled(), and ShaftDoorsEnabledRange().

Here is the call graph for this function:

◆ ShaftDoorsEnabledRange()

void SBS::ElevatorDoor::ShaftDoorsEnabledRange ( int floor,
int range )

Definition at line 1281 of file elevatordoor.cpp.

References elev, SBS::Elevator::GetShaft(), SBS::Shaft::GetShowFull(), SBS::IsEven(), SBS_PROFILE, and ShaftDoorsEnabled().

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

Here is the call graph for this function:

◆ ShaftDoorsExist()

bool SBS::ElevatorDoor::ShaftDoorsExist ( int floor,
bool include_nonserviced = false )

Definition at line 1547 of file elevatordoor.cpp.

References GetIndex(), index, and ShaftDoors.

Referenced by AreShaftDoorsOpen(), CloseDoors(), MoveDoors(), OpenDoors(), ShaftDoorsEnabled(), and SBS::ElevatorCar::ShaftDoorsExist().

Here is the call graph for this function:

◆ StopDoors()

◆ TimerIsRunning()

bool SBS::ElevatorDoor::TimerIsRunning ( )

Definition at line 1464 of file elevatordoor.cpp.

References SBS::TimerObject::IsRunning(), and timer.

Referenced by GetHoldStatus(), and SBS::ElevatorCar::Loop().

Here is the call graph for this function:

Member Data Documentation

◆ car

◆ chime

Sound* SBS::ElevatorDoor::chime
private

Definition at line 143 of file elevatordoor.h.

Referenced by Chime(), ElevatorDoor(), FinishDoors(), and ~ElevatorDoor().

◆ chimesound_loaded

int SBS::ElevatorDoor::chimesound_loaded
private

Definition at line 156 of file elevatordoor.h.

Referenced by Chime(), and ElevatorDoor().

◆ CloseSound

std::string SBS::ElevatorDoor::CloseSound

◆ door_changed

bool SBS::ElevatorDoor::door_changed
private

◆ DoorDirection

◆ DoorIsRunning

bool SBS::ElevatorDoor::DoorIsRunning
private

Definition at line 148 of file elevatordoor.h.

Referenced by CloseDoors(), ElevatorDoor(), MoveDoors(), OpenDoors(), ResetState(), and StopDoors().

◆ Doors

◆ doors_stopped

bool SBS::ElevatorDoor::doors_stopped
private

◆ doorsound

Sound* SBS::ElevatorDoor::doorsound
private

Definition at line 142 of file elevatordoor.h.

Referenced by ElevatorDoor(), FinishDoors(), MoveDoors(), MoveSound(), and ~ElevatorDoor().

◆ DoorTimer

◆ DownChimeSound

std::string SBS::ElevatorDoor::DownChimeSound

◆ earlychime

Sound* SBS::ElevatorDoor::earlychime
private

Definition at line 144 of file elevatordoor.h.

Referenced by EarlyChime(), ElevatorDoor(), FinishDoors(), and ~ElevatorDoor().

◆ earlychimesound_loaded

int SBS::ElevatorDoor::earlychimesound_loaded
private

Definition at line 157 of file elevatordoor.h.

Referenced by EarlyChime(), and ElevatorDoor().

◆ EarlyDownChimeSound

std::string SBS::ElevatorDoor::EarlyDownChimeSound

◆ EarlyDownSet

bool SBS::ElevatorDoor::EarlyDownSet

◆ EarlyUpChimeSound

std::string SBS::ElevatorDoor::EarlyUpChimeSound

◆ EarlyUpSet

bool SBS::ElevatorDoor::EarlyUpSet

◆ elev

◆ index

◆ ManualFloors

std::vector<int> SBS::ElevatorDoor::ManualFloors
private

Definition at line 128 of file elevatordoor.h.

Referenced by FinishDoors(), and GetManualIndex().

◆ ManualSpeed

◆ nudge_enabled

bool SBS::ElevatorDoor::nudge_enabled
private

Definition at line 154 of file elevatordoor.h.

Referenced by ElevatorDoor(), EnableNudgeMode(), and GetNudgeStatus().

◆ NudgeSound

std::string SBS::ElevatorDoor::NudgeSound

◆ nudgesound

Sound* SBS::ElevatorDoor::nudgesound
private

◆ nudgesound_loaded

bool SBS::ElevatorDoor::nudgesound_loaded
private

Definition at line 155 of file elevatordoor.h.

Referenced by ElevatorDoor(), and EnableNudgeMode().

◆ NudgeTimer

◆ nudgetimer

Timer* SBS::ElevatorDoor::nudgetimer
private

Definition at line 139 of file elevatordoor.h.

Referenced by ElevatorDoor(), ResetNudgeTimer(), ResetState(), and ~ElevatorDoor().

◆ Number

◆ OpenDoor

◆ OpenSound

std::string SBS::ElevatorDoor::OpenSound

◆ OpenSpeed

◆ previous_open

bool SBS::ElevatorDoor::previous_open
private

Definition at line 150 of file elevatordoor.h.

Referenced by ElevatorDoor(), GetPreviousOpen(), and MoveDoors().

◆ quick_close

bool SBS::ElevatorDoor::quick_close
private

Definition at line 152 of file elevatordoor.h.

Referenced by CloseDoors(), ElevatorDoor(), and Reset().

◆ QuickClose

◆ reset_action

Action* SBS::ElevatorDoor::reset_action
private

Definition at line 164 of file elevatordoor.h.

Referenced by CreateSensor(), ElevatorDoor(), and ~ElevatorDoor().

◆ sensor

Trigger* SBS::ElevatorDoor::sensor
private

◆ sensor_action

Action* SBS::ElevatorDoor::sensor_action
private

Definition at line 163 of file elevatordoor.h.

Referenced by CreateSensor(), ElevatorDoor(), and ~ElevatorDoor().

◆ sensor_enabled

bool SBS::ElevatorDoor::sensor_enabled
private

Definition at line 158 of file elevatordoor.h.

Referenced by ElevatorDoor(), EnableSensor(), and GetSensorStatus().

◆ sensor_status

bool SBS::ElevatorDoor::sensor_status
private

Definition at line 159 of file elevatordoor.h.

Referenced by ElevatorDoor(), EnableSensor(), and GetSensorStatus().

◆ SensorSound

std::string SBS::ElevatorDoor::SensorSound

◆ ShaftDoorFloor

int SBS::ElevatorDoor::ShaftDoorFloor
private

Definition at line 126 of file elevatordoor.h.

Referenced by CloseDoors(), ElevatorDoor(), MoveDoors(), OpenDoors(), and StopDoors().

◆ ShaftDoorOrigin

Vector3 SBS::ElevatorDoor::ShaftDoorOrigin

◆ ShaftDoors

◆ ShaftDoorThickness

Real SBS::ElevatorDoor::ShaftDoorThickness

Definition at line 52 of file elevatordoor.h.

Referenced by AddShaftDoor(), AddShaftDoors(), ElevatorDoor(), and SetShaftDoors().

◆ SlowSpeed

◆ timer

Timer* SBS::ElevatorDoor::timer
private

◆ UpChimeSound

std::string SBS::ElevatorDoor::UpChimeSound

◆ WhichDoors

int SBS::ElevatorDoor::WhichDoors
private

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