Laila Al Badwawi 200906179 SpaceInvaders I declare this my own independent work and understand the university rules on plagiarism.

Dependencies:   mbed

Committer:
fy14lkaa
Date:
Sun May 05 01:38:30 2019 +0000
Revision:
95:1b43f9c332bc
Parent:
92:8a1b14488ca5
Child:
127:8bd8cf136f19
change some of the variables of the void function such as x to x_alien and added new variables such as speed_alien and y_alien

Who changed what in which revision?

UserRevisionLine numberNew contents of line
fy14lkaa 28:4786e81ce3e3 1 #ifndef Alien_H
fy14lkaa 28:4786e81ce3e3 2 #define Alien_H
fy14lkaa 28:4786e81ce3e3 3
fy14lkaa 28:4786e81ce3e3 4
fy14lkaa 28:4786e81ce3e3 5
fy14lkaa 28:4786e81ce3e3 6 #include "mbed.h"
fy14lkaa 28:4786e81ce3e3 7 #include "Gamepad.h"
fy14lkaa 28:4786e81ce3e3 8 #include "N5110.h"
fy14lkaa 95:1b43f9c332bc 9 #include "SpaceEngine.h"
fy14lkaa 28:4786e81ce3e3 10
fy14lkaa 28:4786e81ce3e3 11 class Alien
fy14lkaa 28:4786e81ce3e3 12 {
fy14lkaa 95:1b43f9c332bc 13 public:
fy14lkaa 95:1b43f9c332bc 14 Alien();
fy14lkaa 95:1b43f9c332bc 15 ~Alien();
fy14lkaa 95:1b43f9c332bc 16
fy14lkaa 95:1b43f9c332bc 17
fy14lkaa 95:1b43f9c332bc 18 void init(int x_alien,int y_alien, int speed_alien);
fy14lkaa 28:4786e81ce3e3 19 void draw(N5110 &lcd);
fy14lkaa 95:1b43f9c332bc 20 void update(Direction d,float mag);
fy14lkaa 92:8a1b14488ca5 21
fy14lkaa 28:4786e81ce3e3 22 private:
fy14lkaa 92:8a1b14488ca5 23
fy14lkaa 92:8a1b14488ca5 24
fy14lkaa 95:1b43f9c332bc 25 int _x_alien;
fy14lkaa 95:1b43f9c332bc 26 //int _alien[12][10];
fy14lkaa 95:1b43f9c332bc 27 int _y_alien;
fy14lkaa 95:1b43f9c332bc 28 int _speed_alien;
fy14lkaa 95:1b43f9c332bc 29 Direction d;
fy14lkaa 95:1b43f9c332bc 30 float mag;
fy14lkaa 28:4786e81ce3e3 31 };
fy14lkaa 28:4786e81ce3e3 32 #endif