|
wavelength 1.0.0
|
Parts of the head-up display that belong to the whole game rather than to one player. More...
#include <hudcommon.h>
Public Member Functions | |
| HudCommon (RndView *pHudView, DataArray *pConfig, DataArray *pDefaults) | |
| Construct the parts the rule set and the community of the game call for. | |
| ~HudCommon () | |
| Destroy the parts. | |
| void | Poll (float fSongDelta, float fRealDelta, float fTickDelta) |
| Advance the parts. | |
| void | Draw () |
| Draw the song position, the button icons, the sections, and the stick marker. | |
| void | DrawText () |
| Draw the chat, the text message, the letterbox, and the two lines of text. | |
| void | DrawAvatar () |
| Draw the avatar of the leader. | |
| void | SetPlaying (int nPlayer, bool bPlaying) |
| Mark a player as playing or not, and show the leader avatar of the one player who plays. | |
| void | Reset () |
| Return every part to its state at the start of a song. | |
| OvyJuice & | GetJuice () |
| HudTextNode & | GetMessage () |
| HudTextNode & | GetMessage2 () |
| HudTextMessage & | GetTextMessage () |
| HudHiliteBox & | GetHilite () |
| HudLetterbox & | GetLetterbox () |
| OvySongPos * | GetSongPos () const |
| HudFlyingButton & | GetButton (int nLane) const |
| OvyController * | GetController () const |
| void | SetController (std::unique_ptr< OvyController > pController) |
| Replace the picture of the controller. | |
| OvyDialog * | GetDialog () const |
| void | SetDialog (std::unique_ptr< OvyDialog > pDialog) |
| Replace the panel of text. | |
| OvyAvatar * | GetLeaderAvatar () const |
| OvySectionPanel * | GetSections () const |
| HudStick * | GetStick () const |
| HudLetterExit * | GetLetterExit () const |
| OvyTrackLabel * | GetTrackLabel () const |
Static Public Attributes | |
| static constexpr int | kNumLanes = 6 |
| The number of lanes, one flying button icon each. | |
Parts of the head-up display that belong to the whole game rather than to one player.
The class is not polymorphic and emits no RTTI. The object is 0x250 bytes. The title is inferred. The overlay builds one and owns it.
Construct the parts the rule set and the community of the game call for.
| pHudView | The view of the head-up display layout. |
| pConfig | The configuration section of the game mode. |
| pDefaults | The section of defaults. |
| HudCommon::~HudCommon | ( | ) |
Destroy the parts.
| void HudCommon::Poll | ( | float | fSongDelta, |
| float | fRealDelta, | ||
| float | fTickDelta ) |
Advance the parts.
| fSongDelta | The song time since the last poll. |
| fRealDelta | The time since the last poll. |
| fTickDelta | The ticks since the last poll. |
| void HudCommon::Draw | ( | ) |
Draw the song position, the button icons, the sections, and the stick marker.
| void HudCommon::DrawText | ( | ) |
Draw the chat, the text message, the letterbox, and the two lines of text.
| void HudCommon::DrawAvatar | ( | ) |
Draw the avatar of the leader.
| void HudCommon::SetPlaying | ( | int | nPlayer, |
| bool | bPlaying ) |
Mark a player as playing or not, and show the leader avatar of the one player who plays.
| nPlayer | The player, or a negative value for none. |
| bPlaying | Whether the player plays. |
| void HudCommon::Reset | ( | ) |
Return every part to its state at the start of a song.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| nLane | The lane, below kNumLanes. |
|
inline |
|
inline |
Replace the picture of the controller.
| pController | The new picture, which the head-up display then owns. |
|
inline |
|
inline |
Replace the panel of text.
| pDialog | The new panel, which the head-up display then owns. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
staticconstexpr |
The number of lanes, one flying button icon each.