|
HoverRace
2.0
|
The options and settings for a single game session. More...
#include <Rules.h>
Public Member Functions | |
| Rules (std::shared_ptr< const Rulebook > rulebook=std::shared_ptr< const Rulebook >()) | |
| const Model::GameOptions & | GetGameOpts () const |
| int | GetLaps () const |
| std::shared_ptr< const Rulebook > | GetRulebook () const |
| luabind::object & | GetRules () |
| Retrieve the the Lua view of the rules. More... | |
| std::shared_ptr< const Model::TrackEntry > | GetTrackEntry () const |
| void | SetGameOpts (const Model::GameOptions &gameOpts) |
| void | SetLaps (int laps) |
| void | SetRulebook (std::shared_ptr< const Rulebook > rulebook) |
| Set the rulebook and reset the rules to their defaults. More... | |
| void | SetTrackEntry (std::shared_ptr< const Model::TrackEntry > trackEntry) |
Private Attributes | |
| Model::GameOptions | gameOpts |
| std::shared_ptr< const Rulebook > | rulebook |
| luabind::object | rules |
| std::shared_ptr< const Model::TrackEntry > | trackEntry |
The options and settings for a single game session.
| HoverRace::Client::Rules::Rules | ( | std::shared_ptr< const Rulebook > | rulebook = std::shared_ptr<const Rulebook>() | ) |
|
inline |
|
inline |
|
inline |
|
inline |
Retrieve the the Lua view of the rules.
|
inline |
|
inline |
|
inline |
| void HoverRace::Client::Rules::SetRulebook | ( | std::shared_ptr< const Rulebook > | rulebook | ) |
Set the rulebook and reset the rules to their defaults.
| rulebook | The rulebook (may be nullptr). |
|
inline |
|
private |
|
private |
|
private |
|
private |
1.8.11