A game for Lab 4 of ECE 4180
Dependencies: 4DGL-uLCD-SE LSM9DS1_Library SDFileSystem mbed-rtos mbed wave_player
Player.h
00001 #ifndef _Human_H_ 00002 #define _Human_H_ 00003 00004 #include "rtos.h" 00005 #include "uLCD_4DGL.h" 00006 #include "InputHandler.h" 00007 00008 class Player { 00009 public: 00010 Player(uLCD_4DGL* screen, InputHandler* input, int startX, int startY); 00011 00012 // Game function 00013 void update(int windowWidth, int windowHeight); 00014 void draw(); 00015 00016 // Get coordinates 00017 int getX(); 00018 int getY(); 00019 int getWidth(); 00020 int getHeight(); 00021 00022 private: 00023 uLCD_4DGL* screen; 00024 Mutex screen_mutex; 00025 InputHandler* inputManager; 00026 00027 int x; 00028 int y; 00029 int lastX; 00030 int lastY; 00031 }; 00032 00033 #endif
Generated on Thu Jul 21 2022 04:01:54 by 1.7.2