![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
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
Characters/Charmander.h
- Committer:
- yfkwok
- Date:
- 2019-04-29
- Revision:
- 25:31111e6e13ad
- Parent:
- 17:5d8ff39a0e49
- Child:
- 31:0d2c19a285f6
File content as of revision 25:31111e6e13ad:
#ifndef CHARMANDER_H #define CHARMANDER_H #include "mbed.h" #include "N5110.h" #include "Gamepad.h" /** Charmander Class * @brief This class contains all information such as sprites and descriptions for the character Charmander * @version 1.0 * @author Yiu Fai Kwok * @date Match, 2019 */ class Charmander { public: /** Constructor */ Charmander(); /** Deconstructor */ ~Charmander(); /** * @brief Draw the primary sprite * @param position x pos_x (int) * @param position y pos_y (int) * @details Draws the primary evolution of the character, the position will be determined by parameters pos_x and pos_y */ void draw_cha1_sprite(int pos_x,int pos_y,N5110 &lcd); /** * @brief Draw the secondary sprite * @param position x pos_x (int) * @param position y pos_y (int) * @details Draws the secondary evolution of the character, the position will be determined by parameters pos_x and pos_y */ void draw_cha2_sprite(int pos_x,int pos_y,N5110 &lcd); /** * @brief Draw the tertiary sprite * @param position x pos_x (int) * @param position y pos_y (int) * @details Draws the tertiary evolution of the character, the position will be determined by parameters pos_x and pos_y */ void draw_cha3_sprite(int pos_x,int pos_y,N5110 &lcd); /** * @brief Draw the primary alternative sprite * @param position x pos_x (int) * @param position y pos_y (int) * @details Draws the alternative primary evolution of the character, the position will be determined by parameters pos_x and pos_y */ void draw_cha1_alt_sprite(int pos_x,int pos_y,N5110 &lcd); /** * @brief Draw the secondary alternative sprite * @param position x pos_x (int) * @param position y pos_y (int) * @details Draws the alternative secondary evolution of the character, the position will be determined by parameters pos_x and pos_y */ void draw_cha2_alt_sprite(int pos_x,int pos_y,N5110 &lcd); /** * @brief Draw the tertiary alternative sprite * @param position x pos_x (int) * @param position y pos_y (int) * @details Draws the alternative tertiary evolution of the character, the position will be determined by parameters pos_x and pos_y */ void draw_cha3_alt_sprite(int pos_x,int pos_y,N5110 &lcd); /** * @brief Draw the evolution 1 sprite * @details Draws the primary evolution of the character which is displayed when evolving */ void evo_1_sprite(N5110 &lcd); /** * @brief Draw the evolution 2 sprite * @details Draws the secondary evolution of the character which is displayed when evolving */ void evo_2_sprite(N5110 &lcd); /** * @brief Draw the name title * @param position x x (int) * @param position y y (int) * @details Draws the name tile of the character, the position will be determined by parameters x and y */ void evo_3_sprite(N5110 &lcd, int x, int y); /** * @brief Draw the congratulation sprite for evolution 1 * @details Draws the primary evolution of the character which is displayed after evolution */ void evo_1_cong(N5110 &lcd); /** * @brief Draw the congratulation sprite for evolution 2 * @details Draws the secondary evolution of the character which is displayed after evolution */ void evo_2_cong(N5110 &lcd); /** * @brief Draw the congratulation sprite for evolution 3 * @details Draws the final evolution of the character which is displayed after evolution */ void evo_3_cong(N5110 &lcd); /** * @brief Display the descrption of the character * @details Contain the detail description of the character and the instruction sets to navigate through the manual */ void description(Gamepad &pad, N5110 &lcd); private: int _pos_x; int _pos_y; int _x; int _y; }; #endif