RigsofRods
Soft-body Physics Simulation
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Protected Member Functions | Protected Attributes
RoR::DashBoardManager Class Reference

#include <DashBoardManager.h>

+ Collaboration diagram for RoR::DashBoardManager:

Public Member Functions

 DashBoardManager (ActorPtr actor)
 
 ~DashBoardManager (void)
 
bool _getBool (size_t key)
 
int _getInt (size_t key)
 
float _getFloat (size_t key)
 
float getNumeric (size_t key)
 
char * getChar (size_t key)
 
bool getEnabled (size_t key)
 
void setBool (size_t key, bool val)
 
void setInt (size_t key, int val)
 
void setFloat (size_t key, float val)
 
void setChar (size_t key, const char *val)
 
void setEnabled (size_t key, bool val)
 
int getDataType (size_t key)
 
int getLinkIDForName (Ogre::String &str)
 
std::string getLinkNameForID (DashData id)
 
void loadDashBoard (const std::string &filename, BitMask_t flags)
 
void update (float dt)
 
void updateFeatures ()
 
bool wasDashboardHudLoaded () const
 
bool wasDashboardRttLoaded () const
 
void setVisible (bool visibility)
 
void setVisible3d (bool visibility)
 
bool getVisible ()
 
void windowResized ()
 

Protected Member Functions

std::string determineLayoutFromDashboardMod (CacheEntryPtr &entry, std::string const &basename)
 
std::string determineTruckLayoutFromDashboardMod (Ogre::FileInfoListPtr &filelist)
 

Protected Attributes

bool visible = false
 
dashData_t data [DD_MAX]
 
std::vector< DashBoard * > m_dashboards
 
bool m_hud_loaded = false
 
bool m_rtt_loaded = false
 
ActorPtr m_actor
 

Detailed Description

Definition at line 212 of file DashBoardManager.h.

Constructor & Destructor Documentation

◆ DashBoardManager()

DashBoardManager::DashBoardManager ( ActorPtr  actor)

Definition at line 40 of file DashBoardManager.cpp.

◆ ~DashBoardManager()

DashBoardManager::~DashBoardManager ( void  )

Definition at line 144 of file DashBoardManager.cpp.

Member Function Documentation

◆ _getBool()

bool RoR::DashBoardManager::_getBool ( size_t  key)
inline

Definition at line 219 of file DashBoardManager.h.

+ Here is the caller graph for this function:

◆ _getFloat()

float RoR::DashBoardManager::_getFloat ( size_t  key)
inline

Definition at line 221 of file DashBoardManager.h.

◆ _getInt()

int RoR::DashBoardManager::_getInt ( size_t  key)
inline

Definition at line 220 of file DashBoardManager.h.

◆ determineLayoutFromDashboardMod()

std::string DashBoardManager::determineLayoutFromDashboardMod ( CacheEntryPtr entry,
std::string const &  basename 
)
protected

Definition at line 234 of file DashBoardManager.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ determineTruckLayoutFromDashboardMod()

std::string DashBoardManager::determineTruckLayoutFromDashboardMod ( Ogre::FileInfoListPtr &  filelist)
protected

Definition at line 261 of file DashBoardManager.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getChar()

char* RoR::DashBoardManager::getChar ( size_t  key)
inline

Definition at line 223 of file DashBoardManager.h.

+ Here is the caller graph for this function:

◆ getDataType()

int RoR::DashBoardManager::getDataType ( size_t  key)
inline

Definition at line 233 of file DashBoardManager.h.

◆ getEnabled()

bool RoR::DashBoardManager::getEnabled ( size_t  key)
inline

Definition at line 224 of file DashBoardManager.h.

+ Here is the caller graph for this function:

◆ getLinkIDForName()

int DashBoardManager::getLinkIDForName ( Ogre::String &  str)

Definition at line 154 of file DashBoardManager.cpp.

+ Here is the caller graph for this function:

◆ getLinkNameForID()

std::string DashBoardManager::getLinkNameForID ( DashData  id)

Definition at line 165 of file DashBoardManager.cpp.

+ Here is the caller graph for this function:

◆ getNumeric()

float DashBoardManager::getNumeric ( size_t  key)

Definition at line 428 of file DashBoardManager.cpp.

+ Here is the caller graph for this function:

◆ getVisible()

bool RoR::DashBoardManager::getVisible ( )
inline

Definition at line 248 of file DashBoardManager.h.

◆ loadDashBoard()

void DashBoardManager::loadDashBoard ( const std::string &  filename,
BitMask_t  flags 
)

Definition at line 348 of file DashBoardManager.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setBool()

void RoR::DashBoardManager::setBool ( size_t  key,
bool  val 
)
inline

Definition at line 226 of file DashBoardManager.h.

◆ setChar()

void RoR::DashBoardManager::setChar ( size_t  key,
const char *  val 
)
inline

Definition at line 229 of file DashBoardManager.h.

◆ setEnabled()

void RoR::DashBoardManager::setEnabled ( size_t  key,
bool  val 
)
inline

Definition at line 231 of file DashBoardManager.h.

◆ setFloat()

void RoR::DashBoardManager::setFloat ( size_t  key,
float  val 
)
inline

Definition at line 228 of file DashBoardManager.h.

◆ setInt()

void RoR::DashBoardManager::setInt ( size_t  key,
int  val 
)
inline

Definition at line 227 of file DashBoardManager.h.

◆ setVisible()

void DashBoardManager::setVisible ( bool  visibility)

Definition at line 442 of file DashBoardManager.cpp.

+ Here is the caller graph for this function:

◆ setVisible3d()

void DashBoardManager::setVisible3d ( bool  visibility)

Definition at line 454 of file DashBoardManager.cpp.

+ Here is the caller graph for this function:

◆ update()

void DashBoardManager::update ( float  dt)

Definition at line 412 of file DashBoardManager.cpp.

◆ updateFeatures()

void DashBoardManager::updateFeatures ( )

Definition at line 420 of file DashBoardManager.cpp.

◆ wasDashboardHudLoaded()

bool RoR::DashBoardManager::wasDashboardHudLoaded ( ) const
inline

Definition at line 243 of file DashBoardManager.h.

+ Here is the caller graph for this function:

◆ wasDashboardRttLoaded()

bool RoR::DashBoardManager::wasDashboardRttLoaded ( ) const
inline

Definition at line 244 of file DashBoardManager.h.

+ Here is the caller graph for this function:

◆ windowResized()

void DashBoardManager::windowResized ( )

Definition at line 465 of file DashBoardManager.cpp.

Field Documentation

◆ data

dashData_t RoR::DashBoardManager::data[DD_MAX]
protected

Definition at line 254 of file DashBoardManager.h.

◆ m_actor

ActorPtr RoR::DashBoardManager::m_actor
protected

Definition at line 258 of file DashBoardManager.h.

◆ m_dashboards

std::vector<DashBoard*> RoR::DashBoardManager::m_dashboards
protected

Definition at line 255 of file DashBoardManager.h.

◆ m_hud_loaded

bool RoR::DashBoardManager::m_hud_loaded = false
protected

Definition at line 256 of file DashBoardManager.h.

◆ m_rtt_loaded

bool RoR::DashBoardManager::m_rtt_loaded = false
protected

Definition at line 257 of file DashBoardManager.h.

◆ visible

bool RoR::DashBoardManager::visible = false
protected

Definition at line 253 of file DashBoardManager.h.


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