ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el18jkeo

Dependencies:   mbed

Committer:
josh_ohara
Date:
Wed Apr 01 14:40:29 2020 +0000
Revision:
12:be491ab6e742
Parent:
10:9189419fda68
Child:
13:b85f14d35be1
Created armada, need to make ships move in 1 unit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
josh_ohara 9:8e695df3cc36 1 #include "mbed.h"
josh_ohara 9:8e695df3cc36 2 #include "N5110.h"
josh_ohara 9:8e695df3cc36 3 #include "Gamepad.h"
josh_ohara 2:c2316b659b97 4
josh_ohara 9:8e695df3cc36 5 class Alien
josh_ohara 9:8e695df3cc36 6 {
josh_ohara 9:8e695df3cc36 7 public:
josh_ohara 12:be491ab6e742 8 void init(int x, int y, int size);
josh_ohara 9:8e695df3cc36 9 void render(N5110 &lcd);
josh_ohara 9:8e695df3cc36 10 Vector2D get_position();
josh_ohara 10:9189419fda68 11 void update(N5110 &lcd);
josh_ohara 10:9189419fda68 12 void collision(N5110 &lcd);
josh_ohara 2:c2316b659b97 13
josh_ohara 10:9189419fda68 14 private:
josh_ohara 9:8e695df3cc36 15 int X;
josh_ohara 9:8e695df3cc36 16 int Y;
josh_ohara 10:9189419fda68 17 bool Alive;
josh_ohara 9:8e695df3cc36 18 int Speed;
josh_ohara 9:8e695df3cc36 19 int Size;
josh_ohara 9:8e695df3cc36 20 };