Skyscraper 2.0
|
#include <manager.h>
Classes | |
struct | Map |
Public Member Functions | |
StairwellManager (Object *parent) | |
~StairwellManager () | |
Stairwell * | Create (int number, Real CenterX, Real CenterZ, int _startfloor, int _endfloor) |
int | GetCount () |
Stairwell * | Get (int number) |
Stairwell * | GetIndex (int index) |
void | Remove (Stairwell *stairs) |
void | EnableAll (bool value) |
void | Loop () |
![]() | |
Manager (Object *parent) | |
virtual | ~Manager () |
![]() | |
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) |
virtual void | Enabled (bool value) |
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) |
Private Attributes | |
std::vector< Map > | Array |
Stairwell * | get_result |
int | get_number |
Additional Inherited Members | |
![]() | |
std::string | command |
std::string | command_processed |
std::string | context |
int | linenum |
std::string | includefile |
bool | parent_deleting |
![]() | |
void | EnableLoop (bool value) |
void | LoopChildren () |
bool | SelfDestruct () |
![]() | |
SBS * | sbs |
SBS::StairwellManager::StairwellManager | ( | Object * | parent | ) |
Definition at line 544 of file manager.cpp.
References SBS::Object::EnableLoop(), get_number, get_result, and SBS::Object::SetValues().
SBS::StairwellManager::~StairwellManager | ( | ) |
Definition at line 554 of file manager.cpp.
References Array.
Stairwell * SBS::StairwellManager::Create | ( | int | number, |
Real | CenterX, | ||
Real | CenterZ, | ||
int | _startfloor, | ||
int | _endfloor ) |
Definition at line 568 of file manager.cpp.
References Array, SBS::SBS::IsValidFloor(), SBS::StairwellManager::Map::number, SBS::StairwellManager::Map::object, SBS::ObjectBase::ReportError(), SBS::ObjectBase::sbs, and SBS::ToString().
void SBS::StairwellManager::EnableAll | ( | bool | value | ) |
Definition at line 684 of file manager.cpp.
References Array, and SBS::Stairwell::EnableWhole().
Stairwell * SBS::StairwellManager::Get | ( | int | number | ) |
Definition at line 614 of file manager.cpp.
References Array, get_number, get_result, and GetCount().
|
virtual |
Implements SBS::Manager.
Definition at line 608 of file manager.cpp.
References Array.
Referenced by Get().
Stairwell * SBS::StairwellManager::GetIndex | ( | int | index | ) |
Definition at line 659 of file manager.cpp.
References Array.
|
virtual |
Implements SBS::Manager.
Definition at line 691 of file manager.cpp.
References SBS::Object::LoopChildren(), and SBS_PROFILE.
void SBS::StairwellManager::Remove | ( | Stairwell * | stairs | ) |
Definition at line 667 of file manager.cpp.
References Array, get_number, and get_result.
|
private |
Definition at line 149 of file manager.h.
Referenced by Create(), EnableAll(), Get(), GetCount(), GetIndex(), Remove(), and ~StairwellManager().
|
private |
Definition at line 153 of file manager.h.
Referenced by Get(), Remove(), and StairwellManager().
|
private |
Definition at line 152 of file manager.h.
Referenced by Get(), Remove(), and StairwellManager().