Ahmed Adamjee
/
SnakeVSBlock
Snake vs Block Game to be run upon K64F.
GameEngine/LengthManager/LengthManager.h
- Committer:
- AhmedPlaymaker
- Date:
- 2019-05-06
- Revision:
- 83:329da564799a
- Parent:
- 79:35cb65c52d25
- Child:
- 93:7f9c31ed5cab
File content as of revision 83:329da564799a:
#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(N5110 *lcd); /** 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(); /** 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; //Pointer to the game pad object pad. Gamepad *_pad; //Pointer to the N5110 object lcd. N5110 *_lcd; }; #endif