![](/media/cache/profiles/LinkedIn_0NghoZJ.jpeg.50x50_q85.jpg)
Snake vs Block Game to be run upon K64F.
GameEngine/LengthManager/LengthManager.h
- Committer:
- AhmedPlaymaker
- Date:
- 2019-05-05
- Revision:
- 79:35cb65c52d25
- Child:
- 83:329da564799a
File content as of revision 79:35cb65c52d25:
#ifndef LENGTHMANAGER_H #define LENGTHMANAGER_H #include "mbed.h" #include "N5110.h" #include "Gamepad.h" class LengthManager { public: LengthManager(); ~LengthManager(); /** Initialise LengthManager * * This function sets the initial length parameters. */ void init(); /** Minus Length * * This function decrements the length value by 1;. */ void MinusLength(); /** Plus Length * * This function increments the length by one. */ void PlusLength(); /** Draw * * This function draws the length on the screen. */ void print_length_on_screen(N5110 &lcd); /** get the length * * This sends the current length value when called. */ int _getLength(); /** Set the Length * * This function obtains the length value to be altered. */ void _setLength(int length); private: int _length; }; #endif