Skyscraper 2.0
SBS::ShaftManager Class Reference

#include <manager.h>

Inheritance diagram for SBS::ShaftManager:
Collaboration diagram for SBS::ShaftManager:

Classes

struct  Map
 

Public Member Functions

 ShaftManager (Object *parent)
 
 ~ShaftManager ()
 
ShaftCreate (int number, Real CenterX, Real CenterZ, int _startfloor, int _endfloor)
 
int GetCount ()
 
ShaftGet (int number)
 
ShaftGetIndex (int index)
 
void Remove (Shaft *shaft)
 
void EnableAll (bool value)
 
void Loop ()
 
- Public Member Functions inherited from SBS::Manager
 Manager (Object *parent)
 
virtual ~Manager ()
 
- 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)
 
ObjectGetChild (int index)
 
int GetChildrenCount ()
 
void RemoveChild (Object *object)
 
SceneNodeGetSceneNode ()
 
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 ()
 
- Public Member Functions inherited from SBS::ObjectBase
 ObjectBase (Object *parent)
 
virtual ~ObjectBase ()
 
ObjectGetParent ()
 
SBSGetRoot ()
 
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< MapArray
 
Shaftget_result
 
int get_number
 

Additional Inherited Members

- Public Attributes inherited from SBS::Object
std::string command
 
std::string command_processed
 
std::string context
 
int linenum
 
std::string includefile
 
bool parent_deleting
 
- Protected Member Functions inherited from SBS::Object
void EnableLoop (bool value)
 
void LoopChildren ()
 
bool SelfDestruct ()
 
- Protected Attributes inherited from SBS::ObjectBase
SBSsbs
 

Detailed Description

Definition at line 102 of file manager.h.

Constructor & Destructor Documentation

◆ ShaftManager()

SBS::ShaftManager::ShaftManager ( Object * parent)

Definition at line 389 of file manager.cpp.

References SBS::Object::EnableLoop(), get_number, get_result, and SBS::Object::SetValues().

Here is the call graph for this function:

◆ ~ShaftManager()

SBS::ShaftManager::~ShaftManager ( )

Definition at line 399 of file manager.cpp.

References Array.

Member Function Documentation

◆ Create()

Shaft * SBS::ShaftManager::Create ( int number,
Real CenterX,
Real CenterZ,
int _startfloor,
int _endfloor )

◆ EnableAll()

void SBS::ShaftManager::EnableAll ( bool value)

Definition at line 530 of file manager.cpp.

References Array, and SBS::Shaft::EnableWhole().

Here is the call graph for this function:

◆ Get()

Shaft * SBS::ShaftManager::Get ( int number)

Definition at line 460 of file manager.cpp.

References Array, get_number, get_result, and GetCount().

Here is the call graph for this function:

◆ GetCount()

int SBS::ShaftManager::GetCount ( )
virtual

Implements SBS::Manager.

Definition at line 454 of file manager.cpp.

References Array.

Referenced by Get().

◆ GetIndex()

Shaft * SBS::ShaftManager::GetIndex ( int index)

Definition at line 505 of file manager.cpp.

References Array.

◆ Loop()

void SBS::ShaftManager::Loop ( )
virtual

Implements SBS::Manager.

Definition at line 537 of file manager.cpp.

References SBS::Object::LoopChildren(), and SBS_PROFILE.

Here is the call graph for this function:

◆ Remove()

void SBS::ShaftManager::Remove ( Shaft * shaft)

Definition at line 513 of file manager.cpp.

References Array, get_number, and get_result.

Member Data Documentation

◆ Array

std::vector<Map> SBS::ShaftManager::Array
private

Definition at line 122 of file manager.h.

Referenced by Create(), EnableAll(), Get(), GetCount(), GetIndex(), Remove(), and ~ShaftManager().

◆ get_number

int SBS::ShaftManager::get_number
private

Definition at line 126 of file manager.h.

Referenced by Get(), Remove(), and ShaftManager().

◆ get_result

Shaft* SBS::ShaftManager::get_result
private

Definition at line 125 of file manager.h.

Referenced by Get(), Remove(), and ShaftManager().


The documentation for this class was generated from the following files: