Skyscraper 2.0
SBS::DoorWrapper Struct Reference

#include <doorsystem.h>

Inheritance diagram for SBS::DoorWrapper:
Collaboration diagram for SBS::DoorWrapper:

Public Member Functions

 DoorWrapper (Object *parent_obj, ElevatorDoor *door_object, bool shaftdoor, int shaftdoor_floor=0)
 
 DoorWrapper (Door *parent, bool rotate)
 
 ~DoorWrapper ()
 
DoorComponentCreateDoor (const std::string &doorname, const std::string &Direction, bool OpenClockwise, Real OpenSpeed, Real CloseSpeed, DynamicMesh *dynmesh)
 
void Enabled (bool value)
 
bool CheckDoorsOpen ()
 
bool IsFinished ()
 
void ResetFinished ()
 
void MoveDoors (bool open, bool manual=false)
 
void StopDoors ()
 
void ResetState ()
 
void OnClick (Vector3 &position, bool shift, bool ctrl, bool alt, bool right)
 
void OnHit ()
 
- 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 OnUnclick (bool right)
 
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 ()
 
virtual void Loop ()
 
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

std::vector< DoorComponent * > doors
 
std::string name
 
bool Open
 
bool IsEnabled
 
Real Width
 
Real Height
 
Real Thickness
 
ElevatorDoorparent_elevdoor
 
Doorparent_door
 
bool IsShaftDoor
 
Real Shift
 
Real voffset
 
int floor
 
bool rotate
 
- Public Attributes inherited from SBS::Object
std::string command
 
std::string command_processed
 
std::string context
 
int linenum
 
std::string includefile
 
bool parent_deleting
 

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 69 of file doorsystem.h.

Constructor & Destructor Documentation

◆ DoorWrapper() [1/2]

◆ DoorWrapper() [2/2]

SBS::DoorWrapper::DoorWrapper ( Door * parent,
bool rotate )

Definition at line 615 of file doorsystem.cpp.

References floor, SBS::ObjectBase::GetName(), Height, IsEnabled, IsShaftDoor, name, Open, parent_door, parent_elevdoor, rotate, SBS::Object::SetValues(), Shift, Thickness, voffset, and Width.

Here is the call graph for this function:

◆ ~DoorWrapper()

SBS::DoorWrapper::~DoorWrapper ( )

Definition at line 634 of file doorsystem.cpp.

References doors, SBS::Object::parent_deleting, parent_elevdoor, and SBS::ElevatorDoor::RemoveShaftDoor().

Here is the call graph for this function:

Member Function Documentation

◆ CheckDoorsOpen()

bool SBS::DoorWrapper::CheckDoorsOpen ( )

Definition at line 691 of file doorsystem.cpp.

References doors, and Open.

Referenced by SBS::Door::MoveDoor(), and SBS::ElevatorDoor::MoveDoors().

◆ CreateDoor()

DoorComponent * SBS::DoorWrapper::CreateDoor ( const std::string & doorname,
const std::string & Direction,
bool OpenClockwise,
Real OpenSpeed,
Real CloseSpeed,
DynamicMesh * dynmesh )

Definition at line 651 of file doorsystem.cpp.

References doors.

Referenced by SBS::Door::AddDoorComponent(), and SBS::ElevatorDoor::AddDoorComponent().

◆ Enabled()

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

Reimplemented from SBS::Object.

Definition at line 660 of file doorsystem.cpp.

References doors, SBS::MeshObject::Enabled(), IsEnabled, and SBS::DoorComponent::mesh.

Referenced by SBS::Door::Enabled(), SBS::ElevatorDoor::Enabled(), SBS::Floor::Enabled(), SBS::Shaft::EnableWhole(), and SBS::Stairwell::EnableWhole().

Here is the call graph for this function:

◆ IsFinished()

bool SBS::DoorWrapper::IsFinished ( )

Definition at line 710 of file doorsystem.cpp.

References doors.

Referenced by SBS::Door::MoveDoor(), and SBS::ElevatorDoor::MoveDoors().

◆ MoveDoors()

void SBS::DoorWrapper::MoveDoors ( bool open,
bool manual = false )

Definition at line 676 of file doorsystem.cpp.

References doors, and rotate.

Referenced by SBS::Door::MoveDoor(), and SBS::ElevatorDoor::MoveDoors().

◆ OnClick()

void SBS::DoorWrapper::OnClick ( Vector3 & position,
bool shift,
bool ctrl,
bool alt,
bool right )
virtual

◆ OnHit()

void SBS::DoorWrapper::OnHit ( )
virtual

◆ ResetFinished()

void SBS::DoorWrapper::ResetFinished ( )

Definition at line 726 of file doorsystem.cpp.

References doors.

Referenced by SBS::Door::Close(), SBS::ElevatorDoor::MoveDoors(), and SBS::Door::Open().

◆ ResetState()

void SBS::DoorWrapper::ResetState ( )
virtual

Reimplemented from SBS::Object.

Definition at line 751 of file doorsystem.cpp.

References doors, and Open.

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

◆ StopDoors()

void SBS::DoorWrapper::StopDoors ( )

Definition at line 737 of file doorsystem.cpp.

References doors.

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

Member Data Documentation

◆ doors

◆ floor

int SBS::DoorWrapper::floor

◆ Height

◆ IsEnabled

bool SBS::DoorWrapper::IsEnabled

Definition at line 89 of file doorsystem.h.

Referenced by DoorWrapper(), DoorWrapper(), Enabled(), and SBS::ElevatorDoor::IsEnabled().

◆ IsShaftDoor

bool SBS::DoorWrapper::IsShaftDoor

◆ name

std::string SBS::DoorWrapper::name

Definition at line 87 of file doorsystem.h.

Referenced by DoorWrapper(), and DoorWrapper().

◆ Open

◆ parent_door

Door* SBS::DoorWrapper::parent_door

◆ parent_elevdoor

◆ rotate

◆ Shift

◆ Thickness

Real SBS::DoorWrapper::Thickness

◆ voffset

◆ Width


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