Skyscraper 2.0
SBS::DoorComponent Struct Reference

#include <doorsystem.h>

Collaboration diagram for SBS::DoorComponent:

Public Member Functions

 DoorComponent (const std::string &doorname, DoorWrapper *Wrapper, const std::string &direction, bool OpenClockwise, Real OpenSpeed, Real CloseSpeed, DynamicMesh *dynmesh)
 
 ~DoorComponent ()
 
void MoveDoors (bool open, bool manual)
 
void RotateDoors (bool open)
 
void Move ()
 
void Reset (bool open)
 

Public Attributes

MeshObjectmesh
 
int direction
 
Real open_speed
 
Real close_speed
 
Real active_speed
 
Real openchange
 
std::string name
 
DoorWrapperwrapper
 
Real marker1
 
Real marker2
 
int door_section
 
Real stopping_distance
 
Real temp_change
 
bool accelerating
 
bool is_open
 
bool finished
 
Vector3 extents_min
 
Vector3 extents_max
 
bool sign_changed
 
Real old_difference
 
Real offset
 
bool recheck_difference
 
bool reversed
 
Real rotation
 
bool Clockwise
 

Detailed Description

Definition at line 32 of file doorsystem.h.

Constructor & Destructor Documentation

◆ DoorComponent()

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

◆ ~DoorComponent()

SBS::DoorComponent::~DoorComponent ( )

Definition at line 86 of file doorsystem.cpp.

References mesh.

Member Function Documentation

◆ Move()

void SBS::DoorComponent::Move ( )

◆ MoveDoors()

◆ Reset()

◆ RotateDoors()

void SBS::DoorComponent::RotateDoors ( bool open)

Member Data Documentation

◆ accelerating

bool SBS::DoorComponent::accelerating

Definition at line 54 of file doorsystem.h.

Referenced by DoorComponent(), MoveDoors(), and Reset().

◆ active_speed

Real SBS::DoorComponent::active_speed

Definition at line 45 of file doorsystem.h.

Referenced by DoorComponent(), Move(), MoveDoors(), and Reset().

◆ Clockwise

bool SBS::DoorComponent::Clockwise

Definition at line 65 of file doorsystem.h.

Referenced by DoorComponent(), and RotateDoors().

◆ close_speed

Real SBS::DoorComponent::close_speed

Definition at line 44 of file doorsystem.h.

Referenced by DoorComponent(), MoveDoors(), and RotateDoors().

◆ direction

int SBS::DoorComponent::direction

Definition at line 42 of file doorsystem.h.

Referenced by DoorComponent(), Move(), MoveDoors(), and Reset().

◆ door_section

int SBS::DoorComponent::door_section

Definition at line 51 of file doorsystem.h.

Referenced by DoorComponent(), MoveDoors(), and Reset().

◆ extents_max

Vector3 SBS::DoorComponent::extents_max

◆ extents_min

Vector3 SBS::DoorComponent::extents_min

◆ finished

bool SBS::DoorComponent::finished

Definition at line 56 of file doorsystem.h.

Referenced by DoorComponent(), MoveDoors(), Reset(), and RotateDoors().

◆ is_open

bool SBS::DoorComponent::is_open

Definition at line 55 of file doorsystem.h.

Referenced by DoorComponent(), Reset(), and RotateDoors().

◆ marker1

Real SBS::DoorComponent::marker1

Definition at line 49 of file doorsystem.h.

Referenced by DoorComponent(), MoveDoors(), and Reset().

◆ marker2

Real SBS::DoorComponent::marker2

Definition at line 50 of file doorsystem.h.

Referenced by DoorComponent(), MoveDoors(), and Reset().

◆ mesh

◆ name

std::string SBS::DoorComponent::name

Definition at line 47 of file doorsystem.h.

Referenced by DoorComponent().

◆ offset

Real SBS::DoorComponent::offset

Definition at line 61 of file doorsystem.h.

Referenced by DoorComponent(), MoveDoors(), and Reset().

◆ old_difference

Real SBS::DoorComponent::old_difference

Definition at line 60 of file doorsystem.h.

Referenced by DoorComponent(), MoveDoors(), and Reset().

◆ open_speed

Real SBS::DoorComponent::open_speed

Definition at line 43 of file doorsystem.h.

Referenced by DoorComponent(), MoveDoors(), and RotateDoors().

◆ openchange

Real SBS::DoorComponent::openchange

Definition at line 46 of file doorsystem.h.

Referenced by DoorComponent(), MoveDoors(), and Reset().

◆ recheck_difference

bool SBS::DoorComponent::recheck_difference

Definition at line 62 of file doorsystem.h.

Referenced by DoorComponent(), MoveDoors(), and Reset().

◆ reversed

bool SBS::DoorComponent::reversed

Definition at line 63 of file doorsystem.h.

Referenced by DoorComponent(), MoveDoors(), and Reset().

◆ rotation

Real SBS::DoorComponent::rotation

Definition at line 64 of file doorsystem.h.

Referenced by DoorComponent(), and RotateDoors().

◆ sign_changed

bool SBS::DoorComponent::sign_changed

Definition at line 59 of file doorsystem.h.

Referenced by DoorComponent(), MoveDoors(), and Reset().

◆ stopping_distance

Real SBS::DoorComponent::stopping_distance

Definition at line 52 of file doorsystem.h.

Referenced by DoorComponent(), MoveDoors(), and Reset().

◆ temp_change

Real SBS::DoorComponent::temp_change

Definition at line 53 of file doorsystem.h.

Referenced by DoorComponent(), and Reset().

◆ wrapper

DoorWrapper* SBS::DoorComponent::wrapper

Definition at line 48 of file doorsystem.h.

Referenced by DoorComponent(), Move(), MoveDoors(), Reset(), and RotateDoors().


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