Skyscraper 2.0
|
#include <directional.h>
Classes | |
class | Timer |
Public Member Functions | |
DirectionalIndicator (Object *parent, int elevator, int car, int floor, 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) | |
~DirectionalIndicator () | |
void | Enabled (bool value) |
void | UpLight (bool value) |
void | DownLight (bool value) |
void | SetLights (int up, int down) |
bool | IsEnabled () |
void | Off () |
void | Loop () |
![]() | |
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) |
Object * | GetChild (int index) |
int | GetChildrenCount () |
void | RemoveChild (Object *object) |
SceneNode * | GetSceneNode () |
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) |
virtual void | OnInit () |
void | RegisterLoop (Object *object) |
void | UnregisterLoop (Object *object) |
std::string | GetNameBase () |
template<typename T > | |
bool | IsType () |
template<typename T > | |
T * | ConvertTo () |
![]() | |
ObjectBase (Object *parent) | |
virtual | ~ObjectBase () |
Object * | GetParent () |
SBS * | GetRoot () |
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 | elevator |
int | car |
int | floor |
int | blink |
std::string | Direction |
std::string | UpTextureUnlit |
std::string | UpTextureLit |
std::string | DownTextureUnlit |
std::string | DownTextureLit |
bool | UpStatus |
bool | DownStatus |
bool | Single |
bool | Vertical |
bool | ActiveDirection |
![]() | |
std::string | command |
std::string | command_processed |
std::string | context |
int | linenum |
std::string | includefile |
bool | parent_deleting |
Private Attributes | |
MeshObject * | DirectionalMeshBack |
MeshObject * | DirectionalMeshUp |
MeshObject * | DirectionalMeshDown |
MeshObject * | DirectionalMesh |
bool | is_enabled |
Timer * | timer |
Timer * | blink_timer |
int | timer_interval |
int | blink_interval |
bool | blink_active |
Additional Inherited Members | |
![]() | |
void | EnableLoop (bool value) |
void | LoopChildren () |
bool | SelfDestruct () |
![]() | |
SBS * | sbs |
Definition at line 29 of file directional.h.
SBS::DirectionalIndicator::DirectionalIndicator | ( | Object * | parent, |
int | elevator, | ||
int | car, | ||
int | floor, | ||
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 56 of file directional.cpp.
References ActiveDirection, SBS::SBS::AddWallMain(), blink, blink_active, blink_interval, blink_timer, car, SBS::MeshObject::CreateWallObject(), Direction, DirectionalMesh, DirectionalMeshBack, DirectionalMeshDown, DirectionalMeshUp, DownStatus, DownTextureLit, DownTextureUnlit, SBS::SBS::DrawWalls(), elevator, SBS::TextureManager::EnableLighting(), SBS::Object::EnableLoop(), floor, SBS::ElevatorCar::GetBottomFloor(), SBS::Elevator::GetCar(), SBS::SBS::GetConfigFloat(), SBS::SBS::GetConfigInt(), SBS::SBS::GetElevator(), SBS::SBS::GetFloor(), SBS::SBS::GetTextureManager(), SBS::ElevatorCar::GetTopFloor(), SBS::Object::GetType(), is_enabled, SBS::Object::Move(), SBS::TextureManager::ResetTextureMapping(), SBS::SBS::ResetWalls(), SBS::ObjectBase::sbs, SBS::SetCase(), SBS::ObjectBase::SetName(), SBS::Object::SetValues(), Single, timer, timer_interval, SBS::ToString(), SBS::TrimString(), UpStatus, UpTextureLit, UpTextureUnlit, and Vertical.
SBS::DirectionalIndicator::~DirectionalIndicator | ( | ) |
Definition at line 342 of file directional.cpp.
References blink_timer, DirectionalMesh, DirectionalMeshBack, DirectionalMeshDown, DirectionalMeshUp, SBS::SBS::FastDelete, SBS::ObjectBase::GetParent(), SBS::Object::GetType(), SBS::Object::parent_deleting, SBS::ObjectBase::sbs, and timer.
void SBS::DirectionalIndicator::DownLight | ( | bool | value | ) |
Definition at line 451 of file directional.cpp.
References SBS::Elevator::AutoDoors, car, DownStatus, elevator, floor, SBS::Elevator::GetCar(), SBS::SBS::GetElevator(), SBS::ObjectBase::sbs, SetLights(), SBS::ElevatorCar::ShaftDoorsExist(), Single, SBS::TimerObject::Start(), SBS::TimerObject::Stop(), timer, timer_interval, and UpStatus.
Referenced by SBS::DirectionalIndicator::Timer::Notify(), SBS::Floor::SetDirectionalIndicators(), SBS::Floor::UpdateDirectionalIndicators(), and SBS::Floor::UpdateDirectionalIndicators().
|
virtual |
Reimplemented from SBS::Object.
Definition at line 398 of file directional.cpp.
References DirectionalMesh, DirectionalMeshBack, DirectionalMeshDown, DirectionalMeshUp, SBS::MeshObject::Enabled(), and is_enabled.
|
inline |
Definition at line 55 of file directional.h.
|
virtual |
Reimplemented from SBS::Object.
Definition at line 580 of file directional.cpp.
References SBS::SBS::GetPower(), Off(), and SBS::ObjectBase::sbs.
void SBS::DirectionalIndicator::Off | ( | ) |
Definition at line 573 of file directional.cpp.
References SetLights().
Referenced by Loop().
void SBS::DirectionalIndicator::SetLights | ( | int | up, |
int | down ) |
Definition at line 486 of file directional.cpp.
References blink, blink_active, SBS::DirectionalIndicator::Timer::blink_count, SBS::DirectionalIndicator::Timer::blink_down, blink_interval, blink_timer, SBS::DirectionalIndicator::Timer::blink_up, SBS::MeshObject::ChangeTexture(), DirectionalMesh, DirectionalMeshDown, DirectionalMeshUp, DownStatus, DownTextureLit, DownTextureUnlit, Single, SBS::TimerObject::Start(), UpStatus, UpTextureLit, and UpTextureUnlit.
Referenced by DownLight(), Off(), and UpLight().
void SBS::DirectionalIndicator::UpLight | ( | bool | value | ) |
Definition at line 416 of file directional.cpp.
References SBS::Elevator::AutoDoors, car, DownStatus, elevator, floor, SBS::Elevator::GetCar(), SBS::SBS::GetElevator(), SBS::ObjectBase::sbs, SetLights(), SBS::ElevatorCar::ShaftDoorsExist(), Single, SBS::TimerObject::Start(), SBS::TimerObject::Stop(), timer, timer_interval, and UpStatus.
Referenced by SBS::DirectionalIndicator::Timer::Notify(), SBS::Floor::SetDirectionalIndicators(), SBS::Floor::UpdateDirectionalIndicators(), and SBS::Floor::UpdateDirectionalIndicators().
bool SBS::DirectionalIndicator::ActiveDirection |
Definition at line 46 of file directional.h.
Referenced by DirectionalIndicator(), SBS::Floor::SetDirectionalIndicators(), SBS::Floor::UpdateDirectionalIndicators(), and SBS::Floor::UpdateDirectionalIndicators().
int SBS::DirectionalIndicator::blink |
Definition at line 36 of file directional.h.
Referenced by DirectionalIndicator(), and SetLights().
|
private |
Definition at line 73 of file directional.h.
Referenced by DirectionalIndicator(), SBS::DirectionalIndicator::Timer::Notify(), and SetLights().
|
private |
Definition at line 72 of file directional.h.
Referenced by DirectionalIndicator(), and SetLights().
|
private |
Definition at line 70 of file directional.h.
Referenced by DirectionalIndicator(), SetLights(), and ~DirectionalIndicator().
int SBS::DirectionalIndicator::car |
Definition at line 34 of file directional.h.
Referenced by DirectionalIndicator(), DownLight(), SBS::Floor::SetDirectionalIndicators(), and UpLight().
std::string SBS::DirectionalIndicator::Direction |
Definition at line 37 of file directional.h.
Referenced by DirectionalIndicator().
|
private |
Definition at line 63 of file directional.h.
Referenced by DirectionalIndicator(), Enabled(), SetLights(), and ~DirectionalIndicator().
|
private |
Definition at line 60 of file directional.h.
Referenced by DirectionalIndicator(), Enabled(), and ~DirectionalIndicator().
|
private |
Definition at line 62 of file directional.h.
Referenced by DirectionalIndicator(), Enabled(), SetLights(), and ~DirectionalIndicator().
|
private |
Definition at line 61 of file directional.h.
Referenced by DirectionalIndicator(), Enabled(), SetLights(), and ~DirectionalIndicator().
bool SBS::DirectionalIndicator::DownStatus |
Definition at line 43 of file directional.h.
Referenced by DirectionalIndicator(), DownLight(), SBS::DirectionalIndicator::Timer::Notify(), SetLights(), and UpLight().
std::string SBS::DirectionalIndicator::DownTextureLit |
Definition at line 41 of file directional.h.
Referenced by DirectionalIndicator(), and SetLights().
std::string SBS::DirectionalIndicator::DownTextureUnlit |
Definition at line 40 of file directional.h.
Referenced by DirectionalIndicator(), and SetLights().
int SBS::DirectionalIndicator::elevator |
Definition at line 33 of file directional.h.
Referenced by DirectionalIndicator(), DownLight(), SBS::Floor::SetDirectionalIndicators(), SBS::Floor::UpdateDirectionalIndicators(), SBS::Floor::UpdateDirectionalIndicators(), and UpLight().
int SBS::DirectionalIndicator::floor |
Definition at line 35 of file directional.h.
Referenced by DirectionalIndicator(), DownLight(), and UpLight().
|
private |
Definition at line 65 of file directional.h.
Referenced by DirectionalIndicator(), and Enabled().
bool SBS::DirectionalIndicator::Single |
Definition at line 44 of file directional.h.
Referenced by DirectionalIndicator(), DownLight(), SetLights(), and UpLight().
|
private |
Definition at line 69 of file directional.h.
Referenced by DirectionalIndicator(), DownLight(), UpLight(), and ~DirectionalIndicator().
|
private |
Definition at line 71 of file directional.h.
Referenced by DirectionalIndicator(), DownLight(), and UpLight().
bool SBS::DirectionalIndicator::UpStatus |
Definition at line 42 of file directional.h.
Referenced by DirectionalIndicator(), DownLight(), SBS::DirectionalIndicator::Timer::Notify(), SetLights(), and UpLight().
std::string SBS::DirectionalIndicator::UpTextureLit |
Definition at line 39 of file directional.h.
Referenced by DirectionalIndicator(), and SetLights().
std::string SBS::DirectionalIndicator::UpTextureUnlit |
Definition at line 38 of file directional.h.
Referenced by DirectionalIndicator(), and SetLights().
bool SBS::DirectionalIndicator::Vertical |
Definition at line 45 of file directional.h.
Referenced by DirectionalIndicator().