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:
- 12:9e6d5d0a0c82
- Child:
- 13:feadff02d3f7
diff -r 4e2eb64031a0 -r 9e6d5d0a0c82 Graphics/Graphics.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Graphics/Graphics.h Sun Apr 14 15:58:12 2019 +0000
@@ -0,0 +1,41 @@
+#ifndef GRAPHICS
+#define GRAPHICS
+
+#include "mbed.h"
+#include "N5110.h"
+#include "Gamepad.h"
+
+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);
+ // Right Tank
+ void draw_tank_r(int x, int y, N5110 &lcd);
+ void draw_turret_r(int x, int y, int angle, N5110 &lcd);
+ // Projectile
+ void draw_projectile(int x, int y, N5110 &lcd);
+ // Maps
+
+private:
+// Left Tank
+ void _turret_angle_l1(int x, int y, N5110 &lcd);
+ void _turret_angle_l2(int x, int y, N5110 &lcd);
+ void _turret_angle_l3(int x, int y, N5110 &lcd);
+ void _turret_angle_l4(int x, int y, N5110 &lcd);
+ void _turret_angle_l5(int x, int y, N5110 &lcd);
+// Right Tank
+ void _turret_angle_r1(int x, int y, N5110 &lcd);
+ void _turret_angle_r2(int x, int y, N5110 &lcd);
+ void _turret_angle_r3(int x, int y, N5110 &lcd);
+ void _turret_angle_r4(int x, int y, N5110 &lcd);
+ void _turret_angle_r5(int x, int y, N5110 &lcd);
+};
+
+
+
+#endif // GRAPHICS
\ No newline at end of file