Skyscraper 2.0
|
#include <movingwalkway.h>
Public Member Functions | |
MovingWalkway (Object *parent, const std::string &name, int run, Real speed, const std::string &sound_file, const std::string &texture, const std::string &direction, Real CenterX, Real CenterZ, Real width, Real treadsize, int num_steps, Real voffset, Real tw, Real th) | |
~MovingWalkway () | |
void | Enabled (bool value) |
void | Report (const std::string &message) |
bool | ReportError (const std::string &message) |
void | Loop () |
bool | IsEnabled () |
void | OnClick (Vector3 &position, bool shift, bool ctrl, bool alt, bool right) |
void | ResetState () |
void | SetRun (int value) |
int | GetRun () |
![]() | |
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 | OnUnclick (bool right) |
virtual void | OnHit () |
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 () |
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 () |
Public Attributes | |
Real | Speed |
![]() | |
std::string | command |
std::string | command_processed |
std::string | context |
int | linenum |
std::string | includefile |
bool | parent_deleting |
Private Member Functions | |
void | CreateSteps (const std::string &texture, const std::string &direction, Real width, Real treadsize, Real tw, Real th) |
void | MoveSteps () |
Private Attributes | |
Sound * | sound |
int | Run |
bool | is_enabled |
Vector3 | start |
Vector3 | end |
std::string | Direction |
Real | treadsize |
std::vector< Step * > | Steps |
Additional Inherited Members | |
![]() | |
void | EnableLoop (bool value) |
void | LoopChildren () |
bool | SelfDestruct () |
![]() | |
SBS * | sbs |
Definition at line 29 of file movingwalkway.h.
SBS::MovingWalkway::MovingWalkway | ( | Object * | parent, |
const std::string & | name, | ||
int | run, | ||
Real | speed, | ||
const std::string & | sound_file, | ||
const std::string & | texture, | ||
const std::string & | direction, | ||
Real | CenterX, | ||
Real | CenterZ, | ||
Real | width, | ||
Real | treadsize, | ||
int | num_steps, | ||
Real | voffset, | ||
Real | tw, | ||
Real | th ) |
Definition at line 38 of file movingwalkway.cpp.
References CreateSteps(), end, is_enabled, SBS::Sound::Load(), SBS::Object::Move(), SBS::ObjectBase::Name, SBS::Floor::Number, SBS::SBS::RegisterMovingWalkway(), SBS::ObjectBase::sbs, SBS::ObjectBase::SetName(), SetRun(), SBS::Object::SetValues(), sound, Speed, start, Steps, SBS::ToString(), and treadsize.
SBS::MovingWalkway::~MovingWalkway | ( | ) |
Definition at line 82 of file movingwalkway.cpp.
References SBS::SBS::FastDelete, SBS::ObjectBase::GetParent(), SBS::Object::GetType(), SBS::Object::parent_deleting, SBS::ObjectBase::sbs, sound, Steps, and SBS::SBS::UnregisterMovingWalkway().
|
private |
Definition at line 191 of file movingwalkway.cpp.
References SBS::SBS::AddFloorMain(), Direction, SBS::SBS::DrawWalls(), end, SBS::ObjectBase::GetName(), SBS::SBS::GetTextureManager(), SBS::ObjectBase::Name, SBS::TextureManager::ResetTextureMapping(), SBS::SBS::ResetWalls(), SBS::ObjectBase::sbs, SBS::SetCase(), SBS::SBS::SetWallOrientation(), start, Steps, SBS::ToString(), treadsize, and SBS::TrimString().
Referenced by MovingWalkway().
|
virtual |
Reimplemented from SBS::Object.
Definition at line 118 of file movingwalkway.cpp.
References Enabled(), SBS::Object::EnableLoop(), is_enabled, SBS::Sound::IsPlaying(), sound, Steps, and SBS::Sound::Stop().
Referenced by Enabled().
|
inline |
Definition at line 44 of file movingwalkway.h.
Referenced by Skyscraper::WalkwayControl::Loop(), and Skyscraper::WalkwayControl::UpdateRunState().
|
inline |
Definition at line 40 of file movingwalkway.h.
Referenced by Loop().
|
virtual |
Reimplemented from SBS::Object.
Definition at line 162 of file movingwalkway.cpp.
References SBS::SBS::GetPower(), IsEnabled(), SBS::Sound::IsPlaying(), MoveSteps(), SBS::Sound::Play(), Run, SBS::ObjectBase::sbs, SBS_PROFILE, SBS::Sound::SetLoopState(), sound, and SBS::Sound::Stop().
|
private |
Definition at line 257 of file movingwalkway.cpp.
References SBS::SBS::camera, SBS::SBS::delta, Direction, end, SBS::Camera::GetPosition(), SBS::Object::GetPosition(), Run, SBS::ObjectBase::sbs, Speed, start, Steps, and treadsize.
Referenced by Loop().
|
virtual |
Reimplemented from SBS::Object.
Definition at line 337 of file movingwalkway.cpp.
References SBS::SBS::GetPower(), Run, SBS::ObjectBase::sbs, and Steps.
|
virtual |
Reimplemented from SBS::ObjectBase.
Definition at line 150 of file movingwalkway.cpp.
References SBS::ObjectBase::GetName(), and SBS::ObjectBase::Report().
|
virtual |
Reimplemented from SBS::ObjectBase.
Definition at line 156 of file movingwalkway.cpp.
References SBS::ObjectBase::GetName(), and SBS::ObjectBase::ReportError().
|
virtual |
Reimplemented from SBS::Object.
Definition at line 363 of file movingwalkway.cpp.
void SBS::MovingWalkway::SetRun | ( | int | value | ) |
Definition at line 136 of file movingwalkway.cpp.
Referenced by MovingWalkway(), Skyscraper::WalkwayControl::On_Slider1_Scroll(), and SBS::Action::Run().
|
private |
Definition at line 51 of file movingwalkway.h.
Referenced by CreateSteps(), and MoveSteps().
|
private |
Definition at line 50 of file movingwalkway.h.
Referenced by CreateSteps(), MoveSteps(), and MovingWalkway().
|
private |
Definition at line 49 of file movingwalkway.h.
Referenced by Enabled(), and MovingWalkway().
|
private |
Definition at line 48 of file movingwalkway.h.
Referenced by Loop(), MoveSteps(), OnClick(), ResetState(), and SetRun().
|
private |
Definition at line 47 of file movingwalkway.h.
Referenced by Enabled(), Loop(), MovingWalkway(), and ~MovingWalkway().
Real SBS::MovingWalkway::Speed |
Definition at line 32 of file movingwalkway.h.
Referenced by MoveSteps(), and MovingWalkway().
|
private |
Definition at line 50 of file movingwalkway.h.
Referenced by CreateSteps(), MoveSteps(), MovingWalkway(), and ResetState().
|
private |
Definition at line 54 of file movingwalkway.h.
Referenced by CreateSteps(), Enabled(), MoveSteps(), MovingWalkway(), OnClick(), ResetState(), SetRun(), and ~MovingWalkway().
|
private |
Definition at line 52 of file movingwalkway.h.
Referenced by CreateSteps(), MoveSteps(), and MovingWalkway().