ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el19zf

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Instruction.h Source File

Instruction.h

00001 #ifndef INSTRUCTION_H
00002 #define INSTRUCTION_H
00003 
00004 #include "mbed.h"
00005 #include "Gamepad.h"
00006 #include "N5110.h"
00007 
00008 /** Instruction class
00009 *@brief create a instruction interface for game
00010 *@author Zeyu Feng
00011 *@10 MAY 2020
00012 */
00013 
00014 class Instruction{
00015     public:
00016         /** Constructor */
00017         Instruction();
00018         
00019         /** Destructor */
00020         ~Instruction();
00021         
00022         void init();
00023         
00024         /** draw instruction by a for loop
00025          *@param lcd @details N5110 obejct
00026          *@param pad @details Gamepad object
00027          */
00028         void draw(N5110 &lcd,Gamepad &pad);
00029         
00030     private:
00031         
00032         int _draw_flag;
00033         
00034         Direction _d;
00035         
00036 };
00037 
00038 #endif