|
wavelength 1.0.0
|
#include "game/avatarpartset.h"#include "game/remixinfo.h"#include "game/songentry.h"#include "os/string.h"#include "rnd/rndfont.h"#include "rnd/rndmat.h"#include "rnd/rndmesh.h"
Go to the source code of this file.
Functions | |
| void | FindWinnerMaterial () |
| Find the freq_winner.mat material the result screens draw the winner's character with, and keep it for them. | |
| RndFont * | FindColorFont (const char *pszFace, const char *pszColor) |
| Find the font of a face in a player colour, <face>_1_<colour>.font. | |
| RndFont * | FindLucidaFont (const char *pszColor) |
| Find the lucida font in a player colour. | |
| RndMat * | FindColorMaterial (const char *pszColor) |
| Find the material of a player colour, fcolor_<n>.mat. | |
| const char * | GetPlayerColorName (int nPlayer) |
| Report the colour of a player. | |
| const char * | GetConnectionTypeName (int nType) |
| Report the localised name of a kind of network connection. | |
| const char * | GetConnectionTypeAbbrev (int nType) |
| Report the localised abbreviation of a kind of network connection. | |
| const char * | GetDuelDifficultyAbbrev (int nDifficulty) |
| Report the localised abbreviation of a duel difficulty. | |
| RndMat * | FindRankMaterial (int nRank) |
| Find the material of a rank, from rank_01.mat for rank -1 to rank_05.mat for rank 3. | |
| RndMat * | FindGradeMaterial (int nGrade, bool bEnd) |
| Find the material of a grade, grade_0<grade>.mat, or grade_end_0<grade>.mat for the end of a song. | |
| void | DrawAvatarOnMesh (AvatarPartSet *pAvatar, RndMesh *pMesh) |
| Render an avatar into the part of the screen a mesh covers, and draw the mesh with the winner's material while the avatar plays a win animation. | |
| bool | TrimSpaces (String *pText) |
| Remove the spaces at the start and at the end of a string. | |
| const char * | FormatGenreTempo (const SongEntry &song, const RemixInfo *pInfo) |
| Format the genre of a song and the tempo of a remix with the token GENRE_BPM. | |
Variables | |
| RndMat * | g_pWinnerMat |
| The freq_winner.mat material FindWinnerMaterial() keeps for the result screens. | |
| void FindWinnerMaterial | ( | ) |
Find the freq_winner.mat material the result screens draw the winner's character with, and keep it for them.
The routine belongs to a unit of front end helpers that keeps its objects in file-level state. The name is inferred.
| RndFont * FindColorFont | ( | const char * | pszFace, |
| const char * | pszColor ) |
Find the font of a face in a player colour, <face>_1_<colour>.font.
purple uses the pink font, and a colour other than red, green, purple, or yellow uses the white font. The name is inferred.
| pszFace | The face, such as lucida. |
| pszColor | The colour, as GetPlayerColorName() reports it. |
| RndFont * FindLucidaFont | ( | const char * | pszColor | ) |
Find the lucida font in a player colour.
| pszColor | The colour, as GetPlayerColorName() reports it. |
| RndMat * FindColorMaterial | ( | const char * | pszColor | ) |
Find the material of a player colour, fcolor_<n>.mat.
A colour other than red, green, purple, or yellow uses the material of green. The name is inferred.
| pszColor | The colour, as GetPlayerColorName() reports it. |
| const char * GetPlayerColorName | ( | int | nPlayer | ) |
Report the colour of a player.
| nPlayer | The player, from 0 to 3, or -1 for no player. |
| const char * GetConnectionTypeName | ( | int | nType | ) |
Report the localised name of a kind of network connection.
| nType | The kind, 1 for a modem, 2 for broadband, and 3 for offline. |
| const char * GetConnectionTypeAbbrev | ( | int | nType | ) |
Report the localised abbreviation of a kind of network connection.
| nType | The kind, as GetConnectionTypeName() takes it. |
| const char * GetDuelDifficultyAbbrev | ( | int | nDifficulty | ) |
Report the localised abbreviation of a duel difficulty.
| nDifficulty | The difficulty, 1 for easy, 2 for medium, and 3 for hard. |
| RndMat * FindRankMaterial | ( | int | nRank | ) |
Find the material of a rank, from rank_01.mat for rank -1 to rank_05.mat for rank 3.
A rank outside that range uses rank_01.mat. The name is inferred.
| nRank | The rank. |
| RndMat * FindGradeMaterial | ( | int | nGrade, |
| bool | bEnd ) |
Find the material of a grade, grade_0<grade>.mat, or grade_end_0<grade>.mat for the end of a song.
The routine reads no object. The name is inferred.
| nGrade | The grade. |
| bEnd | Whether the material of the end of a song is found. |
| void DrawAvatarOnMesh | ( | AvatarPartSet * | pAvatar, |
| RndMesh * | pMesh ) |
Render an avatar into the part of the screen a mesh covers, and draw the mesh with the winner's material while the avatar plays a win animation.
The routine belongs to the unit of front end helpers. The name is inferred.
| pAvatar | The avatar. |
| pMesh | The mesh whose bounding box sets the part of the screen. |
| bool TrimSpaces | ( | String * | pText | ) |
Remove the spaces at the start and at the end of a string.
The routine belongs to the unit of front end helpers. The name is inferred.
| pText | The string. |
Format the genre of a song and the tempo of a remix with the token GENRE_BPM.
The name is inferred.
| song | The song. |
| pInfo | The remix. |
|
extern |
The freq_winner.mat material FindWinnerMaterial() keeps for the result screens.