ELEC2645 (2018/19) / Mbed 2 deprecated ll16o2l_ELEC2645

Dependencies:   mbed Gamepad

Committer:
ll16o2l
Date:
Sun May 05 11:23:07 2019 +0000
Revision:
13:700ea0742b24
Parent:
12:1dfc34bc8382
Child:
15:807eba7c7811
Documentation for Instruction

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ll16o2l 9:99287b26be1e 1 #ifndef INSTRUCTION_H
ll16o2l 9:99287b26be1e 2 #define INSTRUCTION_H
ll16o2l 9:99287b26be1e 3
ll16o2l 9:99287b26be1e 4 #include "mbed.h"
ll16o2l 9:99287b26be1e 5 #include "N5110.h"
ll16o2l 9:99287b26be1e 6 #include "Gamepad.h"
ll16o2l 9:99287b26be1e 7
ll16o2l 13:700ea0742b24 8 /** Instruction Class
ll16o2l 13:700ea0742b24 9 * @author Oliver Luong, University of Leeds
ll16o2l 13:700ea0742b24 10 * @brief Controls the functionality of the Dodge game
ll16o2l 13:700ea0742b24 11 * @date 05/05/2019
ll16o2l 13:700ea0742b24 12 */
ll16o2l 9:99287b26be1e 13 class Instruction
ll16o2l 9:99287b26be1e 14 {
ll16o2l 9:99287b26be1e 15 public:
ll16o2l 9:99287b26be1e 16 Instruction();
ll16o2l 9:99287b26be1e 17 ~Instruction();
ll16o2l 12:1dfc34bc8382 18 void init();
ll16o2l 12:1dfc34bc8382 19 void write(N5110 &lcd);
ll16o2l 12:1dfc34bc8382 20 void control(Gamepad &pad);
ll16o2l 9:99287b26be1e 21
ll16o2l 9:99287b26be1e 22 private:
ll16o2l 12:1dfc34bc8382 23 Direction d;
ll16o2l 9:99287b26be1e 24 int y;
ll16o2l 11:1c5c549ba75e 25 int max_length;
ll16o2l 9:99287b26be1e 26
ll16o2l 11:1c5c549ba75e 27 };
ll16o2l 9:99287b26be1e 28
ll16o2l 9:99287b26be1e 29 #endif