Game codes for Pokemon Academy Yiu Fai Kwok - 201198802 I have read the University Regulations on Plagiarism and state that the work covered by this declaration is my own and does not contain any unacknowledged work from other sources.

Dependencies:   mbed FXOS8700CQ mbed-rtos

Committer:
yfkwok
Date:
Mon Apr 29 20:59:49 2019 +0000
Revision:
25:31111e6e13ad
Parent:
17:5d8ff39a0e49
Child:
31:0d2c19a285f6
29/04/2019 - Class documentation update

Who changed what in which revision?

UserRevisionLine numberNew contents of line
yfkwok 25:31111e6e13ad 1
yfkwok 25:31111e6e13ad 2 #ifndef BULBASAUR_H
yfkwok 25:31111e6e13ad 3 #define BULBASAUR_H
yfkwok 25:31111e6e13ad 4
yfkwok 25:31111e6e13ad 5 #include "mbed.h"
yfkwok 25:31111e6e13ad 6 #include "N5110.h"
yfkwok 25:31111e6e13ad 7 #include "Gamepad.h"
yfkwok 25:31111e6e13ad 8
yfkwok 17:5d8ff39a0e49 9 /** Bulbasaur Class
yfkwok 17:5d8ff39a0e49 10 * @brief This class contains all information such as sprites and descriptions for the character Bulbasaur
yfkwok 17:5d8ff39a0e49 11 * @version 1.0
yfkwok 17:5d8ff39a0e49 12 * @author Yiu Fai Kwok
yfkwok 17:5d8ff39a0e49 13 * @date Match, 2019
yfkwok 17:5d8ff39a0e49 14 */
yfkwok 2:464c7e62d97d 15
yfkwok 2:464c7e62d97d 16 class Bulbasaur
yfkwok 2:464c7e62d97d 17 {
yfkwok 2:464c7e62d97d 18
yfkwok 2:464c7e62d97d 19 public:
yfkwok 17:5d8ff39a0e49 20 /** Constructor */
yfkwok 2:464c7e62d97d 21 Bulbasaur();
yfkwok 17:5d8ff39a0e49 22 /** Deconstructor */
yfkwok 2:464c7e62d97d 23 ~Bulbasaur();
yfkwok 2:464c7e62d97d 24
yfkwok 17:5d8ff39a0e49 25 /**
yfkwok 17:5d8ff39a0e49 26 * @brief Draw the primary sprite
yfkwok 17:5d8ff39a0e49 27 * @param position x pos_x (int)
yfkwok 17:5d8ff39a0e49 28 * @param position y pos_y (int)
yfkwok 17:5d8ff39a0e49 29 * @details Draws the primary evolution of the character, the position will be determined by parameters pos_x and pos_y
yfkwok 17:5d8ff39a0e49 30 */
yfkwok 2:464c7e62d97d 31 void draw_cha1_sprite(int pos_x,int pos_y,N5110 &lcd);
yfkwok 17:5d8ff39a0e49 32
yfkwok 17:5d8ff39a0e49 33 /**
yfkwok 17:5d8ff39a0e49 34 * @brief Draw the evolution 1 sprite
yfkwok 17:5d8ff39a0e49 35 * @details Draws the primary evolution of the character which is displayed when evolving
yfkwok 17:5d8ff39a0e49 36 */
yfkwok 12:71683453f66a 37 void evo_1_sprite(N5110 &lcd);
yfkwok 17:5d8ff39a0e49 38
yfkwok 17:5d8ff39a0e49 39 /**
yfkwok 17:5d8ff39a0e49 40 * @brief Draw the evolution 2 sprite
yfkwok 17:5d8ff39a0e49 41 * @details Draws the secondary evolution of the character which is displayed when evolving
yfkwok 17:5d8ff39a0e49 42 */
yfkwok 10:adff3c804985 43 void evo_2_sprite(N5110 &lcd);
yfkwok 17:5d8ff39a0e49 44
yfkwok 17:5d8ff39a0e49 45 /**
yfkwok 17:5d8ff39a0e49 46 * @brief Draw the name title
yfkwok 17:5d8ff39a0e49 47 * @param position x x (int)
yfkwok 17:5d8ff39a0e49 48 * @param position y y (int)
yfkwok 17:5d8ff39a0e49 49 * @details Draws the name tile of the character, the position will be determined by parameters x and y
yfkwok 17:5d8ff39a0e49 50 */
yfkwok 10:adff3c804985 51 void evo_3_sprite(N5110 &lcd, int x, int y);
yfkwok 17:5d8ff39a0e49 52
yfkwok 17:5d8ff39a0e49 53 /**
yfkwok 17:5d8ff39a0e49 54 * @brief Draw the congratulation sprite for evolution 1
yfkwok 17:5d8ff39a0e49 55 * @details Draws the primary evolution of the character which is displayed after evolution
yfkwok 17:5d8ff39a0e49 56 */
yfkwok 10:adff3c804985 57 void evo_1_cong(N5110 &lcd);
yfkwok 17:5d8ff39a0e49 58
yfkwok 17:5d8ff39a0e49 59 /**
yfkwok 17:5d8ff39a0e49 60 * @brief Draw the congratulation sprite for evolution 2
yfkwok 17:5d8ff39a0e49 61 * @details Draws the secondary evolution of the character which is displayed after evolution
yfkwok 17:5d8ff39a0e49 62 */
yfkwok 10:adff3c804985 63 void evo_2_cong(N5110 &lcd);
yfkwok 17:5d8ff39a0e49 64
yfkwok 17:5d8ff39a0e49 65 /**
yfkwok 17:5d8ff39a0e49 66 * @brief Draw the congratulation sprite for evolution 3
yfkwok 17:5d8ff39a0e49 67 * @details Draws the final evolution of the character which is displayed after evolution
yfkwok 17:5d8ff39a0e49 68 */
yfkwok 10:adff3c804985 69 void evo_3_cong(N5110 &lcd);
yfkwok 17:5d8ff39a0e49 70
yfkwok 17:5d8ff39a0e49 71 /**
yfkwok 17:5d8ff39a0e49 72 * @brief Display the descrption of the character
yfkwok 17:5d8ff39a0e49 73 * @details Contain the detail description of the character and the instruction sets to navigate through the manual
yfkwok 17:5d8ff39a0e49 74 */
yfkwok 2:464c7e62d97d 75 void description(Gamepad &pad, N5110 &lcd);
yfkwok 2:464c7e62d97d 76
yfkwok 2:464c7e62d97d 77 private:
yfkwok 2:464c7e62d97d 78
yfkwok 2:464c7e62d97d 79 int _pos_x;
yfkwok 2:464c7e62d97d 80 int _pos_y;
yfkwok 12:71683453f66a 81 int _x;
yfkwok 12:71683453f66a 82 int _y;
yfkwok 2:464c7e62d97d 83
yfkwok 2:464c7e62d97d 84 };
yfkwok 2:464c7e62d97d 85
yfkwok 2:464c7e62d97d 86 #endif