HoverRace
2.0
|
Scripting peer for access to the HUD for a player. More...
#include <HudPeer.h>
Public Member Functions | |
HudPeer (Script::Core &scripting, Display::Display &display, std::weak_ptr< Display::Hud > hud) | |
virtual | ~HudPeer () |
std::shared_ptr< Display::Chronometer > | LAddChronometer (int align, const std::string &title, std::shared_ptr< Util::Clock > clock) |
std::shared_ptr< Display::Counter > | LAddCounter_V (int align, const std::string &title, double initValue) |
std::shared_ptr< Display::Counter > | LAddCounter_VT (int align, const std::string &title, double initValue, double total) |
template<class T > | |
std::shared_ptr< T > | LAddDecor (int align) |
std::shared_ptr< Display::HudText > | LAddText (int align, const std::string &text) |
void | LClear () |
void | LUseRaceDefault () |
Public Member Functions inherited from HoverRace::Script::Peer | |
Peer (Core &scripting, const std::string &name) | |
Peer (const Peer &)=delete | |
virtual | ~Peer () |
Core & | GetScripting () const |
void | LHelp () |
void | LHelp_M (const std::string &methodName) |
Peer & | operator= (const Peer &)=delete |
Static Public Member Functions | |
static void | Register (Script::Core &scripting) |
Register this peer in an environment. More... | |
Static Public Member Functions inherited from HoverRace::Script::Peer | |
static void | Register (Core &scripting) |
Private Types | |
using | HudAlignment = Display::Hud::HudAlignment |
using | SUPER = Script::Peer |
Private Member Functions | |
HudAlignment::type | ValidateAlignment (int align) |
Convert an int into an alignment value, raising a Lua error if the the value is out of range. More... | |
Private Attributes | |
Display::Display & | display |
std::weak_ptr< Display::Hud > | hud |
Scripting peer for access to the HUD for a player.
|
private |
HoverRace::Client::HoverScript::HudPeer::HudPeer | ( | Script::Core & | scripting, |
Display::Display & | display, | ||
std::weak_ptr< Display::Hud > | hud | ||
) |
|
inlinevirtual |
std::shared_ptr< Display::Chronometer > HoverRace::Client::HoverScript::HudPeer::LAddChronometer | ( | int | align, |
const std::string & | title, | ||
std::shared_ptr< Util::Clock > | clock | ||
) |
std::shared_ptr< Display::Counter > HoverRace::Client::HoverScript::HudPeer::LAddCounter_V | ( | int | align, |
const std::string & | title, | ||
double | initValue | ||
) |
std::shared_ptr< Display::Counter > HoverRace::Client::HoverScript::HudPeer::LAddCounter_VT | ( | int | align, |
const std::string & | title, | ||
double | initValue, | ||
double | total | ||
) |
|
inline |
std::shared_ptr< Display::HudText > HoverRace::Client::HoverScript::HudPeer::LAddText | ( | int | align, |
const std::string & | text | ||
) |
void HoverRace::Client::HoverScript::HudPeer::LClear | ( | ) |
void HoverRace::Client::HoverScript::HudPeer::LUseRaceDefault | ( | ) |
|
static |
Register this peer in an environment.
scripting | The target environment. |
|
inlineprivate |
Convert an int into an alignment value, raising a Lua error if the the value is out of range.
align | The alignment value passed from Lua. |
|
private |
|
private |