Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: Graphics/Graphics.h
- Revision:
- 16:a2c945279b79
- Parent:
- 15:fa5282fcd134
- Child:
- 17:cb39d9fa08dc
--- a/Graphics/Graphics.h Fri Apr 19 15:58:51 2019 +0000
+++ b/Graphics/Graphics.h Wed Apr 24 13:44:12 2019 +0000
@@ -1,5 +1,5 @@
-#ifndef GRAPHICS
-#define GRAPHICS
+#ifndef GRAPHICS_H
+#define GRAPHICS_H
#include "mbed.h"
#include "N5110.h"
@@ -7,16 +7,20 @@
class Graphics
{
+
public:
Graphics();
~Graphics();
+
// Left Tank
void draw_tank_l(int x, int y, N5110 &lcd);
void draw_turret_l(int x, int y, int angle, N5110 &lcd);
+ void draw_left_victory(N5110 &lcd);
// Right Tank
void draw_tank_r(int x, int y, N5110 &lcd);
void draw_turret_r(int x, int y, int angle, N5110 &lcd);
+ void draw_right_victory(N5110 &lcd);
// Projectile
void draw_projectile(int x, int y, N5110 &lcd);
// Display
@@ -25,7 +29,7 @@
// Maps
void draw_parkinson_map(int x, int y, N5110 &lcd);
// LEDs
- void show_health(int current, int total, Gamepad &pad);
+ void show_health(int current, Gamepad &pad);
void start_up(int alt, Gamepad &pad);
private: