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
Graphics/Graphics.h
- Committer:
- el17mcd
- Date:
- 2019-04-27
- Revision:
- 17:cb39d9fa08dc
- Parent:
- 16:a2c945279b79
- Child:
- 21:44e87d88afe2
File content as of revision 17:cb39d9fa08dc:
#ifndef GRAPHICS_H
#define GRAPHICS_H
#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);
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
void draw_wind_bar(float wind, N5110 &lcd);
void draw_reticle(int x, int y, float angle, N5110 &lcd);
// Maps
void draw_parkinson_map(int x, int y, N5110 &lcd);
// LEDs
void show_health(int current, Gamepad &pad);
void start_up(int alt, Gamepad &pad);
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