![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Owen Cavender 201159294
GameEngine.h
- Committer:
- el17oc
- Date:
- 2020-05-26
- Revision:
- 2:44e4a6ecdbef
- Parent:
- 1:897160a1a3ae
File content as of revision 2:44e4a6ecdbef:
#ifndef GAMEENGINE_H #define GAMEENGINE_H #include "mbed.h" #include "N5110.h" #include "Gamepad.h" class GameEngine { public: GameEngine(); ~GameEngine(); void init(int shx, int shy, int apx, int apy, int Oshx, int Oshy); void set_Snakehead(Vector2D Snakehead); void set_Applepos(N5110 &lcd); Vector2D get_Snakehead(); Vector2D get_Applepos(); Vector2D get_oldSnakehead(); //void clear_Applepos(); private: int _shx; int _shy; int _apx; int _apy; int _Oshx; int _Oshy; }; #endif