wavelength 1.0.0
Loading...
Searching...
No Matches
metagameutil.h
Go to the documentation of this file.
1#pragma once
2
4#include "game/remixinfo.h"
5#include "game/songentry.h"
6#include "os/string.h"
7#include "rnd/rndfont.h"
8#include "rnd/rndmat.h"
9#include "rnd/rndmesh.h"
10
17extern RndMat *g_pWinnerMat;
18
30
43RndFont *FindColorFont(const char *pszFace, const char *pszColor);
44
53RndFont *FindLucidaFont(const char *pszColor);
54
66RndMat *FindColorMaterial(const char *pszColor);
67
76const char *GetPlayerColorName(int nPlayer);
77
86const char *GetConnectionTypeName(int nType);
87
88#ifndef VIDEO_STANDARD_PAL
96const char *GetConnectionTypeAbbrev(int nType);
97#endif
98
107const char *GetDuelDifficultyAbbrev(int nDifficulty);
108
109#ifdef VIDEO_STANDARD_PAL
119const char *GetSkillAbbrev(int nSkill);
120#endif
121
133
146RndMat *FindGradeMaterial(int nGrade, bool bEnd);
147
160
171bool TrimSpaces(String *pText);
172
184const char *FormatGenreTempo(const SongEntry &song, const RemixInfo *pInfo);
Parts and colours of a player's avatar, the Freq the Freq maker edits.
Definition avatarpartset.h:23
Description of a saved remix.
Definition remixinfo.h:26
Bitmap font, a grid of character cells in the texture of a material's first stage.
Definition rndfont.h:20
Surface description: blending, lighting colours, culling, and a list of texture stages.
Definition rndmat.h:20
Triangle mesh with a material.
Definition rndmesh.h:31
View of the entry of one song in the "songs" section of the configuration.
Definition songentry.h:13
Growable text buffer that is also a PrnStream.
Definition string.h:19
RndMat * FindRankMaterial(int nRank)
Find the material of a rank, from rank_01.mat for rank -1 to rank_05.mat for rank 3.
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.
RndFont * FindColorFont(const char *pszFace, const char *pszColor)
Find the font of a face in a player colour, <face>_1_<colour>.font.
RndMat * FindColorMaterial(const char *pszColor)
Find the material of a player colour, fcolor_<n>.mat.
const char * GetConnectionTypeAbbrev(int nType)
Report the localised abbreviation of a kind of network connection.
const char * GetPlayerColorName(int nPlayer)
Report the colour of a player.
void FindWinnerMaterial()
Find the freq_winner.mat material the result screens draw the winner's character with,...
RndMat * g_pWinnerMat
The freq_winner.mat material FindWinnerMaterial() keeps for the result screens.
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.
RndFont * FindLucidaFont(const char *pszColor)
Find the lucida font in a player colour.
bool TrimSpaces(String *pText)
Remove the spaces at the start and at the end of a string.
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 mater...
const char * GetDuelDifficultyAbbrev(int nDifficulty)
Report the localised abbreviation of a duel difficulty.
const char * GetConnectionTypeName(int nType)
Report the localised name of a kind of network connection.