Lab 6 for ECE 2036,a lame version of Galiga that needs to have the bullet fixed, but focuses on the concept of polymorphism
Dependencies: mbed 4DGL-uLCD-SE PinDetect
global.h@0:660af2d0e42d, 2022-04-27 (annotated)
- Committer:
- nasiromar
- Date:
- Wed Apr 27 05:31:20 2022 +0000
- Revision:
- 0:660af2d0e42d
Lame Game Lab 6
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
nasiromar | 0:660af2d0e42d | 1 | #ifndef GLOBAL_H |
nasiromar | 0:660af2d0e42d | 2 | #define GLOBAL_H |
nasiromar | 0:660af2d0e42d | 3 | |
nasiromar | 0:660af2d0e42d | 4 | // Include all the hardware libraries |
nasiromar | 0:660af2d0e42d | 5 | #include "mbed.h" |
nasiromar | 0:660af2d0e42d | 6 | #include "uLCD_4DGL.h" |
nasiromar | 0:660af2d0e42d | 7 | #include "PinDetect.h" |
nasiromar | 0:660af2d0e42d | 8 | #include "MMA8452.h" |
nasiromar | 0:660af2d0e42d | 9 | #include <ctime> |
nasiromar | 0:660af2d0e42d | 10 | #include <cstdlib> |
nasiromar | 0:660af2d0e42d | 11 | |
nasiromar | 0:660af2d0e42d | 12 | // Declare the hardware interface objects |
nasiromar | 0:660af2d0e42d | 13 | /* |
nasiromar | 0:660af2d0e42d | 14 | This file holds all the global variables that are accessable from all the |
nasiromar | 0:660af2d0e42d | 15 | different files in this project. You see below most of it looks like hardware. |
nasiromar | 0:660af2d0e42d | 16 | That's because it is hardware! The uLCD object is how you interact with the LCD |
nasiromar | 0:660af2d0e42d | 17 | screen. The sd variable is how you interact with the sd card and so on for all |
nasiromar | 0:660af2d0e42d | 18 | the other variables.*/ |
nasiromar | 0:660af2d0e42d | 19 | extern uLCD_4DGL uLCD; // LCD Screen |
nasiromar | 0:660af2d0e42d | 20 | //extern SDFileSystem sd; // SD Card |
nasiromar | 0:660af2d0e42d | 21 | extern PinDetect buttonA; // Pushbuttons |
nasiromar | 0:660af2d0e42d | 22 | extern PinDetect buttonB; |
nasiromar | 0:660af2d0e42d | 23 | extern PinDetect buttonC; |
nasiromar | 0:660af2d0e42d | 24 | extern MMA8452 acc; |
nasiromar | 0:660af2d0e42d | 25 | |
nasiromar | 0:660af2d0e42d | 26 | //bullet launch |
nasiromar | 0:660af2d0e42d | 27 | extern bool loadedBullet; |
nasiromar | 0:660af2d0e42d | 28 | extern bool loadedRocket; |
nasiromar | 0:660af2d0e42d | 29 | |
nasiromar | 0:660af2d0e42d | 30 | #endif |