![]() |
Resonance Game
Team Walterio Fuchsbauer
|
Class that represents the in game HUD. More...
Public Member Functions | |
Hud (ContentManager newContent, GraphicsDeviceManager newGraphics, Graphics newGameGraphics) | |
Create a new HUD object. | |
void | loadContent () |
Called once to load the textures needed for the HUD. | |
void | drawDebugInfo (String text) |
Called to draw text in the debug position on screen. | |
void | Draw (GameTime gameTime) |
Called every time the HUD needs to be drawn. | |
void | updateEnemy (string name, Vector3 pos, List< int > armour) |
Update the HUD with information about the enemies. | |
void | drawBadVibeHealth (List< int > arm, Vector2 pos, int bvDist) |
void | drawBadVibeHealthString (String name, string armour, Vector2 coords) |
Draws bad vibes health above them as a string. | |
void | drawMiniMap () |
Draws the Mini Map on screen. | |
void | drawLightning () |
void | updateGoodVibe (int h, int s, int n, int sh, int f) |
Updates the HUD with infomation about the player. | |
void | highlightedPower () |
Static Public Member Functions | |
static void | showDamage () |
static void | saveHealthBar () |
Renders the health bar texture in the HUDBuffer render target. | |
static void | saveFreezeBar () |
static void | saveNitroBar () |
static void | saveShieldBar () |
static void | saveMiniMap () |
Renders the mini map texture in the miniMapBuffer render target. |
Class that represents the in game HUD.
Resonance.Hud.Hud | ( | ContentManager | newContent, |
GraphicsDeviceManager | newGraphics, | ||
Graphics | newGameGraphics | ||
) |
Create a new HUD object.
newContent | ContentManger object used throughout the game |
newGraphics | GraphicsDeviceManager used throughout the game |
newGameGraphics | Graphics object used to the 3D rendering |
void Resonance.Hud.Draw | ( | GameTime | gameTime | ) |
Called every time the HUD needs to be drawn.
void Resonance.Hud.drawBadVibeHealth | ( | List< int > | arm, |
Vector2 | pos, | ||
int | bvDist | ||
) |
void Resonance.Hud.drawBadVibeHealthString | ( | String | name, |
string | armour, | ||
Vector2 | coords | ||
) |
Draws bad vibes health above them as a string.
name | Name of bad vibe (not displayed datm) |
armour | Armour string to use only atm |
coords | Coords to display the armour levels |
void Resonance.Hud.drawDebugInfo | ( | String | text | ) |
Called to draw text in the debug position on screen.
text | Text string to display |
void Resonance.Hud.drawLightning | ( | ) |
void Resonance.Hud.drawMiniMap | ( | ) |
Draws the Mini Map on screen.
void Resonance.Hud.highlightedPower | ( | ) |
void Resonance.Hud.loadContent | ( | ) |
Called once to load the textures needed for the HUD.
static void Resonance.Hud.saveFreezeBar | ( | ) | [static] |
static void Resonance.Hud.saveHealthBar | ( | ) | [static] |
Renders the health bar texture in the HUDBuffer render target.
static void Resonance.Hud.saveMiniMap | ( | ) | [static] |
Renders the mini map texture in the miniMapBuffer render target.
static void Resonance.Hud.saveNitroBar | ( | ) | [static] |
static void Resonance.Hud.saveShieldBar | ( | ) | [static] |
static void Resonance.Hud.showDamage | ( | ) | [static] |
void Resonance.Hud.updateEnemy | ( | string | name, |
Vector3 | pos, | ||
List< int > | armour | ||
) |
Update the HUD with information about the enemies.
name | Enemy name |
pos | Vector3 position of the enemy |
armour | List of armour values |
void Resonance.Hud.updateGoodVibe | ( | int | h, |
int | s, | ||
int | n, | ||
int | sh, | ||
int | f | ||
) |
Updates the HUD with infomation about the player.
h | Players health |
s | Players score |