Ben Evans / Mbed 2 deprecated Defender_Game

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

HUD Class Reference

HUD Class Reference

HUD class. More...

#include <HUD.h>

Public Member Functions

 HUD ()
 Constructor.
 ~HUD ()
 Destructor.
void draw_HUD (N5110 &lcd, int spaceship_lives, int points, int smart_bomb_counter)
 Draws the HUD.

Detailed Description

HUD class.

Draws the HUD(Heads Up Display) on the lcd

Author:
Benjamin Evans, University of Leeds
Date:
May 2020

Definition at line 13 of file HUD.h.


Constructor & Destructor Documentation

HUD (  )

Constructor.

Definition at line 21 of file HUD.cpp.

~HUD (  )

Destructor.

Definition at line 25 of file HUD.cpp.


Member Function Documentation

void draw_HUD ( N5110 lcd,
int  spaceship_lives,
int  points,
int  smart_bomb_counter 
)

Draws the HUD.

Parameters:
lcdN5110 object
spaceship_livesnumber of lives of spaceship
pointsnumber of points you have
smart_bomb_counternumber of smart bombs left

Definition at line 29 of file HUD.cpp.