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: TankL/TankL.h
- Revision:
- 7:a3ccabdebe2e
- Child:
- 10:d4fb12e9e7cd
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TankL/TankL.h Tue Apr 09 17:09:29 2019 +0000 @@ -0,0 +1,30 @@ +#ifndef TANKL_H +#define TANKL_H + +#include "mbed.h" +#include "N5110.h" +#include "Gamepad.h" + + +class TankL +{ +public: + + void draw(N5110 &lcd); + void set_position(int x, int y); + int get_position_x(); + int get_position_y(); + int get_hitbox(int i); + void generate_hitbox(); + void set_health(int h); + void lose_health(); + +private: + + int _position_x; + int _position_y; + int _hitbox[40]; + int _health; +}; + +#endif // TANKL_H \ No newline at end of file