ELEC2645 (2018/19) / Mbed 2 deprecated fy14lkaa

Dependencies:   mbed

Committer:
fy14lkaa
Date:
Fri Apr 19 19:23:02 2019 +0000
Revision:
24:d4919c29a663
Parent:
23:bfda24746bd4
Child:
25:70c70192eae5
declared the function of the drawing by using [void draw(N5110&lcd);]; which used the N5110 and lcd libraries to draw the bullet in bullet.h.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
fy14lkaa 21:5b953e368fba 1 #include "mbed.h"
fy14lkaa 21:5b953e368fba 2 #include "N5110.h"
fy14lkaa 21:5b953e368fba 3 #include "Gamepad.h"
fy14lkaa 21:5b953e368fba 4 #include "alien.h"
fy14lkaa 21:5b953e368fba 5
fy14lkaa 22:6d3c3f2715d0 6 /** bullet Class
fy14lkaa 22:6d3c3f2715d0 7 @author Laila Al Badwawi, University of Leeds
fy14lkaa 22:6d3c3f2715d0 8 @brief Controls the bullet in the SpaceInvaders game
fy14lkaa 22:6d3c3f2715d0 9 @date April 2019
fy14lkaa 22:6d3c3f2715d0 10 */
fy14lkaa 22:6d3c3f2715d0 11
fy14lkaa 22:6d3c3f2715d0 12 class bullet
fy14lkaa 22:6d3c3f2715d0 13 {
fy14lkaa 22:6d3c3f2715d0 14
fy14lkaa 22:6d3c3f2715d0 15 public:
fy14lkaa 22:6d3c3f2715d0 16 bullet();
fy14lkaa 23:bfda24746bd4 17 ~bullet();
fy14lkaa 23:bfda24746bd4 18
fy14lkaa 24:d4919c29a663 19 void init(int size,int speed);
fy14lkaa 24:d4919c29a663 20 void draw(N5110 &lcd);