Skyscraper 2.0
SBS::ElevatorCar Class Reference

#include <elevatorcar.h>

Inheritance diagram for SBS::ElevatorCar:
Collaboration diagram for SBS::ElevatorCar:

Classes

class  KeypadTimer
 

Public Member Functions

 ElevatorCar (Elevator *parent, int number)
 
 ~ElevatorCar ()
 
bool CreateCar (int floor)
 
ElevatorGetElevator ()
 
void Report (const std::string &message)
 
bool ReportError (const std::string &message)
 
WallAddWall (const std::string &name, const std::string &texture, Real thickness, Real x1, Real z1, Real x2, Real z2, Real height1, Real height2, Real voffset1, Real voffset2, Real tw, Real th)
 
WallAddFloor (const std::string &name, const std::string &texture, Real thickness, Real x1, Real z1, Real x2, Real z2, Real voffset1, Real voffset2, bool reverse_axis, bool texture_direction, Real tw, Real th, bool legacy_behavior=false)
 
FloorIndicatorAddFloorIndicator (const std::string &texture_prefix, const std::string &blank_texture, const std::string &direction, Real CenterX, Real CenterZ, Real width, Real height, Real voffset)
 
IndicatorAddKeypadIndicator (const std::string &sound, const std::string &texture_prefix, const std::string &blank_texture, const std::string &direction, Real CenterX, Real CenterZ, Real width, Real height, Real voffset, Real timer_duration)
 
ButtonPanelCreateButtonPanel (const std::string &texture, int rows, int columns, const std::string &direction, Real CenterX, Real CenterZ, Real width, Real height, Real voffset, Real spacingX, Real spacingY, Real tw, Real th)
 
void DumpServicedFloors ()
 
bool AddServicedFloor (int number, bool create_shaft_door=true)
 
void RemoveServicedFloor (int number, bool remove_shaft_door=true)
 
bool IsServicedFloor (int floor, bool report=true)
 
int GetFloorIndex (int floor)
 
int GetServicedFloorCount ()
 
int GetServicedFloor (int index)
 
bool CheckServicedFloors ()
 
void Alarm ()
 
void OpenHatch ()
 
void OnInit ()
 
void Loop ()
 
void Enabled (bool value)
 
void EnableObjects (bool value)
 
void UpdateFloorIndicators ()
 
int GetTopFloor ()
 
int GetBottomFloor ()
 
void AddDirectionalIndicators (bool relative, bool active_direction, bool single, bool vertical, const std::string &BackTexture, const std::string &uptexture, const std::string &uptexture_lit, const std::string &downtexture, const std::string &downtexture_lit, Real CenterX, Real CenterZ, Real voffset, const std::string &direction, Real BackWidth, Real BackHeight, bool ShowBack, Real tw, Real th)
 
DirectionalIndicatorAddDirectionalIndicator (bool active_direction, bool single, bool vertical, const std::string &BackTexture, const std::string &uptexture, const std::string &uptexture_lit, const std::string &downtexture, const std::string &downtexture_lit, Real CenterX, Real CenterZ, Real voffset, const std::string &direction, Real BackWidth, Real BackHeight, bool ShowBack, Real tw, Real th)
 
void SetDirectionalIndicators (int floor, bool UpLight, bool DownLight)
 
void UpdateDirectionalIndicators ()
 
void EnableDirectionalIndicators (bool value)
 
ElevatorDoorGetDoor (int number)
 
bool OpenDoorsEmergency (int number=0, int whichdoors=1, int floor=0, bool hold=false)
 
void CloseDoorsEmergency (int number=0, int whichdoors=1, int floor=0, bool hold=false)
 
bool OpenDoors (int number=0, int whichdoors=1, int floor=0, bool manual=false, bool hold=false)
 
void CloseDoors (int number=0, int whichdoors=1, int floor=0, bool manual=false, bool hold=false)
 
void StopDoors (int number=0)
 
void HoldDoors (int number=0, bool sensor=false)
 
void ShaftDoorsEnabled (int number, int floor, bool value)
 
void ShaftDoorsEnabledRange (int number, int floor, int range)
 
bool AreDoorsOpen (int number=0)
 
bool AreShaftDoorsOpen (int number, int floor)
 
bool AreShaftDoorsClosed (bool skip_current_floor=false)
 
void ResetDoors (int number=0, bool sensor=false)
 
bool DoorsStopped (int number=0)
 
