wavelength 1.0.0
Loading...
Searching...
No Matches
hudletterexit.h
Go to the documentation of this file.
1#pragma once
2
3#include "math/vector3.h"
4#include "rnd/rndtext.h"
5#include "rnd/rndtransanim.h"
7#include "rnd/rndview.h"
8
16public:
18 static constexpr int kNumLetters = 9;
19
21 static constexpr int kNumSides = 2;
22
24 static constexpr int kBasisRows = 3;
25
27 static constexpr int kRowFloats = 4;
28
37
46
53 void Reset();
54
63 void Poll();
64
74 void ShowReveal(int nPlayer, int nPoints, const char *pszText);
75
86
94 void SetTime(float fLevel);
95
104 void Fly(int nResult);
105
112 static const char *sLetters;
113
114private:
115 float mPulse;
116 float mPulseFloor;
117 int mRevealPending;
118 int mPendingPlayer;
119 int mPendingPoints;
120 RndView *mView;
121 RndText *mTexts[kNumSides];
122 RndTransAnim *mAnims[kNumSides];
123 int mLetters[kNumSides];
124 float mFlightLength;
125 Vector3 mOrigin;
126 float mFlyBasis[kBasisRows][kRowFloats];
127 float mFlightStart;
128 RndTransAnim *mFlight;
129 int mFlipped;
130 RndTransAnim *mLetterPaths[kNumLetters];
131 int mSecondSidePlayer;
132};
void SetTime(float fLevel)
Start a pulse that fades to a level.
void ShowReveal(int nPlayer, int nPoints, const char *pszText)
Show the letter a player won at the centre of the banner.
void Poll()
Pulse the banner, advance its flight, and fade it.
HudLetterExit()
Construct an empty banner from <hud> letter_exit.view, the letters and the paths of each side,...
static constexpr int kNumLetters
The number of letters of AMPLITUDE.
Definition hudletterexit.h:18
static constexpr int kNumSides
The number of sides of a duel.
Definition hudletterexit.h:21
void Fly(int nResult)
Fly the letter of one side to its score.
static const char * sLetters
The letters of AMPLITUDE.
Definition hudletterexit.h:112
static constexpr int kRowFloats
The words of a row of a transform: three components and the padding.
Definition hudletterexit.h:27
void ScaleByPulse(RndTransformable *pTrans)
Scale a transform by the pulse of the banner.
void Reset()
Hide the banner and stop its flight.
~HudLetterExit()
Destroy the banner.
Definition hudletterexit.h:44
static constexpr int kBasisRows
The rows of a basis.
Definition hudletterexit.h:24
Text drawn with a bitmap font as a mesh of one quad per character.
Definition rndtext.h:27
Animation of a transformable's local transform by rotation, translation, and scale keys.
Definition rndtransanim.h:20
Mix-in for an object with a local transform and a world transform derived from its parent's.
Definition rndtransformable.h:17
View that shows the children of another view, its children owner, under its own transform and frame.
Definition rndview.h:27
Three-component vector, padded to a PlayStation 2 quadword.
Definition vector3.h:14