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/Squirtle.h

Committer:
yfkwok
Date:
2019-05-09
Revision:
34:3ddfaa217eca
Parent:
31:0d2c19a285f6

File content as of revision 34:3ddfaa217eca:

#ifndef SQUIRTLE_H
#define SQUIRTLE_H

#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"

/** Squirtle Class
* @brief This class contains all information such as sprites and descriptions for the character Squirtle
* @version 1.0
* @author Yiu Fai Kwok
* @date Match, 2019
*/

class Squirtle
{

public:
    /** Constructor */
    Squirtle();
    /** Deconstructor */
    ~Squirtle();

    /**
     * @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
     * @param position x (int)
     * @param position y (int)
     * @details Draws the primary evolution of the character which is displayed when evolving
     */
    void evo_1_sprite(N5110 &lcd, int x, int y);
    
    /**
     * @brief Draw the evolution 2 sprite
     * @param position x (int)
     * @param position y (int)
     * @details Draws the secondary evolution of the character which is displayed when evolving
     */
    void evo_2_sprite(N5110 &lcd, int x, int y);
    
    /**
     * @brief Draw the name title
     * @param position x (int)
     * @param position 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