RigsofRods
Soft-body Physics Simulation
Public Member Functions | Private Attributes
RoR::RaceSystem Class Reference

#include <RaceSystem.h>

Public Member Functions

void StartRaceTimer (int id)
 
void StopRaceTimer ()
 
bool IsRaceInProgress () const
 
int GetRaceId () const
 
float GetRaceTime () const
 
void SetRaceTimeDiff (float diff)
 
float GetRaceTimeDiff () const
 
void SetRaceBestTime (float time)
 
float GetRaceBestTime () const
 
void UpdateDirectionArrow (char *text, Ogre::Vector3 position)
 
Ogre::Vector3 GetDirArrowTarget ()
 
std::string const & GetDirArrowText () const
 
bool IsDirArrowVisible () const
 

Private Attributes

bool m_dir_arrow_visible = false
 
std::string m_dir_arrow_text
 
Ogre::Vector3 m_dir_arrow_target = Ogre::Vector3::ZERO
 
int m_race_id = -1
 
float m_race_time_diff = 0.f
 
float m_race_best_time = 0.f
 
float m_race_start_time = 0.f
 

Detailed Description

Definition at line 31 of file RaceSystem.h.

Member Function Documentation

◆ GetDirArrowTarget()

Ogre::Vector3 RoR::RaceSystem::GetDirArrowTarget ( )
inline

Definition at line 47 of file RaceSystem.h.

+ Here is the caller graph for this function:

◆ GetDirArrowText()

std::string const& RoR::RaceSystem::GetDirArrowText ( ) const
inline

Definition at line 48 of file RaceSystem.h.

+ Here is the caller graph for this function:

◆ GetRaceBestTime()

float RoR::RaceSystem::GetRaceBestTime ( ) const
inline

Definition at line 44 of file RaceSystem.h.

+ Here is the caller graph for this function:

◆ GetRaceId()

int RoR::RaceSystem::GetRaceId ( ) const
inline

Definition at line 37 of file RaceSystem.h.

+ Here is the caller graph for this function:

◆ GetRaceTime()

float RaceSystem::GetRaceTime ( ) const

Definition at line 59 of file RaceSystem.cpp.

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

◆ GetRaceTimeDiff()

float RoR::RaceSystem::GetRaceTimeDiff ( ) const
inline

Definition at line 41 of file RaceSystem.h.

+ Here is the caller graph for this function:

◆ IsDirArrowVisible()

bool RoR::RaceSystem::IsDirArrowVisible ( ) const
inline

Definition at line 49 of file RaceSystem.h.

+ Here is the caller graph for this function:

◆ IsRaceInProgress()

bool RoR::RaceSystem::IsRaceInProgress ( ) const
inline

Definition at line 36 of file RaceSystem.h.

+ Here is the caller graph for this function:

◆ SetRaceBestTime()

void RoR::RaceSystem::SetRaceBestTime ( float  time)
inline

Definition at line 43 of file RaceSystem.h.

+ Here is the caller graph for this function:

◆ SetRaceTimeDiff()

void RoR::RaceSystem::SetRaceTimeDiff ( float  diff)
inline

Definition at line 40 of file RaceSystem.h.

+ Here is the caller graph for this function:

◆ StartRaceTimer()

void RaceSystem::StartRaceTimer ( int  id)

Definition at line 46 of file RaceSystem.cpp.

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

◆ StopRaceTimer()

void RaceSystem::StopRaceTimer ( )

Definition at line 53 of file RaceSystem.cpp.

+ Here is the caller graph for this function:

◆ UpdateDirectionArrow()

void RaceSystem::UpdateDirectionArrow ( char *  text,
Ogre::Vector3  position 
)

Definition at line 31 of file RaceSystem.cpp.

+ Here is the caller graph for this function:

Field Documentation

◆ m_dir_arrow_target

Ogre::Vector3 RoR::RaceSystem::m_dir_arrow_target = Ogre::Vector3::ZERO
private

Definition at line 54 of file RaceSystem.h.

◆ m_dir_arrow_text

std::string RoR::RaceSystem::m_dir_arrow_text
private

Definition at line 53 of file RaceSystem.h.

◆ m_dir_arrow_visible

bool RoR::RaceSystem::m_dir_arrow_visible = false
private

Definition at line 52 of file RaceSystem.h.

◆ m_race_best_time

float RoR::RaceSystem::m_race_best_time = 0.f
private

Definition at line 58 of file RaceSystem.h.

◆ m_race_id

int RoR::RaceSystem::m_race_id = -1
private

Definition at line 56 of file RaceSystem.h.

◆ m_race_start_time

float RoR::RaceSystem::m_race_start_time = 0.f
private

Definition at line 59 of file RaceSystem.h.

◆ m_race_time_diff

float RoR::RaceSystem::m_race_time_diff = 0.f
private

Definition at line 57 of file RaceSystem.h.


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