Skyscraper 2.0
|
#include <manager.h>
Classes | |
struct | Map |
Public Member Functions | |
FloorManager (Object *parent) | |
~FloorManager () | |
Floor * | Create (int number) |
int | GetCount () |
Floor * | Get (int number) |
Floor * | GetIndex (int index) |
Floor * | GetByID (const std::string &id) |
Floor * | GetByNumberID (const std::string &id) |
void | Remove (Floor *floor) |
void | EnableAll (bool value) |
DynamicMesh * | GetFloorDynMesh () |
DynamicMesh * | GetIFloorDynMesh () |
DynamicMesh * | GetColumnDynMesh () |
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 |
DynamicMesh * | floors |
DynamicMesh * | interfloors |
DynamicMesh * | columnframes |
Floor * | 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::FloorManager::FloorManager | ( | Object * | parent | ) |
Definition at line 45 of file manager.cpp.
References columnframes, SBS::Object::EnableLoop(), floors, get_number, get_result, SBS::Object::GetSceneNode(), interfloors, and SBS::Object::SetValues().
SBS::FloorManager::~FloorManager | ( | ) |
Definition at line 58 of file manager.cpp.
References Array, columnframes, floors, and interfloors.
Floor * SBS::FloorManager::Create | ( | int | number | ) |
Definition at line 83 of file manager.cpp.
References Array, SBS::SBS::Basements, SBS::SBS::Floors, Get(), SBS::FloorManager::Map::number, SBS::FloorManager::Map::object, and SBS::ObjectBase::sbs.
void SBS::FloorManager::EnableAll | ( | bool | value | ) |
Definition at line 233 of file manager.cpp.
References Array, columnframes, SBS::DynamicMesh::Enabled(), SBS::Floor::Enabled(), floors, and interfloors.
Floor * SBS::FloorManager::Get | ( | int | number | ) |
Definition at line 108 of file manager.cpp.
References Array, SBS::SBS::Basements, get_number, get_result, SBS::FloorManager::Map::number, SBS::FloorManager::Map::object, and SBS::ObjectBase::sbs.
Referenced by Create(), SBS::CallStation::GetFloorFromID(), and SBS::ElevatorCar::GetFloorFromID().
Floor * SBS::FloorManager::GetByID | ( | const std::string & | id | ) |
Definition at line 185 of file manager.cpp.
References Array.
Referenced by SBS::CallStation::GetFloorFromID(), and SBS::ElevatorCar::GetFloorFromID().
Floor * SBS::FloorManager::GetByNumberID | ( | const std::string & | id | ) |
Definition at line 198 of file manager.cpp.
References Array.
Referenced by SBS::CallStation::GetFloorFromID(), and SBS::ElevatorCar::GetFloorFromID().
|
inline |
Definition at line 53 of file manager.h.
Referenced by SBS::Floor::Floor().
|
virtual |
|
inline |
Definition at line 51 of file manager.h.
Referenced by SBS::Floor::Floor().
|
inline |
Definition at line 52 of file manager.h.
Referenced by SBS::Floor::Floor().
Floor * SBS::FloorManager::GetIndex | ( | int | index | ) |
Definition at line 177 of file manager.cpp.
References Array.
Referenced by Skyscraper::editelevator::SetMainValues().
|
virtual |
Implements SBS::Manager.
Definition at line 245 of file manager.cpp.
References SBS::Object::LoopChildren(), and SBS_PROFILE.
void SBS::FloorManager::Remove | ( | Floor * | floor | ) |
Definition at line 211 of file manager.cpp.
References Array, SBS::SBS::Basements, SBS::SBS::Floors, get_number, get_result, and SBS::ObjectBase::sbs.
|
private |
Definition at line 63 of file manager.h.
Referenced by Create(), EnableAll(), Get(), GetByID(), GetByNumberID(), GetCount(), GetIndex(), Remove(), and ~FloorManager().
|
private |
Definition at line 68 of file manager.h.
Referenced by EnableAll(), FloorManager(), and ~FloorManager().
|
private |
Definition at line 66 of file manager.h.
Referenced by EnableAll(), FloorManager(), and ~FloorManager().
|
private |
Definition at line 72 of file manager.h.
Referenced by FloorManager(), Get(), and Remove().
|
private |
Definition at line 71 of file manager.h.
Referenced by FloorManager(), Get(), and Remove().
|
private |
Definition at line 67 of file manager.h.
Referenced by EnableAll(), FloorManager(), and ~FloorManager().