ELEC2645 (2018/19) / Mbed 2 deprecated el17aio

Dependencies:   mbed

Committer:
ikenna1
Date:
Thu May 09 04:27:07 2019 +0000
Revision:
47:5ae8668af63f
Parent:
45:fe5fc85a5c73
Child:
51:2231e2e141b9
Documentation test;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ikenna1 39:7824f9080f59 1 #ifndef LORE_H
ikenna1 39:7824f9080f59 2 #define LORE_H
ikenna1 39:7824f9080f59 3
ikenna1 39:7824f9080f59 4 #include "mbed.h"
ikenna1 39:7824f9080f59 5 #include "N5110.h"
ikenna1 39:7824f9080f59 6 #include "Gamepad.h"
ikenna1 39:7824f9080f59 7
ikenna1 45:fe5fc85a5c73 8 /** Lore Class
ikenna1 45:fe5fc85a5c73 9 @brief Library for displaying tips about the game after every round
ikenna1 45:fe5fc85a5c73 10 @author Ozoemena Adrian Ikenna
ikenna1 45:fe5fc85a5c73 11 @date 8th May 2019
ikenna1 45:fe5fc85a5c73 12 */
ikenna1 39:7824f9080f59 13 class Lore
ikenna1 39:7824f9080f59 14 {
ikenna1 39:7824f9080f59 15 public:
ikenna1 45:fe5fc85a5c73 16 /** constructor */
ikenna1 39:7824f9080f59 17 Lore();
ikenna1 45:fe5fc85a5c73 18 /** destructor */
ikenna1 39:7824f9080f59 19 ~Lore();
ikenna1 39:7824f9080f59 20
ikenna1 45:fe5fc85a5c73 21 /** Displays a random tip about the game
ikenna1 47:5ae8668af63f 22 *@param &lcd pointer to the N5110 library used for the lcd display
ikenna1 47:5ae8668af63f 23 *@param rand random number generated in main function and scaled for use in class
ikenna1 45:fe5fc85a5c73 24 */
ikenna1 41:e1fa36c0492e 25 void display(N5110 &lcd, int rand);
ikenna1 45:fe5fc85a5c73 26 /** Prints a tip about the enemy ship, seeker, on screen
ikenna1 47:5ae8668af63f 27 *@param &lcd pointer to the N5110 library used for the lcd display
ikenna1 45:fe5fc85a5c73 28 */
ikenna1 41:e1fa36c0492e 29 void seeker(N5110 &lcd);
ikenna1 45:fe5fc85a5c73 30 /** Prints a tip about the enemy ship, shooter, on screen
ikenna1 47:5ae8668af63f 31 *@param &lcd pointer to the N5110 library used for the lcd display
ikenna1 45:fe5fc85a5c73 32 */
ikenna1 39:7824f9080f59 33 void shooter(N5110 &lcd);
ikenna1 45:fe5fc85a5c73 34 /** Prints a tip about a player ship, imperion, on screen
ikenna1 47:5ae8668af63f 35 *@param &lcd pointer to the N5110 library used for the lcd display
ikenna1 45:fe5fc85a5c73 36 */
ikenna1 41:e1fa36c0492e 37 void imperion(N5110 &lcd);
ikenna1 45:fe5fc85a5c73 38 /** Prints a tip about a player ship, kestrel, on screen
ikenna1 47:5ae8668af63f 39 *@param &lcd pointer to the N5110 library used for the lcd display
ikenna1 45:fe5fc85a5c73 40 */
ikenna1 41:e1fa36c0492e 41 void kestrel(N5110 &lcd);
ikenna1 45:fe5fc85a5c73 42 /** Prints a tip about a player ship, orion, on screen
ikenna1 47:5ae8668af63f 43 *@param &lcd pointer to the N5110 library used for the lcd display
ikenna1 45:fe5fc85a5c73 44 */
ikenna1 41:e1fa36c0492e 45 void orion(N5110 &lcd);
ikenna1 45:fe5fc85a5c73 46 /** Prints a tip about the menu on screen
ikenna1 47:5ae8668af63f 47 *@param &lcd pointer to the N5110 library used for the lcd display
ikenna1 45:fe5fc85a5c73 48 */
ikenna1 41:e1fa36c0492e 49 void menu1(N5110 &lcd);
ikenna1 45:fe5fc85a5c73 50 /** Displays game intro
ikenna1 47:5ae8668af63f 51 *@param &lcd pointer to the N5110 library used for the lcd display
ikenna1 45:fe5fc85a5c73 52 */
ikenna1 41:e1fa36c0492e 53 void intro(N5110 &lcd);
ikenna1 41:e1fa36c0492e 54
ikenna1 39:7824f9080f59 55 private:
ikenna1 39:7824f9080f59 56
ikenna1 39:7824f9080f59 57 };
ikenna1 39:7824f9080f59 58 #endif