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: Weapons/Weapons.h
- Revision:
- 40:90c7a893d513
- Parent:
- 26:a53d41adf40b
- Child:
- 42:ee13e1d103d8
- Child:
- 43:500b8cff3715
--- a/Weapons/Weapons.h Mon May 06 16:49:53 2019 +0000 +++ b/Weapons/Weapons.h Tue May 07 10:01:34 2019 +0000 @@ -5,6 +5,7 @@ #include "N5110.h" #include "Gamepad.h" #include "Ship.h" +#include "Enemy.h" class Weapons { @@ -16,7 +17,7 @@ void init(int ship_xpos, int ship_ypos, int ship_width); /* Draw the missle */ - void draw(N5110 &lcd,Gamepad &pad, int shipno); + void draw(N5110 &lcd,Gamepad &pad,int shipno,Vector2D closest); /* Gets the projectiles position */ Vector2D get_pos(int shipno); @@ -35,6 +36,7 @@ void set_pos(int xpos, int ypos); private: + Enemy _enemy; int reset; Vector2D _velocity; int _size;