ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el18jkeo

Dependencies:   mbed

Committer:
josh_ohara
Date:
Fri May 01 12:56:33 2020 +0000
Revision:
16:987f72d9bb8f
Parent:
15:dde4ce4bf7fe
Ship bullet timer added

Who changed what in which revision?

UserRevisionLine numberNew contents of line
josh_ohara 2:c2316b659b97 1
josh_ohara 11:c174d84e4866 2 #include "mbed.h"
josh_ohara 11:c174d84e4866 3 #include "N5110.h"
josh_ohara 11:c174d84e4866 4 #include "Gamepad.h"
josh_ohara 11:c174d84e4866 5 #include "Bullet.h"
josh_ohara 11:c174d84e4866 6 #include <vector>
josh_ohara 2:c2316b659b97 7
josh_ohara 11:c174d84e4866 8 class BulletS
josh_ohara 11:c174d84e4866 9 {
josh_ohara 11:c174d84e4866 10 public:
josh_ohara 11:c174d84e4866 11 BulletS();
josh_ohara 11:c174d84e4866 12 ~BulletS();
josh_ohara 11:c174d84e4866 13 void init();
josh_ohara 11:c174d84e4866 14 void render(N5110 &lcd);
josh_ohara 16:987f72d9bb8f 15 void update(Gamepad &pad, N5110 &lcd, int shipx, int shipy, int counter);
josh_ohara 14:e88bcf5c0887 16 vector<Bullet> get_vector();
josh_ohara 14:e88bcf5c0887 17 void set_hit(int i, bool x);
josh_ohara 16:987f72d9bb8f 18 void flag_set(int counter);
josh_ohara 11:c174d84e4866 19
josh_ohara 11:c174d84e4866 20 private:
josh_ohara 11:c174d84e4866 21 vector<Bullet> bullet_vector;
josh_ohara 11:c174d84e4866 22 int X;
josh_ohara 11:c174d84e4866 23 int Y;
josh_ohara 15:dde4ce4bf7fe 24 int Shoot;
josh_ohara 15:dde4ce4bf7fe 25 Ticker ticker;
josh_ohara 16:987f72d9bb8f 26 int OldCounter;
josh_ohara 11:c174d84e4866 27 };