DoorWrapperAddDoors (int number, 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 (int number, const std::string &lefttexture, const std::string &righttexture, Real thickness, Real CenterX, Real CenterZ, Real voffset, Real tw, Real th)
 
DoorWrapperAddShaftDoor (int floor, int number, const std::string &lefttexture, const std::string &righttexture, Real tw, Real th)
 
DoorWrapperAddShaftDoor (int floor, int number, const std::string &lefttexture, const std::string &righttexture, Real thickness, Real CenterX, Real CenterZ, Real voffset, Real tw, Real th)
 
void Chime (int number, int floor, bool direction, bool early=false)
 
void EnableDoors (bool value)
 
bool AddFloorSigns (int door_number, bool relative, const std::string &texture_prefix, const std::string &direction, Real CenterX, Real CenterZ, Real width, Real height, Real voffset)
 
int AreDoorsMoving (int number=0, bool car_doors=true, bool shaft_doors=true)
 
bool AreDoorsOpening (int number=0, bool car_doors=true, bool shaft_doors=true)
 
bool AreDoorsClosing (int number=0, bool car_doors=true, bool shaft_doors=true)
 
void SetShaftDoors (int number, Real thickness, Real CenterX, Real CenterZ)
 
bool DoorExists (int number)
 
bool ShaftDoorsExist (int number, int floor, bool include_nonserviced=false)
 
SoundAddSound (const std::string &name, const std::string &filename, Vector3 position, bool loop=true, Real volume=1.0, int speed=100, Real min_distance=1.0, Real max_distance=-1.0, Real doppler_level=0.0, Real cone_inside_angle=360, Real cone_outside_angle=360, Real cone_outside_volume=1.0, Vector3 direction=Vector3(0, 0, 0))
 
ReverbAddReverb (const std::string &name, const std::string &type, const Vector3 &position, Real min_distance, Real max_distance)
 
DoorWrapperAddDoorComponent (int number, 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 number, 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 (int number, 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 (int number, bool DoorWalls=true, bool TrackWalls=true)
 
DoorWrapperFinishShaftDoor (int number, int floor, bool DoorWalls=true, bool TrackWalls=true)
 
bool FinishShaftDoors (int number, bool DoorWalls=true, bool TrackWalls=true)
 
ButtonPanelGetPanel (int index)
 
ControlGetFloorButton (int floor)
 
DoorAddDoor (std::string name, const std::string &open_sound, const std::string &close_sound, bool open_state, const std::string &texture, const std::string &side_texture, Real thickness, const std::string &face_direction, const std::string &open_direction, bool rotate, Real open_speed, Real close_speed, Real CenterX, Real CenterZ, Real width, Real height, Real voffset, Real tw, Real th, Real side_tw, Real side_th)
 
DoorCreateDoor (std::string name, const std::string &open_sound, const std::string &close_sound, bool rotate)
 
DoorGetDoor (const std::string &name)
 
DoorGetStdDoor (int number)
 
void RemovePanel (ButtonPanel *panel)
 
void RemoveDirectionalIndicator (DirectionalIndicator *indicator)
 
void RemoveElevatorDoor (ElevatorDoor *door)
 
void RemoveFloorIndicator (FloorIndicator *indicator)
 
void RemoveDoor (Door *door)
 
void RemoveSound (Sound *sound)
 
void RemoveReverb ()
 
void RemoveLight (Light *light)
 
void RemoveModel (Model *model)
 
void RemovePrimitive (Primitive *prim)
 
void RemoveCustomObject (CustomObject *object)
 
void RemoveControl (Control *control)
 
void RemoveTrigger (Trigger *trigger)
 
bool IsNudgeModeActive (int number=0)
 
void EnableNudgeMode (bool value, int number=0)
 
LightAddLight (const std::string &name, int type)
 
LightGetLight (const std::string &name)
 
ModelAddModel (const std::string &name, const std::string &filename, bool center, Vector3 position, Vector3 rotation, Real max_render_distance=0, Real scale_multiplier=1, bool enable_physics=false, Real restitution=0, Real friction=0, Real mass=0)
 
void AddModel (Model *model)
 
PrimitiveAddPrimitive (const std::string &name)
 
void AddPrimitive (Primitive *primitive)
 
CustomObjectAddCustomObject (const std::string &name, const Vector3 &position, const Vector3 &rotation, Real max_render_distance=0, Real scale_multiplier=1)
 
void AddCustomObject (CustomObject *object)
 
void AddDisplayFloor (int floor)
 
ControlAddControl (const std::string &name, const std::string &sound, const std::string &direction, Real CenterX, Real CenterZ, Real width, Real height, Real voffset, int selection_position, std::vector< std::string > &action_names, std::vector< std::string > &textures)
 
TriggerAddTrigger (const std::string &name, const std::string &sound_file, Vector3 &area_min, Vector3 &area_max, std::vector< std::string > &action_names)
 
bool ReplaceTexture (const std::string &oldtexture, const std::string &newtexture)
 
std::vector< Sound * > GetSound (const std::string &name)
 
ReverbGetReverb ()
 
void ResetLights ()
 
void ChangeLight (int floor, bool value)
 
void EnableSensor (bool value, int number=0)
 
bool GetSensorStatus (int number=0)
 
std::string GetFloorDisplay ()
 
bool GetHoldStatus (int number=0)
 
void ResetNudgeTimer (bool start=true, int number=0)
 
void ResetDoorState (int number=0)
 
ModelGetModel (std::string name)
 
PrimitiveGetPrimitive (std::string name)
 
CustomObjectGetCustomObject (std::string name)
 
void SetBeepSound (const std::string &filename)
 
void SetFloorSound (const std::string &prefix)
 
void SetMessageSound (bool type, bool direction, const std::string &filename)
 
void SetMusic (const std::string &filename)
 
bool PlayFloorBeep ()
 
bool PlayFloorSound ()
 
bool PlayMessageSound (bool type)
 
Real SetHeight ()
 
bool IsInCar (const Vector3 &position, bool camera=false)
 
bool Check (Vector3 &position)
 
void StopCarSound ()
 
int GetFloor ()
 
bool OnTopFloor ()
 
bool OnBottomFloor ()
 
bool InCar ()
 
int GetNearestServicedFloor ()
 
Real GetDestinationAltitude (int floor)
 
Real GetDestinationOffset (int floor)
 
void SetFloor (int floor, bool move_parent=true)
 
bool IsLeveled ()
 
bool IsOnFloor (int floor, bool leveled=true)
 
void NotifyArrival (int floor, bool early=false, int direction=0)
 
bool IndependentServiceActive ()
 
bool IndependentServiceOnOtherCar ()
 
int FirePhase2Active ()
 
bool FirePhase2OnOtherCar ()
 
void SetControls (const std::string &action_name)
 
void FlashIndicators (bool value)
 
CameraTextureAddCameraTexture (const std::string &name, int quality, Real fov, const Vector3 &position, bool use_rotation, const Vector3 &rotation)
 
void RemoveCameraTexture (CameraTexture *camtex)
 
bool RespondingToCall (int floor, int direction)
 
int RespondingToCall (int floor)
 
bool AddElevatorIDSigns (int door_number, bool relative, const std::string &texture_prefix, const std::string &direction, Real CenterX, Real CenterZ, Real width, Real height, Real voffset)
 
bool Input (const std::string &text)
 
void ProcessCache ()
 
- 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::vector< int > ServicedFloors
 
int NumDoors
 
Real Height
 
bool HeightSet
 
bool Fan
 
Vector3 MusicPosition
 
std::vector< int > DisplayFloors
 
bool ControlPressActive
 
bool IsEnabled
 
std::string UpStartSound
 
std::string DownStartSound
 
std::string UpMoveSound
 
std::string DownMoveSound
 
std::string UpStopSound
 
std::string DownStopSound
 
std::string IdleSound
 
std::string AlarmSound
 
std::string AlarmSoundStop
 
std::string BeepSound
 
std::string FloorSound
 
std::string UpMessageSound
 
std::string DownMessageSound
 
std::string OpenMessageSound
 
std::string CloseMessageSound
 
std::string MusicUp
 
std::string MusicDown
 
std::string EmergencyStopSound
 
bool AlarmActive
 
bool UseFloorBeeps
 
bool UseFloorSounds
 
bool UseDirMessageSounds
 
bool UseDoorMessageSounds
 
bool MessageOnMove
 
bool MessageOnStart
 
bool MessageOnClose
 
bool MusicOn
 
bool MusicOnMove
 
bool MusicAlwaysOn
 
bool AutoEnable
 
Real CameraOffset
 
int StartingFloor
 
bool Created
 
int Offset
 
bool GotoFloor
 
int LateDirection
 
MeshObjectMesh
 
std::vector< std::string > InvalidInput
 
Real TimerDelay
 
- 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 PlayStartingSounds ()
 
void PlayStoppingSounds (bool emergency=false)
 
void PlayMovingSounds ()
 
void UpdateKeypadIndicator (const std::string &text, bool play_sound=true)
 
void KeypadError (bool type=0)
 
bool GetFloorFromID (const std::string &floor, int &result)
 
void Requested (int floor)
 

Private Attributes

Elevatorparent
 
Soundcarsound
 
Soundidlesound
 
Soundalarm
 
Soundfloorbeep
 
std::vector< Sound * > sounds
 
Soundannouncesnd
 
Soundmusicsound
 
Reverbreverb
 
std::vector< DirectionalIndicator * > DirIndicatorArray
 
std::vector< ElevatorDoor * > DoorArray
 
std::vector< FloorIndicator * > FloorIndicatorArray
 
std::vector< ButtonPanel * > PanelArray
 
std::vector< Door * > StdDoorArray
 
std::vector< Light * > lights
 
std::vector< Model * > ModelArray
 
std::vector< Primitive * > PrimArray
 
std::vector< CustomObject * > CustomObjectArray
 
std::vector< Control * > ControlArray
 
std::vector< Trigger * > TriggerArray
 
std::vector< CameraTexture * > CameraTextureArray
 
int CurrentFloor
 
bool DirMessageSound
 
bool DoorMessageSound
 
ElevatorDoorlastdoor_result
 
int lastdoor_number
 
bool FirstRun
 
int lastfloor
 
bool lastfloorset
 
int last_music_direction
 
int doorhold_direction
 
int doorhold_whichdoors
 
int doorhold_floor
 
bool doorhold_manual
 
Vector3 lastposition
 
bool lastcheckresult
 
bool checkfirstrun
 
std::string InputCache
 
Indicatorindicator
 
KeypadTimerkeypad_timer
 

Friends

class Elevator
 

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 31 of file elevatorcar.h.

Constructor & Destructor Documentation

◆ ElevatorCar()

◆ ~ElevatorCar()

Member Function Documentation

◆ AddCameraTexture()

CameraTexture * SBS::ElevatorCar::AddCameraTexture ( const std::string & name,
int quality,
Real fov,
const Vector3 & position,
bool use_rotation,
const Vector3 & rotation )

Definition at line 3521 of file elevatorcar.cpp.

References CameraTextureArray.

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

◆ AddControl()

Control * SBS::ElevatorCar::AddControl ( const std::string & name,
const std::string & sound,
const std::string & direction,
Real CenterX,
Real CenterZ,
Real width,
Real height,
Real voffset,
int selection_position,
std::vector< std::string > & action_names,
std::vector< std::string > & textures )

Definition at line 2562 of file elevatorcar.cpp.

References ControlArray, and SBS::Object::Move().

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

Here is the call graph for this function:

◆ AddCustomObject() [1/2]

CustomObject * SBS::ElevatorCar::AddCustomObject ( const std::string & name,
const Vector3 & position,
const Vector3 & rotation,
Real max_render_distance = 0,
Real scale_multiplier = 1 )

Definition at line 2495 of file elevatorcar.cpp.

References CustomObjectArray.

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

◆ AddCustomObject() [2/2]

void SBS::ElevatorCar::AddCustomObject ( CustomObject * object)

Definition at line 2503 of file elevatorcar.cpp.

References CustomObjectArray.

◆ AddDirectionalIndicator()

DirectionalIndicator * SBS::ElevatorCar::AddDirectionalIndicator ( bool active_direction,
bool single,
bool vertical,
const std::string & BackTexture,
const std::string & uptexture,
const std::string & uptexture_lit,
const std::string & downtexture,
const std::string & downtexture_lit,
Real CenterX,
Real CenterZ,
Real voffset,
const std::string & direction,
Real BackWidth,
Real BackHeight,
bool ShowBack,
Real tw,
Real th )

Definition at line 1136 of file elevatorcar.cpp.

References DirIndicatorArray, indicator, SBS::Elevator::Number, Number, parent, Report(), SBS::ObjectBase::sbs, and SBS::SBS::Verbose.

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

Here is the call graph for this function:

◆ AddDirectionalIndicators()

void SBS::ElevatorCar::AddDirectionalIndicators ( bool relative,
bool active_direction,
bool single,
bool vertical,
const std::string & BackTexture,
const std::string & uptexture,
const std::string & uptexture_lit,
const std::string & downtexture,
const std::string & downtexture_lit,
Real CenterX,
Real CenterZ,
Real voffset,
const std::string & direction,
Real BackWidth,
Real BackHeight,
bool ShowBack,
Real tw,
Real th )

◆ AddDisplayFloor()

void SBS::ElevatorCar::AddDisplayFloor ( int floor)

Definition at line 2519 of file elevatorcar.cpp.

References DisplayFloors.

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

◆ AddDoor()

Door * SBS::ElevatorCar::AddDoor ( std::string name,
const std::string & open_sound,
const std::string & close_sound,
bool open_state,
const std::string & texture,
const std::string & side_texture,
Real thickness,
const std::string & face_direction,
const std::string & open_direction,
bool rotate,
Real open_speed,
Real close_speed,
Real CenterX,
Real CenterZ,
Real width,
Real height,
Real voffset,
Real tw,
Real th,
Real side_tw,
Real side_th )

Definition at line 2116 of file elevatorcar.cpp.

References SBS::Door::CreateDoor(), StdDoorArray, and SBS::ToString().

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

Here is the call graph for this function:

◆ AddDoorComponent()

DoorWrapper * SBS::ElevatorCar::AddDoorComponent ( int number,
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 1999 of file elevatorcar.cpp.

References SBS::ElevatorDoor::AddDoorComponent(), GetDoor(), ReportError(), and SBS::ToString().

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

Here is the call graph for this function:

◆ AddDoors()

DoorWrapper * SBS::ElevatorCar::AddDoors ( int number,
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 1519 of file elevatorcar.cpp.

References SBS::ElevatorDoor::AddDoors(), GetDoor(), ReportError(), and SBS::ToString().

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

Here is the call graph for this function:

◆ AddElevatorIDSigns()

bool SBS::ElevatorCar::AddElevatorIDSigns ( int door_number,
bool relative,
const std::string & texture_prefix,
const std::string & direction,
Real CenterX,
Real CenterZ,
Real width,
Real height,
Real voffset )

◆ AddFloor()

Wall * SBS::ElevatorCar::AddFloor ( const std::string & name,
const std::string & texture,
Real thickness,
Real x1,
Real z1,
Real x2,
Real z2,
Real voffset1,
Real voffset2,
bool reverse_axis,
bool texture_direction,
Real tw,
Real th,
bool legacy_behavior = false )

Definition at line 495 of file elevatorcar.cpp.

References SBS::SBS::AddFloorMain(), SBS::MeshObject::CreateWallObject(), Mesh, and SBS::ObjectBase::sbs.

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

Here is the call graph for this function:

◆ AddFloorIndicator()

FloorIndicator * SBS::ElevatorCar::AddFloorIndicator ( const std::string & texture_prefix,
const std::string & blank_texture,
const std::string & direction,
Real CenterX,
Real CenterZ,
Real width,
Real height,
Real voffset )

◆ AddFloorSigns()

bool SBS::ElevatorCar::AddFloorSigns ( int door_number,
bool relative,
const std::string & texture_prefix,
const std::string & direction,
Real CenterX,
Real CenterZ,
Real width,
Real height,
Real voffset )

◆ AddKeypadIndicator()

Indicator * SBS::ElevatorCar::AddKeypadIndicator ( const std::string & sound,
const std::string & texture_prefix,
const std::string & blank_texture,
const std::string & direction,
Real CenterX,
Real CenterZ,
Real width,
Real height,
Real voffset,
Real timer_duration )

Definition at line 3576 of file elevatorcar.cpp.

References indicator.

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

◆ AddLight()

Light * SBS::ElevatorCar::AddLight ( const std::string & name,
int type )

Definition at line 2422 of file elevatorcar.cpp.

References SBS::Light::Enabled(), and lights.

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

Here is the call graph for this function:

◆ AddModel() [1/2]

Model * SBS::ElevatorCar::AddModel ( const std::string & name,
const std::string & filename,
bool center,
Vector3 position,
Vector3 rotation,
Real max_render_distance = 0,
Real scale_multiplier = 1,
bool enable_physics = false,
Real restitution = 0,
Real friction = 0,
Real mass = 0 )

◆ AddModel() [2/2]

void SBS::ElevatorCar::AddModel ( Model * model)

Definition at line 2455 of file elevatorcar.cpp.

References ModelArray.

◆ AddPrimitive() [1/2]

Primitive * SBS::ElevatorCar::AddPrimitive ( const std::string & name)

Definition at line 2471 of file elevatorcar.cpp.

References PrimArray.

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

◆ AddPrimitive() [2/2]

void SBS::ElevatorCar::AddPrimitive ( Primitive * primitive)

Definition at line 2479 of file elevatorcar.cpp.

References PrimArray.

◆ AddReverb()

Reverb * SBS::ElevatorCar::AddReverb ( const std::string & name,
const std::string & type,
const Vector3 & position,
Real min_distance,
Real max_distance )

Definition at line 3836 of file elevatorcar.cpp.

References reverb.

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

◆ AddServicedFloor()

◆ AddShaftDoor() [1/2]

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

Definition at line 1557 of file elevatorcar.cpp.

References SBS::ElevatorDoor::AddShaftDoor(), GetDoor(), and IsServicedFloor().

Here is the call graph for this function:

◆ AddShaftDoor() [2/2]

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

Definition at line 1546 of file elevatorcar.cpp.

References SBS::ElevatorDoor::AddShaftDoor(), GetDoor(), and IsServicedFloor().

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

Here is the call graph for this function:

◆ AddShaftDoorComponent()

DoorWrapper * SBS::ElevatorCar::AddShaftDoorComponent ( int number,
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 )

Definition at line 2010 of file elevatorcar.cpp.

References SBS::ElevatorDoor::AddShaftDoorComponent(), GetDoor(), and IsServicedFloor().

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

Here is the call graph for this function:

◆ AddShaftDoors()

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

Definition at line 1531 of file elevatorcar.cpp.

References SBS::ElevatorDoor::AddShaftDoors(), GetDoor(), Report(), ReportError(), and SBS::ToString().

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

Here is the call graph for this function:

◆ AddShaftDoorsComponent()

void SBS::ElevatorCar::AddShaftDoorsComponent ( int number,
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 2020 of file elevatorcar.cpp.

References SBS::ElevatorDoor::AddShaftDoorsComponent(), GetDoor(), Report(), ReportError(), and SBS::ToString().

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

Here is the call graph for this function:

◆ AddSound()

Sound * SBS::ElevatorCar::AddSound ( const std::string & name,
const std::string & filename,
Vector3 position,
bool loop = true,
Real volume = 1.0,
int speed = 100,
Real min_distance = 1.0,
Real max_distance = -1.0,
Real doppler_level = 0.0,
Real cone_inside_angle = 360,
Real cone_outside_angle = 360,
Real cone_outside_volume = 1.0,
Vector3 direction = Vector3(0, 0, 0) )

◆ AddTrigger()

Trigger * SBS::ElevatorCar::AddTrigger ( const std::string & name,
const std::string & sound_file,
Vector3 & area_min,
Vector3 & area_max,
std::vector< std::string > & action_names )

Definition at line 2572 of file elevatorcar.cpp.

References TriggerArray.

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

◆ AddWall()

Wall * SBS::ElevatorCar::AddWall ( const std::string & name,
const std::string & texture,
Real thickness,
Real x1,
Real z1,
Real x2,
Real z2,
Real height1,
Real height2,
Real voffset1,
Real voffset2,
Real tw,
Real th )

Definition at line 486 of file elevatorcar.cpp.

References SBS::SBS::AddWallMain(), SBS::MeshObject::CreateWallObject(), Mesh, and SBS::ObjectBase::sbs.

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

Here is the call graph for this function:

◆ Alarm()

void SBS::ElevatorCar::Alarm ( )

◆ AreDoorsClosing()

bool SBS::ElevatorCar::AreDoorsClosing ( int number = 0,
bool car_doors = true,
bool shaft_doors = true )

Definition at line 1798 of file elevatorcar.cpp.

References AreDoorsMoving().

Referenced by PlayMessageSound().

Here is the call graph for this function:

◆ AreDoorsMoving()

int SBS::ElevatorCar::AreDoorsMoving ( int number = 0,
bool car_doors = true,
bool shaft_doors = true )

◆ AreDoorsOpen()

bool SBS::ElevatorCar::AreDoorsOpen ( int number = 0)

◆ AreDoorsOpening()

bool SBS::ElevatorCar::AreDoorsOpening ( int number = 0,
bool car_doors = true,
bool shaft_doors = true )

Definition at line 1789 of file elevatorcar.cpp.

References AreDoorsMoving().

Referenced by PlayMessageSound().

Here is the call graph for this function:

◆ AreShaftDoorsClosed()

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

Definition at line 1666 of file elevatorcar.cpp.

References AreShaftDoorsClosed(), and DoorArray.

Referenced by AreShaftDoorsClosed().

Here is the call graph for this function:

◆ AreShaftDoorsOpen()

bool SBS::ElevatorCar::AreShaftDoorsOpen ( int number,
int floor )

Definition at line 1640 of file elevatorcar.cpp.

References SBS::ElevatorDoor::AreShaftDoorsOpen(), GetDoor(), NumDoors, ReportError(), SBS_PROFILE, and SBS::ToString().

Referenced by SBS::DoorWrapper::OnClick(), and SBS::Elevator::SetHoistwayAccess().

Here is the call graph for this function:

◆ ChangeLight()

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

Definition at line 1980 of file elevatorcar.cpp.

References ChangeLight(), PanelArray, Report(), SBS::ObjectBase::sbs, SBS::ToString(), and SBS::SBS::Verbose.

Referenced by ChangeLight(), and SBS::Elevator::MoveElevatorToFloor().

Here is the call graph for this function:

◆ Check()

◆ CheckServicedFloors()

bool SBS::ElevatorCar::CheckServicedFloors ( )

Definition at line 657 of file elevatorcar.cpp.

References SBS::Elevator::AssignedShaft, SBS::Elevator::GetShaft(), SBS::Shaft::IsValidFloor(), parent, ReportError(), ServicedFloors, and SBS::ToString().

Referenced by AddServicedFloor(), and CreateCar().

Here is the call graph for this function:

◆ Chime()

void SBS::ElevatorCar::Chime ( int number,
int floor,
bool direction,
bool early = false )

◆ CloseDoors()

◆ CloseDoorsEmergency()

void SBS::ElevatorCar::CloseDoorsEmergency ( int number = 0,
int whichdoors = 1,
int floor = 0,
bool hold = false )

Definition at line 1259 of file elevatorcar.cpp.

References CloseDoors().

Referenced by Skyscraper::editelevator::On_bCloseManual_Click(), and SBS::DoorWrapper::OnClick().

Here is the call graph for this function:

◆ CreateButtonPanel()

ButtonPanel * SBS::ElevatorCar::CreateButtonPanel ( const std::string & texture,
int rows,
int columns,
const std::string & direction,
Real CenterX,
Real CenterZ,
Real width,
Real height,
Real voffset,
Real spacingX,
Real spacingY,
Real tw,
Real th )

Definition at line 513 of file elevatorcar.cpp.

References PanelArray, Report(), SBS::ObjectBase::sbs, SBS::ToString(), and SBS::SBS::Verbose.

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

Here is the call graph for this function:

◆ CreateCar()

◆ CreateDoor()

Door * SBS::ElevatorCar::CreateDoor ( std::string name,
const std::string & open_sound,
const std::string & close_sound,
bool rotate )

Definition at line 2154 of file elevatorcar.cpp.

References StdDoorArray, and SBS::ToString().

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

Here is the call graph for this function:

◆ DoorExists()

bool SBS::ElevatorCar::DoorExists ( int number)

Definition at line 1906 of file elevatorcar.cpp.

References GetDoor(), and NumDoors.

Referenced by AddElevatorIDSigns(), and AddFloorSigns().

Here is the call graph for this function:

◆ DoorsStopped()

bool SBS::ElevatorCar::DoorsStopped ( int number = 0)

Definition at line 1740 of file elevatorcar.cpp.

References SBS::ElevatorDoor::DoorsStopped(), GetDoor(), NumDoors, ReportError(), and SBS::ToString().

Referenced by OpenDoors().

Here is the call graph for this function:

◆ DumpServicedFloors()

void SBS::ElevatorCar::DumpServicedFloors ( )

◆ Enabled()

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

Reimplemented from SBS::Object.

Definition at line 973 of file elevatorcar.cpp.

References SBS::MeshObject::Enabled(), EnableDirectionalIndicators(), EnableDoors(), EnableObjects(), FloorIndicatorArray, IsEnabled, Mesh, Report(), SBS::ObjectBase::sbs, and SBS::SBS::Verbose.

Referenced by EnableObjects().

Here is the call graph for this function:

◆ EnableDirectionalIndicators()

void SBS::ElevatorCar::EnableDirectionalIndicators ( bool value)

Definition at line 1206 of file elevatorcar.cpp.

References DirIndicatorArray, Report(), SBS::ObjectBase::sbs, and SBS::SBS::Verbose.

Referenced by Enabled().

Here is the call graph for this function:

◆ EnableDoors()

void SBS::ElevatorCar::EnableDoors ( bool value)

◆ EnableNudgeMode()

void SBS::ElevatorCar::EnableNudgeMode ( bool value,
int number = 0 )

◆ EnableObjects()

void SBS::ElevatorCar::EnableObjects ( bool value)

◆ EnableSensor()

void SBS::ElevatorCar::EnableSensor ( bool value,
int number = 0 )

◆ FinishDoors()

DoorWrapper * SBS::ElevatorCar::FinishDoors ( int number,
bool DoorWalls = true,
bool TrackWalls = true )

Definition at line 2033 of file elevatorcar.cpp.

References SBS::ElevatorDoor::FinishDoors(), GetDoor(), ReportError(), and SBS::ToString().

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

Here is the call graph for this function:

◆ FinishShaftDoor()

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

Definition at line 2044 of file elevatorcar.cpp.

References SBS::ElevatorDoor::FinishShaftDoor(), GetDoor(), and IsServicedFloor().

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

Here is the call graph for this function:

◆ FinishShaftDoors()

bool SBS::ElevatorCar::FinishShaftDoors ( int number,
bool DoorWalls = true,
bool TrackWalls = true )

Definition at line 2054 of file elevatorcar.cpp.

References SBS::ElevatorDoor::FinishShaftDoors(), GetDoor(), ReportError(), and SBS::ToString().

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

Here is the call graph for this function:

◆ FirePhase2Active()

int SBS::ElevatorCar::FirePhase2Active ( )

◆ FirePhase2OnOtherCar()

bool SBS::ElevatorCar::FirePhase2OnOtherCar ( )

◆ FlashIndicators()

void SBS::ElevatorCar::FlashIndicators ( bool value)

Definition at line 3509 of file elevatorcar.cpp.

References FloorIndicatorArray, SBS::SBS::GetPower(), and SBS::ObjectBase::sbs.

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

Here is the call graph for this function:

◆ GetBottomFloor()

◆ GetCustomObject()

CustomObject * SBS::ElevatorCar::GetCustomObject ( std::string name)

Definition at line 2733 of file elevatorcar.cpp.

References CustomObjectArray, SBS::ObjectBase::GetName(), SBS::SetCase(), and SBS::SetCaseCopy().

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

Here is the call graph for this function:

◆ GetDestinationAltitude()

Real SBS::ElevatorCar::GetDestinationAltitude ( int floor)

◆ GetDestinationOffset()

Real SBS::ElevatorCar::GetDestinationOffset ( int floor)

◆ GetDoor() [1/2]

Door * SBS::ElevatorCar::GetDoor ( const std::string & name)

Definition at line 2180 of file elevatorcar.cpp.

References SBS::ObjectBase::GetName(), and StdDoorArray.

Here is the call graph for this function:

◆ GetDoor() [2/2]

◆ GetElevator()

◆ GetFloor()

◆ GetFloorButton()

Control * SBS::ElevatorCar::GetFloorButton ( int floor)

Definition at line 2075 of file elevatorcar.cpp.

References PanelArray, parent, ReportError(), and SBS::Elevator::Running.

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

Here is the call graph for this function:

◆ GetFloorDisplay()

std::string SBS::ElevatorCar::GetFloorDisplay ( )

◆ GetFloorFromID()

bool SBS::ElevatorCar::GetFloorFromID ( const std::string & floor,
int & result )
private

◆ GetFloorIndex()

◆ GetHoldStatus()

bool SBS::ElevatorCar::GetHoldStatus ( int number = 0)

Definition at line 2654 of file elevatorcar.cpp.

References GetDoor(), SBS::ElevatorDoor::GetHoldStatus(), NumDoors, ReportError(), and SBS::ToString().

Here is the call graph for this function:

◆ GetLight()

Light * SBS::ElevatorCar::GetLight ( const std::string & name)

Definition at line 2432 of file elevatorcar.cpp.

References SBS::ObjectBase::GetName(), and lights.

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

Here is the call graph for this function:

◆ GetModel()

Model * SBS::ElevatorCar::GetModel ( std::string name)

Definition at line 2703 of file elevatorcar.cpp.

References SBS::ObjectBase::GetName(), ModelArray, SBS::SetCase(), and SBS::SetCaseCopy().

Referenced by Skyscraper::ScriptProcessor::Section::GetMeshObject().

Here is the call graph for this function:

◆ GetNearestServicedFloor()

int SBS::ElevatorCar::GetNearestServicedFloor ( )

◆ GetPanel()

ButtonPanel * SBS::ElevatorCar::GetPanel ( int index)

Definition at line 2065 of file elevatorcar.cpp.

References PanelArray.

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

◆ GetPrimitive()

Primitive * SBS::ElevatorCar::GetPrimitive ( std::string name)

Definition at line 2718 of file elevatorcar.cpp.

References SBS::ObjectBase::GetName(), PrimArray, SBS::SetCase(), and SBS::SetCaseCopy().

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

Here is the call graph for this function:

◆ GetReverb()

Reverb * SBS::ElevatorCar::GetReverb ( )

◆ GetSensorStatus()

bool SBS::ElevatorCar::GetSensorStatus ( int number = 0)

Definition at line 2605 of file elevatorcar.cpp.

References GetDoor(), SBS::ElevatorDoor::GetSensorStatus(), NumDoors, ReportError(), and SBS::ToString().

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

Here is the call graph for this function:

◆ GetServicedFloor()

int SBS::ElevatorCar::GetServicedFloor ( int index)

◆ GetServicedFloorCount()

int SBS::ElevatorCar::GetServicedFloorCount ( )

◆ GetSound()

std::vector< Sound * > SBS::ElevatorCar::GetSound ( const std::string & name)

Definition at line 2585 of file elevatorcar.cpp.

References SBS::SetCase(), and sounds.

Referenced by SBS::Action::Run().

Here is the call graph for this function:

◆ GetStdDoor()

Door * SBS::ElevatorCar::GetStdDoor ( int number)

Definition at line 2168 of file elevatorcar.cpp.

References StdDoorArray.

◆ GetTopFloor()

◆ HoldDoors()

void SBS::ElevatorCar::HoldDoors ( int number = 0,
bool sensor = false )

◆ InCar()

bool SBS::ElevatorCar::InCar ( )

◆ IndependentServiceActive()

bool SBS::ElevatorCar::IndependentServiceActive ( )

◆ IndependentServiceOnOtherCar()

bool SBS::ElevatorCar::IndependentServiceOnOtherCar ( )

◆ Input()

bool SBS::ElevatorCar::Input ( const std::string & text)

◆ IsInCar()

bool SBS::ElevatorCar::IsInCar ( const Vector3 & position,
bool camera = false )

Definition at line 3103 of file elevatorcar.cpp.

References CameraOffset, checkfirstrun, SBS::Object::GetPosition(), Height, SBS::MeshObject::HitBeam(), SBS::MeshObject::InBoundingBox(), IsEnabled, lastcheckresult, lastposition, and Mesh.

Referenced by Check().

Here is the call graph for this function:

◆ IsLeveled()

bool SBS::ElevatorCar::IsLeveled ( )

Definition at line 3357 of file elevatorcar.cpp.

References GetDestinationAltitude(), GetFloor(), SBS::Object::GetPosition(), and IsServicedFloor().

Referenced by SBS::Elevator::IsLeveled(), and IsOnFloor().

Here is the call graph for this function:

◆ IsNudgeModeActive()

bool SBS::ElevatorCar::IsNudgeModeActive ( int number = 0)

Definition at line 2351 of file elevatorcar.cpp.

References GetDoor(), SBS::ElevatorDoor::GetNudgeStatus(), NumDoors, ReportError(), and SBS::ToString().

Referenced by Skyscraper::editelevator::Loop(), and Skyscraper::editelevator::On_bSetNudge_Click().

Here is the call graph for this function:

◆ IsOnFloor()

bool SBS::ElevatorCar::IsOnFloor ( int floor,
bool leveled = true )

Definition at line 3375 of file elevatorcar.cpp.

References GetFloor(), IsLeveled(), SBS::Elevator::IsMoving, and parent.

Referenced by SBS::Elevator::AddRoute(), and SBS::Elevator::OnRecallFloor().

Here is the call graph for this function:

◆ IsServicedFloor()

◆ KeypadError()

void SBS::ElevatorCar::KeypadError ( bool type = 0)
private

Definition at line 3763 of file elevatorcar.cpp.

References UpdateKeypadIndicator().

Referenced by Input(), ProcessCache(), and Requested().

Here is the call graph for this function:

◆ Loop()

◆ NotifyArrival()

◆ OnBottomFloor()

bool SBS::ElevatorCar::OnBottomFloor ( )

Definition at line 3230 of file elevatorcar.cpp.

References GetBottomFloor(), and GetFloor().

Referenced by SBS::Elevator::OnBottomFloor().

Here is the call graph for this function:

◆ OnInit()

void SBS::ElevatorCar::OnInit ( )
virtual

Reimplemented from SBS::Object.

Definition at line 715 of file elevatorcar.cpp.

References Created, EnableObjects(), Number, SetFloor(), and StartingFloor.

Here is the call graph for this function:

◆ OnTopFloor()

bool SBS::ElevatorCar::OnTopFloor ( )

Definition at line 3223 of file elevatorcar.cpp.

References GetFloor(), and GetTopFloor().

Referenced by SBS::Elevator::OnTopFloor().

Here is the call graph for this function:

◆ OpenDoors()

◆ OpenDoorsEmergency()

bool SBS::ElevatorCar::OpenDoorsEmergency ( int number = 0,
int whichdoors = 1,
int floor = 0,
bool hold = false )

Definition at line 1245 of file elevatorcar.cpp.

References OpenDoors().

Referenced by Skyscraper::editelevator::On_bOpenManual_Click(), and SBS::DoorWrapper::OnClick().

Here is the call graph for this function:

◆ OpenHatch()

void SBS::ElevatorCar::OpenHatch ( )

Definition at line 708 of file elevatorcar.cpp.

References Report().

Here is the call graph for this function:

◆ PlayFloorBeep()

◆ PlayFloorSound()

◆ PlayMessageSound()

◆ PlayMovingSounds()

void SBS::ElevatorCar::PlayMovingSounds ( )
private

◆ PlayStartingSounds()

void SBS::ElevatorCar::PlayStartingSounds ( )
private

◆ PlayStoppingSounds()

◆ ProcessCache()

void SBS::ElevatorCar::ProcessCache ( )

◆ RemoveCameraTexture()

void SBS::ElevatorCar::RemoveCameraTexture ( CameraTexture * camtex)

Definition at line 3529 of file elevatorcar.cpp.

References CameraTextureArray.

◆ RemoveControl()

void SBS::ElevatorCar::RemoveControl ( Control * control)

Definition at line 2325 of file elevatorcar.cpp.

References ControlArray.

◆ RemoveCustomObject()

void SBS::ElevatorCar::RemoveCustomObject ( CustomObject * object)

Definition at line 2312 of file elevatorcar.cpp.

References CustomObjectArray.

◆ RemoveDirectionalIndicator()

void SBS::ElevatorCar::RemoveDirectionalIndicator ( DirectionalIndicator * indicator)

Definition at line 2203 of file elevatorcar.cpp.

References DirIndicatorArray, and indicator.

◆ RemoveDoor()

void SBS::ElevatorCar::RemoveDoor ( Door * door)

Definition at line 2247 of file elevatorcar.cpp.

References StdDoorArray.

◆ RemoveElevatorDoor()

void SBS::ElevatorCar::RemoveElevatorDoor ( ElevatorDoor * door)

Definition at line 2216 of file elevatorcar.cpp.

References DoorArray, lastdoor_number, lastdoor_result, and NumDoors.

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

◆ RemoveFloorIndicator()

void SBS::ElevatorCar::RemoveFloorIndicator ( FloorIndicator * indicator)

Definition at line 2234 of file elevatorcar.cpp.

References FloorIndicatorArray, and indicator.

◆ RemoveLight()

void SBS::ElevatorCar::RemoveLight ( Light * light)

Definition at line 2273 of file elevatorcar.cpp.

References lights.

◆ RemoveModel()

void SBS::ElevatorCar::RemoveModel ( Model * model)

Definition at line 2286 of file elevatorcar.cpp.

References ModelArray.

◆ RemovePanel()

void SBS::ElevatorCar::RemovePanel ( ButtonPanel * panel)

Definition at line 2190 of file elevatorcar.cpp.

References PanelArray.

◆ RemovePrimitive()

void SBS::ElevatorCar::RemovePrimitive ( Primitive * prim)

Definition at line 2299 of file elevatorcar.cpp.

References PrimArray.

◆ RemoveReverb()

void SBS::ElevatorCar::RemoveReverb ( )

Definition at line 3851 of file elevatorcar.cpp.

References reverb.

◆ RemoveServicedFloor()

void SBS::ElevatorCar::RemoveServicedFloor ( int number,
bool remove_shaft_door = true )

◆ RemoveSound()

void SBS::ElevatorCar::RemoveSound ( Sound * sound)

Definition at line 2260 of file elevatorcar.cpp.

References sounds.

◆ RemoveTrigger()

void SBS::ElevatorCar::RemoveTrigger ( Trigger * trigger)

Definition at line 2338 of file elevatorcar.cpp.

References TriggerArray.

◆ ReplaceTexture()

bool SBS::ElevatorCar::ReplaceTexture ( const std::string & oldtexture,
const std::string & newtexture )

Definition at line 2580 of file elevatorcar.cpp.

References Mesh, and SBS::MeshObject::ReplaceTexture().

Referenced by SBS::Action::Run().

Here is the call graph for this function:

◆ Report()

◆ ReportError()

◆ Requested()

◆ ResetDoors()

void SBS::ElevatorCar::ResetDoors ( int number = 0,
bool sensor = false )

Definition at line 1716 of file elevatorcar.cpp.

References GetDoor(), SBS::SBS::GetPower(), NumDoors, ReportError(), SBS::ElevatorDoor::Reset(), SBS::ObjectBase::sbs, and SBS::ToString().

Referenced by SBS::Action::Run().

Here is the call graph for this function:

◆ ResetDoorState()

void SBS::ElevatorCar::ResetDoorState ( int number = 0)

Definition at line 2679 of file elevatorcar.cpp.

References GetDoor(), SBS::SBS::GetPower(), NumDoors, ReportError(), SBS::ElevatorDoor::ResetState(), SBS::ObjectBase::sbs, and SBS::ToString().

Here is the call graph for this function:

◆ ResetLights()

void SBS::ElevatorCar::ResetLights ( )

Definition at line 1970 of file elevatorcar.cpp.

References PanelArray, Report(), SBS::ObjectBase::sbs, and SBS::SBS::Verbose.

Here is the call graph for this function:

◆ ResetNudgeTimer()

void SBS::ElevatorCar::ResetNudgeTimer ( bool start = true,
int number = 0 )

Definition at line 2400 of file elevatorcar.cpp.

References GetDoor(), NumDoors, ReportError(), SBS::ElevatorDoor::ResetNudgeTimer(), and SBS::ToString().

Referenced by SBS::Elevator::EnableFireService2(), and SBS::Elevator::EnableIndependentService().

Here is the call graph for this function:

◆ RespondingToCall() [1/2]

int SBS::ElevatorCar::RespondingToCall ( int floor)

◆ RespondingToCall() [2/2]

bool SBS::ElevatorCar::RespondingToCall ( int floor,
int direction )

◆ SetBeepSound()

void SBS::ElevatorCar::SetBeepSound ( const std::string & filename)

Definition at line 2748 of file elevatorcar.cpp.

References BeepSound, Report(), SBS::ObjectBase::sbs, SBS::TrimString(), UseFloorBeeps, and SBS::SBS::Verbose.

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

Here is the call graph for this function:

◆ SetControls()

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

Definition at line 3501 of file elevatorcar.cpp.

References PanelArray.

◆ SetDirectionalIndicators()

void SBS::ElevatorCar::SetDirectionalIndicators ( int floor,
bool UpLight,
bool DownLight )

◆ SetFloor()

void SBS::ElevatorCar::SetFloor ( int floor,
bool move_parent = true )

Definition at line 3335 of file elevatorcar.cpp.

References GetDestinationAltitude(), SBS::SBS::GetFloor(), SBS::Object::GetPosition(), SBS::Object::Move(), SBS::Elevator::MoveObjects(), parent, and SBS::ObjectBase::sbs.

Referenced by OnInit().

Here is the call graph for this function:

◆ SetFloorSound()

void SBS::ElevatorCar::SetFloorSound ( const std::string & prefix)

Definition at line 2758 of file elevatorcar.cpp.

References FloorSound, Report(), SBS::ObjectBase::sbs, SBS::TrimString(), UseFloorSounds, and SBS::SBS::Verbose.

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

Here is the call graph for this function:

◆ SetHeight()

Real SBS::ElevatorCar::SetHeight ( )

Definition at line 3079 of file elevatorcar.cpp.

References alarm, announcesnd, floorbeep, SBS::MeshObject::GetHeight(), Height, HeightSet, idlesound, Mesh, MusicPosition, musicsound, and SBS::Object::SetPositionRelative().

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

Here is the call graph for this function:

◆ SetMessageSound()

void SBS::ElevatorCar::SetMessageSound ( bool type,
bool direction,
const std::string & filename )

◆ SetMusic()

void SBS::ElevatorCar::SetMusic ( const std::string & filename)

◆ SetShaftDoors()

void SBS::ElevatorCar::SetShaftDoors ( int number,
Real thickness,
Real CenterX,
Real CenterZ )

Definition at line 1830 of file elevatorcar.cpp.

References GetDoor(), NumDoors, ReportError(), SBS::ElevatorDoor::SetShaftDoors(), and SBS::ToString().

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

Here is the call graph for this function:

◆ ShaftDoorsEnabled()

void SBS::ElevatorCar::ShaftDoorsEnabled ( int number,
int floor,
bool value )

Definition at line 1568 of file elevatorcar.cpp.

References GetDoor(), NumDoors, ReportError(), SBS_PROFILE, SBS::ElevatorDoor::ShaftDoorsEnabled(), and SBS::ToString().

Referenced by SBS::Shaft::Level::Enabled().

Here is the call graph for this function:

◆ ShaftDoorsEnabledRange()

void SBS::ElevatorCar::ShaftDoorsEnabledRange ( int number,
int floor,
int range )

Definition at line 1590 of file elevatorcar.cpp.

References GetDoor(), NumDoors, ReportError(), SBS_PROFILE, SBS::ElevatorDoor::ShaftDoorsEnabledRange(), and SBS::ToString().

Referenced by SBS::Shaft::Check().

Here is the call graph for this function:

◆ ShaftDoorsExist()

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

◆ StopCarSound()

void SBS::ElevatorCar::StopCarSound ( )

Definition at line 3200 of file elevatorcar.cpp.

References carsound, and SBS::Sound::Stop().

Here is the call graph for this function:

◆ StopDoors()

void SBS::ElevatorCar::StopDoors ( int number = 0)

◆ UpdateDirectionalIndicators()

void SBS::ElevatorCar::UpdateDirectionalIndicators ( )

Definition at line 1174 of file elevatorcar.cpp.

References SBS::Elevator::ActiveDirection, DirIndicatorArray, indicator, and parent.

◆ UpdateFloorIndicators()

void SBS::ElevatorCar::UpdateFloorIndicators ( )

Definition at line 1091 of file elevatorcar.cpp.

References FloorIndicatorArray.

Referenced by Check().

◆ UpdateKeypadIndicator()

void SBS::ElevatorCar::UpdateKeypadIndicator ( const std::string & text,
bool play_sound = true )
private

Definition at line 3586 of file elevatorcar.cpp.

References indicator, and SBS::Indicator::Update().

Referenced by Input(), KeypadError(), and Requested().

Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ Elevator

friend class Elevator
friend

Definition at line 33 of file elevatorcar.h.

Member Data Documentation

◆ alarm

Sound* SBS::ElevatorCar::alarm
private

Definition at line 252 of file elevatorcar.h.

Referenced by Alarm(), CreateCar(), ElevatorCar(), SetHeight(), and ~ElevatorCar().

◆ AlarmActive

bool SBS::ElevatorCar::AlarmActive

Definition at line 65 of file elevatorcar.h.

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

◆ AlarmSound

std::string SBS::ElevatorCar::AlarmSound

◆ AlarmSoundStop

std::string SBS::ElevatorCar::AlarmSoundStop

◆ announcesnd

Sound* SBS::ElevatorCar::announcesnd
private

◆ AutoEnable

◆ BeepSound

std::string SBS::ElevatorCar::BeepSound

Definition at line 56 of file elevatorcar.h.

Referenced by PlayFloorBeep(), and SetBeepSound().

◆ CameraOffset

Real SBS::ElevatorCar::CameraOffset

◆ CameraTextureArray

std::vector<CameraTexture*> SBS::ElevatorCar::CameraTextureArray
private

Definition at line 293 of file elevatorcar.h.

Referenced by AddCameraTexture(), RemoveCameraTexture(), and ~ElevatorCar().

◆ carsound

Sound* SBS::ElevatorCar::carsound
private

◆ checkfirstrun

bool SBS::ElevatorCar::checkfirstrun
private

Definition at line 317 of file elevatorcar.h.

Referenced by ElevatorCar(), and IsInCar().

◆ CloseMessageSound

std::string SBS::ElevatorCar::CloseMessageSound

Definition at line 61 of file elevatorcar.h.

Referenced by PlayMessageSound(), and SetMessageSound().

◆ ControlArray

std::vector<Control*> SBS::ElevatorCar::ControlArray
private

Definition at line 287 of file elevatorcar.h.

Referenced by AddControl(), EnableObjects(), RemoveControl(), and ~ElevatorCar().

◆ ControlPressActive

bool SBS::ElevatorCar::ControlPressActive

Definition at line 45 of file elevatorcar.h.

Referenced by ElevatorCar(), Loop(), OpenDoors(), and SBS::Action::Run().

◆ Created

◆ CurrentFloor

int SBS::ElevatorCar::CurrentFloor
private

◆ CustomObjectArray

std::vector<CustomObject*> SBS::ElevatorCar::CustomObjectArray
private

◆ DirIndicatorArray

◆ DirMessageSound

bool SBS::ElevatorCar::DirMessageSound
private

Definition at line 299 of file elevatorcar.h.

Referenced by ElevatorCar(), Loop(), and PlayMessageSound().

◆ DisplayFloors

std::vector<int> SBS::ElevatorCar::DisplayFloors

Definition at line 44 of file elevatorcar.h.

Referenced by AddDisplayFloor(), and GetFloorDisplay().

◆ DoorArray

std::vector<ElevatorDoor*> SBS::ElevatorCar::DoorArray
private

◆ doorhold_direction

int SBS::ElevatorCar::doorhold_direction
private

Definition at line 309 of file elevatorcar.h.

Referenced by CloseDoors(), ElevatorCar(), Loop(), and OpenDoors().

◆ doorhold_floor

int SBS::ElevatorCar::doorhold_floor
private

Definition at line 311 of file elevatorcar.h.

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

◆ doorhold_manual

bool SBS::ElevatorCar::doorhold_manual
private

Definition at line 312 of file elevatorcar.h.

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

◆ doorhold_whichdoors

int SBS::ElevatorCar::doorhold_whichdoors
private

Definition at line 310 of file elevatorcar.h.

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

◆ DoorMessageSound

bool SBS::ElevatorCar::DoorMessageSound
private

Definition at line 300 of file elevatorcar.h.

Referenced by ElevatorCar(), Loop(), and PlayMessageSound().

◆ DownMessageSound

std::string SBS::ElevatorCar::DownMessageSound

Definition at line 59 of file elevatorcar.h.

Referenced by PlayMessageSound(), and SetMessageSound().

◆ DownMoveSound

std::string SBS::ElevatorCar::DownMoveSound

◆ DownStartSound

std::string SBS::ElevatorCar::DownStartSound

◆ DownStopSound

std::string SBS::ElevatorCar::DownStopSound

◆ EmergencyStopSound

std::string SBS::ElevatorCar::EmergencyStopSound

◆ Fan

bool SBS::ElevatorCar::Fan

◆ FirstRun

bool SBS::ElevatorCar::FirstRun
private

Definition at line 303 of file elevatorcar.h.

Referenced by ElevatorCar(), and Loop().

◆ floorbeep

Sound* SBS::ElevatorCar::floorbeep
private

Definition at line 253 of file elevatorcar.h.

Referenced by CreateCar(), ElevatorCar(), PlayFloorBeep(), SetHeight(), and ~ElevatorCar().

◆ FloorIndicatorArray

std::vector<FloorIndicator*> SBS::ElevatorCar::FloorIndicatorArray
private

◆ FloorSound

std::string SBS::ElevatorCar::FloorSound

Definition at line 57 of file elevatorcar.h.

Referenced by PlayFloorSound(), and SetFloorSound().

◆ GotoFloor

◆ Height

Real SBS::ElevatorCar::Height

◆ HeightSet

bool SBS::ElevatorCar::HeightSet

Definition at line 41 of file elevatorcar.h.

Referenced by ElevatorCar(), and SetHeight().

◆ IdleSound

std::string SBS::ElevatorCar::IdleSound

◆ idlesound

Sound* SBS::ElevatorCar::idlesound
private

Definition at line 251 of file elevatorcar.h.

Referenced by CreateCar(), ElevatorCar(), Loop(), SetHeight(), and ~ElevatorCar().

◆ indicator

◆ InputCache

std::string SBS::ElevatorCar::InputCache
private

Definition at line 320 of file elevatorcar.h.

Referenced by Input(), and ProcessCache().

◆ InvalidInput

std::vector<std::string> SBS::ElevatorCar::InvalidInput

◆ IsEnabled

bool SBS::ElevatorCar::IsEnabled

Definition at line 46 of file elevatorcar.h.

Referenced by Check(), ElevatorCar(), Enabled(), IsInCar(), and Loop().

◆ keypad_timer

KeypadTimer* SBS::ElevatorCar::keypad_timer
private

Definition at line 330 of file elevatorcar.h.

Referenced by ElevatorCar(), and Input().

◆ last_music_direction

int SBS::ElevatorCar::last_music_direction
private

Definition at line 306 of file elevatorcar.h.

Referenced by ElevatorCar(), and Loop().

◆ lastcheckresult

bool SBS::ElevatorCar::lastcheckresult
private

Definition at line 316 of file elevatorcar.h.

Referenced by ElevatorCar(), and IsInCar().

◆ lastdoor_number

int SBS::ElevatorCar::lastdoor_number
private

Definition at line 302 of file elevatorcar.h.

Referenced by ElevatorCar(), GetDoor(), and RemoveElevatorDoor().

◆ lastdoor_result

ElevatorDoor* SBS::ElevatorCar::lastdoor_result
private

Definition at line 301 of file elevatorcar.h.

Referenced by ElevatorCar(), GetDoor(), and RemoveElevatorDoor().

◆ lastfloor

int SBS::ElevatorCar::lastfloor
private

Definition at line 304 of file elevatorcar.h.

Referenced by ElevatorCar(), and GetFloor().

◆ lastfloorset

bool SBS::ElevatorCar::lastfloorset
private

Definition at line 305 of file elevatorcar.h.

Referenced by ElevatorCar(), and GetFloor().

◆ lastposition

Vector3 SBS::ElevatorCar::lastposition
private

Definition at line 315 of file elevatorcar.h.

Referenced by ElevatorCar(), and IsInCar().

◆ LateDirection

int SBS::ElevatorCar::LateDirection

Definition at line 82 of file elevatorcar.h.

Referenced by ElevatorCar(), NotifyArrival(), and SBS::Elevator::SameFloorArrival().

◆ lights

std::vector<Light*> SBS::ElevatorCar::lights
private

Definition at line 275 of file elevatorcar.h.

Referenced by AddLight(), GetLight(), Loop(), RemoveLight(), and ~ElevatorCar().

◆ Mesh

◆ MessageOnClose

bool SBS::ElevatorCar::MessageOnClose

◆ MessageOnMove

bool SBS::ElevatorCar::MessageOnMove

◆ MessageOnStart

bool SBS::ElevatorCar::MessageOnStart

◆ ModelArray

std::vector<Model*> SBS::ElevatorCar::ModelArray
private

Definition at line 278 of file elevatorcar.h.

Referenced by AddModel(), AddModel(), EnableObjects(), GetModel(), RemoveModel(), and ~ElevatorCar().

◆ MusicAlwaysOn

◆ MusicDown

std::string SBS::ElevatorCar::MusicDown

◆ MusicOn

◆ MusicOnMove

◆ MusicPosition

◆ musicsound

Sound* SBS::ElevatorCar::musicsound
private

Definition at line 256 of file elevatorcar.h.

Referenced by CreateCar(), ElevatorCar(), Loop(), SetHeight(), and ~ElevatorCar().

◆ MusicUp

std::string SBS::ElevatorCar::MusicUp

◆ Name

std::string SBS::ElevatorCar::Name

◆ Number

◆ NumDoors

◆ Offset

int SBS::ElevatorCar::Offset

Definition at line 80 of file elevatorcar.h.

Referenced by CreateCar(), ElevatorCar(), and SBS::Elevator::GetFloorForCar().

◆ OpenMessageSound

std::string SBS::ElevatorCar::OpenMessageSound

Definition at line 60 of file elevatorcar.h.

Referenced by PlayMessageSound(), and SetMessageSound().

◆ PanelArray

std::vector<ButtonPanel*> SBS::ElevatorCar::PanelArray
private

◆ parent

◆ PrimArray

std::vector<Primitive*> SBS::ElevatorCar::PrimArray
private

◆ reverb

Reverb* SBS::ElevatorCar::reverb
private

◆ ServicedFloors

◆ sounds

std::vector<Sound*> SBS::ElevatorCar::sounds
private

Definition at line 254 of file elevatorcar.h.

Referenced by AddSound(), EnableObjects(), GetSound(), RemoveSound(), and ~ElevatorCar().

◆ StartingFloor

int SBS::ElevatorCar::StartingFloor

◆ StdDoorArray

std::vector<Door*> SBS::ElevatorCar::StdDoorArray
private

Definition at line 272 of file elevatorcar.h.

Referenced by AddDoor(), CreateDoor(), GetDoor(), GetStdDoor(), RemoveDoor(), and ~ElevatorCar().

◆ TimerDelay

Real SBS::ElevatorCar::TimerDelay

◆ TriggerArray

std::vector<Trigger*> SBS::ElevatorCar::TriggerArray
private

Definition at line 290 of file elevatorcar.h.

Referenced by AddTrigger(), EnableObjects(), RemoveTrigger(), and ~ElevatorCar().

◆ UpMessageSound

std::string SBS::ElevatorCar::UpMessageSound

Definition at line 58 of file elevatorcar.h.

Referenced by PlayMessageSound(), and SetMessageSound().

◆ UpMoveSound

std::string SBS::ElevatorCar::UpMoveSound

◆ UpStartSound

std::string SBS::ElevatorCar::UpStartSound

◆ UpStopSound

std::string SBS::ElevatorCar::UpStopSound

◆ UseDirMessageSounds

bool SBS::ElevatorCar::UseDirMessageSounds

◆ UseDoorMessageSounds

bool SBS::ElevatorCar::UseDoorMessageSounds

Definition at line 69 of file elevatorcar.h.

Referenced by ElevatorCar(), PlayMessageSound(), and SetMessageSound().

◆ UseFloorBeeps

bool SBS::ElevatorCar::UseFloorBeeps

◆ UseFloorSounds

bool SBS::ElevatorCar::UseFloorSounds

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