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
Diff: Game_two/Character_files/Game_two_cha.h
- Revision:
- 33:f7ec806e14b6
- Parent:
- 24:366f87cc3ca3
--- a/Game_two/Character_files/Game_two_cha.h Wed May 08 15:14:55 2019 +0000 +++ b/Game_two/Character_files/Game_two_cha.h Wed May 08 23:57:04 2019 +0000 @@ -21,46 +21,52 @@ Game_two_cha(); /** Destructor */ ~Game_two_cha(); + /** * @brief Initialize the class parameters - * @param x * @details Initialize the character's position, speed and player score */ void init(); + /** * @brief Draw the character - * @param cha + * @param character parameter cha (int) * @details Draw the character on lcd screen, choose character depending on parameter (cha) */ void draw(N5110 &lcd, int cha); + /** * @brief Draw the character's alternative sprite - * @param cha + * @param character parameter cha (int) * @details Draw the character's alternative sprite on lcd screen to create motion, choose character depending on parameter (cha) */ void draw_alt(N5110 &lcd, int cha); + /** * @brief Update the character - * @param d - * @param mag + * @param direction d (Direction) + * @param magnitude mag (float) * @details Update the character position by referencing the joystick input on direction and magnitue */ void update(Direction d,float mag); + /** * @brief Set the score - * @param score + * @param score (int) * @details Set the score of the player */ void add_score(); + /** * @brief Get the score - * @return _score + * @return score (int) * @details Return the score of the player */ int get_score(); + /** * @brief Get the position of the character - * @return p + * @return position of character (Vector2D) * @details Return the position of the character */ Vector2D get_pos();