wavelength 1.0.0
Loading...
Searching...
No Matches
ovyallplayer.h
Go to the documentation of this file.
1#pragma once
2
3#include <memory>
4
5#include "app/ovyavatar.h"
6#include "app/ovyduelscore.h"
7#include "app/ovyscore.h"
8#include "rnd/rndview.h"
9
17public:
30 OvyAllPlayer(int nPlayer, int nIndex, RndView *pHudView);
31
39
49 void Poll(float fSongDelta, float fRealDelta, float fTickDelta);
50
57 void DrawHud();
58
65 void DrawAvatar();
66
73 void Reset();
74
76 int GetPlayer() const {
77 return mPlayer;
78 }
79
81 OvyScore *GetScore() const {
82 return mScore.get();
83 }
84
87 return mDuelScore.get();
88 }
89
92 return mAvatar.get();
93 }
94
95private:
96 int mPlayer;
97 std::unique_ptr<OvyScore> mScore;
98 std::unique_ptr<OvyDuelScore> mDuelScore;
99 std::unique_ptr<OvyAvatar> mAvatar;
100};
void DrawHud()
Draw the score.
~OvyAllPlayer()
Destroy the parts.
void Reset()
Empty the score and the letters, and reset the avatar.
void DrawAvatar()
Draw the avatar.
int GetPlayer() const
Definition ovyallplayer.h:76
void Poll(float fSongDelta, float fRealDelta, float fTickDelta)
Advance the parts.
OvyAllPlayer(int nPlayer, int nIndex, RndView *pHudView)
Construct the parts of a player.
OvyAvatar * GetAvatar() const
Definition ovyallplayer.h:91
OvyScore * GetScore() const
Definition ovyallplayer.h:81
OvyDuelScore * GetDuelScore() const
Definition ovyallplayer.h:86
Avatar of a player beside the tracks, with the name of the track or player under it.
Definition ovyavatar.h:19
Score of a duel player: the letters of AMPLITUDE the player has lit.
Definition ovyduelscore.h:15
Score of a player on the head-up display, with the bar a shared-screen game shows at each checkpoint.
Definition ovyscore.h:25
View that shows the children of another view, its children owner, under its own transform and frame.
Definition rndview.h:27