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:
- 42:ee13e1d103d8
- Parent:
- 40:90c7a893d513
--- a/Weapons/Weapons.h Wed May 08 09:22:16 2019 +0000 +++ b/Weapons/Weapons.h Wed May 08 11:18:40 2019 +0000 @@ -14,10 +14,10 @@ ~Weapons(); /* Initialize the class with the ship position */ - void init(int ship_xpos, int ship_ypos, int ship_width); + void init(int ship_xpos, int ship_ypos, int ship_width,N5110 *lcd, Gamepad *pad); /* Draw the missle */ - void draw(N5110 &lcd,Gamepad &pad,int shipno,Vector2D closest); + void draw(int shipno,Vector2D closest); /* Gets the projectiles position */ Vector2D get_pos(int shipno); @@ -36,6 +36,9 @@ void set_pos(int xpos, int ypos); private: + Gamepad *_pad; + N5110 *_lcd; + Enemy _enemy; int reset; Vector2D _velocity;