ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el18jkeo

Dependencies:   mbed

Committer:
josh_ohara
Date:
Fri May 01 14:24:20 2020 +0000
Revision:
17:8b1d16d56ad2
Parent:
16:987f72d9bb8f
Child:
18:828e9f6ddfdb
s

Who changed what in which revision?

UserRevisionLine numberNew contents of line
josh_ohara 16:987f72d9bb8f 1
josh_ohara 16:987f72d9bb8f 2 #include "mbed.h"
josh_ohara 16:987f72d9bb8f 3 #include "N5110.h"
josh_ohara 16:987f72d9bb8f 4 #include "Gamepad.h"
josh_ohara 16:987f72d9bb8f 5
josh_ohara 16:987f72d9bb8f 6 class AlienBullet
josh_ohara 16:987f72d9bb8f 7 {
josh_ohara 16:987f72d9bb8f 8 public:
josh_ohara 16:987f72d9bb8f 9 AlienBullet();
josh_ohara 16:987f72d9bb8f 10 ~AlienBullet();
josh_ohara 16:987f72d9bb8f 11 void init(int x, int y);
josh_ohara 16:987f72d9bb8f 12 void render(N5110 &lcd);
josh_ohara 16:987f72d9bb8f 13 void update(Gamepad &pad,N5110 &lcd);
josh_ohara 16:987f72d9bb8f 14 Vector2D get_position();
josh_ohara 16:987f72d9bb8f 15 void set_hit(bool x);
josh_ohara 16:987f72d9bb8f 16 bool get_hit();
josh_ohara 16:987f72d9bb8f 17
josh_ohara 16:987f72d9bb8f 18 private:
josh_ohara 16:987f72d9bb8f 19 int Y;
josh_ohara 16:987f72d9bb8f 20 int X;
josh_ohara 16:987f72d9bb8f 21 int Speed;
josh_ohara 16:987f72d9bb8f 22 bool Hit;
josh_ohara 16:987f72d9bb8f 23
josh_ohara 16:987f72d9bb8f 24 };
josh_ohara 16:987f72d9bb8f 25
josh_ohara 16:987f72d9bb8f 26