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: Maintank/MainTank.h
- Revision:
- 0:8fb740fa6356
- Child:
- 1:679d7ada8de7
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Maintank/MainTank.h Sat May 11 14:58:43 2019 +0000 @@ -0,0 +1,31 @@ +#ifndef __MAIN_TANK__ +#define __MAIN_TANK__ + +#include "mbed.h" +#include "N5110.h" +#include "Gamepad.h" + + +class MainTank +{ +public: + MainTank(); + ~MainTank(); + void update(Direction d,float mag); + void init(); + void draw(N5110 &lcd); + void add_score(); + int get_score(); + void lose_life(); + int remain_life(); + Vector2D get_pos(); +private: + int m_x; + int m_y; + int m_speed; + int m_score; + int m_life; +}; + + +#endif \ No newline at end of file