|
Skyscraper 2.0
|
#include <floorindicator.h>


Classes | |
| class | Timer |
Public Member Functions | |
| FloorIndicator (Object *parent, int index, int elevator, int car, const std::string &texture_prefix, const std::string &blank_texture, const std::string &direction, Real CenterX, Real CenterZ, Real width, Real height, Real altitude) | |
| ~FloorIndicator () | |
| void | Enabled (bool value) |
| void | Update (bool blank=false) |
| bool | IsEnabled () |
| void | Flash (bool enabled) |
| void | Off () |
| void | On () |
| void | Loop () |
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) |
| 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, bool force=false) |
| virtual void | Move (Real X, Real Y, Real Z, Real speed=1.0, bool force=false) |
| virtual void | SetPosition (const Vector3 &position, bool relative=false, bool force=false) |
| virtual void | SetPosition (Real X, Real Y, Real Z, bool relative=false, bool force=false) |
| virtual void | SetPositionY (Real value, bool force=false) |
| 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 () |
Public Member Functions inherited from SBS::ObjectBase | |
| 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 | elev |
| int | car |
| std::string | Prefix |
| std::string | Blank |
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 Attributes | |
| MeshObject * | FloorIndicatorMesh |
| bool | is_enabled |
| bool | off |
| Timer * | flash_timer |
Additional Inherited Members | |
Protected Member Functions inherited from SBS::Object | |
| void | EnableLoop (bool value) |
| void | LoopChildren () |
| bool | SelfDestruct () |
Protected Attributes inherited from SBS::ObjectBase | |
| SBS * | sbs |
Definition at line 29 of file floorindicator.h.
| SBS::FloorIndicator::FloorIndicator | ( | Object * | parent, |
| int | index, | ||
| int | elevator, | ||
| int | car, | ||
| const std::string & | texture_prefix, | ||
| const std::string & | blank_texture, | ||
| const std::string & | direction, | ||
| Real | CenterX, | ||
| Real | CenterZ, | ||
| Real | width, | ||
| Real | height, | ||
| Real | altitude ) |
Definition at line 50 of file floorindicator.cpp.
References SBS::SBS::AddWallMain(), Blank, car, SBS::MeshObject::CreateWallObject(), SBS::SBS::DrawWalls(), elev, SBS::TextureManager::EnableLighting(), SBS::Object::EnableLoop(), flash_timer, FloorIndicatorMesh, SBS::Elevator::GetCar(), SBS::SBS::GetConfigFloat(), SBS::SBS::GetElevator(), SBS::SBS::GetFloor(), SBS::SBS::GetTextureManager(), SBS::Floor::ID, is_enabled, SBS::Object::Move(), off, Prefix, SBS::SBS::ResetWalls(), SBS::ObjectBase::sbs, SBS::SetCase(), SBS::ObjectBase::SetName(), SBS::Object::SetValues(), SBS::ElevatorCar::StartingFloor, and SBS::ToString().

| SBS::FloorIndicator::~FloorIndicator | ( | ) |
Definition at line 119 of file floorindicator.cpp.
References SBS::SBS::FastDelete, flash_timer, FloorIndicatorMesh, SBS::ObjectBase::GetParent(), SBS::Object::GetType(), SBS::Object::parent_deleting, and SBS::ObjectBase::sbs.

|
virtual |
Reimplemented from SBS::Object.
Definition at line 145 of file floorindicator.cpp.
References SBS::MeshObject::Enabled(), FloorIndicatorMesh, and is_enabled.

| void SBS::FloorIndicator::Flash | ( | bool | enabled | ) |
Definition at line 190 of file floorindicator.cpp.
References flash_timer, SBS::TimerObject::Start(), SBS::TimerObject::Stop(), and Update().

|
inlinevirtual |
Reimplemented from SBS::Object.
Definition at line 43 of file floorindicator.h.
|
virtual |
Reimplemented from SBS::Object.
Definition at line 238 of file floorindicator.cpp.
References SBS::SBS::GetPower(), Off(), On(), and SBS::ObjectBase::sbs.

| void SBS::FloorIndicator::Off | ( | ) |
Definition at line 216 of file floorindicator.cpp.
Referenced by Loop().

| void SBS::FloorIndicator::On | ( | ) |
Definition at line 227 of file floorindicator.cpp.
Referenced by Loop().

| void SBS::FloorIndicator::Update | ( | bool | blank = false | ) |
Definition at line 156 of file floorindicator.cpp.
References Blank, car, SBS::MeshObject::ChangeTexture(), elev, SBS::TextureManager::EnableLighting(), FloorIndicatorMesh, SBS::Elevator::GetCar(), SBS::SBS::GetElevator(), SBS::ElevatorCar::GetFloorDisplay(), SBS::SBS::GetTextureManager(), Prefix, SBS::ObjectBase::sbs, and SBS_PROFILE.
Referenced by Flash(), SBS::FloorIndicator::Timer::Notify(), Off(), On(), and SBS::Floor::UpdateFloorIndicators().

| std::string SBS::FloorIndicator::Blank |
Definition at line 36 of file floorindicator.h.
Referenced by FloorIndicator(), and Update().
| int SBS::FloorIndicator::car |
Definition at line 34 of file floorindicator.h.
Referenced by FloorIndicator(), and Update().
| int SBS::FloorIndicator::elev |
Definition at line 33 of file floorindicator.h.
Referenced by FloorIndicator(), and Update().
|
private |
Definition at line 57 of file floorindicator.h.
Referenced by Flash(), FloorIndicator(), and ~FloorIndicator().
|
private |
Definition at line 50 of file floorindicator.h.
Referenced by Enabled(), FloorIndicator(), Update(), and ~FloorIndicator().
|
private |
Definition at line 51 of file floorindicator.h.
Referenced by Enabled(), and FloorIndicator().
|
private |
Definition at line 52 of file floorindicator.h.
Referenced by FloorIndicator(), Off(), and On().
| std::string SBS::FloorIndicator::Prefix |
Definition at line 35 of file floorindicator.h.
Referenced by FloorIndicator(), and Update().