Stick_Runner

Dependencies:   FXOS8700CQ Gamepad N5110 SDFileSystem mbed

Committer:
el15ss
Date:
Fri Apr 28 16:30:47 2017 +0000
Revision:
1:db9ff66f67c8
Parent:
0:12cfe63faa6a
Child:
2:98a41609c827
Need to add accelerometer functonality

Who changed what in which revision?

UserRevisionLine numberNew contents of line
el15ss 0:12cfe63faa6a 1 #ifndef Gems_H
el15ss 0:12cfe63faa6a 2 #define Gems_H
el15ss 0:12cfe63faa6a 3
el15ss 0:12cfe63faa6a 4 #include "mbed.h"
el15ss 0:12cfe63faa6a 5 #include "N5110.h"
el15ss 0:12cfe63faa6a 6 #include "Gamepad.h"
el15ss 0:12cfe63faa6a 7
el15ss 0:12cfe63faa6a 8 class Gems
el15ss 0:12cfe63faa6a 9 {
el15ss 0:12cfe63faa6a 10 public:
el15ss 0:12cfe63faa6a 11
el15ss 0:12cfe63faa6a 12 Gems();
el15ss 0:12cfe63faa6a 13 ~Gems();
el15ss 0:12cfe63faa6a 14 void init();
el15ss 0:12cfe63faa6a 15 void draw(N5110 &lcd);
el15ss 1:db9ff66f67c8 16 void updateGems();
el15ss 1:db9ff66f67c8 17 void gemStatus(Vector2D p);
el15ss 1:db9ff66f67c8 18 int gemScore();
el15ss 0:12cfe63faa6a 19 void add_score();
el15ss 0:12cfe63faa6a 20 int get_score();
el15ss 1:db9ff66f67c8 21 Vector2D getGemPos();
el15ss 1:db9ff66f67c8 22 bool getGemStatus();
el15ss 1:db9ff66f67c8 23 // int counter;
el15ss 0:12cfe63faa6a 24
el15ss 0:12cfe63faa6a 25 private:
el15ss 1:db9ff66f67c8 26 int gemPosX;
el15ss 1:db9ff66f67c8 27 int gemPosY;
el15ss 1:db9ff66f67c8 28 bool gStatus;
el15ss 1:db9ff66f67c8 29
el15ss 0:12cfe63faa6a 30 };
el15ss 0:12cfe63faa6a 31 #endif