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: Ship/Ship.h
- Revision:
- 6:5bea67cc96f9
- Parent:
- 5:e5bb95fb308b
- Child:
- 8:86cb9a9f8a73
--- a/Ship/Ship.h Sun Mar 22 19:06:39 2020 +0000
+++ b/Ship/Ship.h Mon Mar 23 15:20:59 2020 +0000
@@ -7,10 +7,10 @@
{
public:
- void init(int y, int height, int width); //dimensions of the ship without shooter, y position is bottom of the screen
- void draw(N5110 &lcd); //Draws basic rectangle ship
- Vector2D get_position(); //Returns position of ship
- void update(Direction d, float mag); //Interface between joystick and ship control
+ void init(int y, int height, int width); //dimensions of the ship without shooter, y position is bottom of the screen
+ void draw(N5110 &lcd); //Draws basic rectangle ship
+ Vector2D get_position(); //Returns position of ship
+ void update(Direction d, float mag); //Interface between joystick and ship control
int get_height();
int get_width();
// void set_life(int l);
@@ -19,7 +19,7 @@
int Height;
int Width;
int X;
- int Y; //y value of ship
- int Speed; //speed of ship
+ int Y; //y value of ship
+ int Speed; //speed of ship
// bool Life;
};