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:
- 10:d4fb12e9e7cd
- Parent:
- 7:a3ccabdebe2e
- Child:
- 11:4e2eb64031a0
--- a/TankL/TankL.h Wed Apr 10 14:27:37 2019 +0000 +++ b/TankL/TankL.h Fri Apr 12 12:01:47 2019 +0000 @@ -9,20 +9,28 @@ class TankL { public: - - void draw(N5110 &lcd); - void set_position(int x, int y); + //Accessors int get_position_x(); int get_position_y(); int get_hitbox(int i); - void generate_hitbox(); + //Mutators + void set_position(int x, int y); void set_health(int h); - void lose_health(); + void set_speed(int s); + void set_angle(float angle); + //Other Methods + void move_position(int d); + void lose_health(); + void generate_hitbox(); + void draw(N5110 &lcd); private: int _position_x; int _position_y; + int _move_counter; + int _angle; + int _speed; int _hitbox[40]; int _health; };