Aaron Lad / Pokemon

Dependents:   2645_Game_Project_2

Committer:
200923317
Date:
Wed May 03 20:56:09 2017 +0000
Revision:
6:435db32c2dbc
Parent:
5:30f8eda741db
pokemon.h documented

Who changed what in which revision?

UserRevisionLine numberNew contents of line
200923317 6:435db32c2dbc 1 /** Pokemon Class
200923317 6:435db32c2dbc 2 @brief Used for containing Pokemon Stats within the game, and doing the some of the calculations for the battles
200923317 6:435db32c2dbc 3 @brief Also uses xp to determine wether your pokeon should level up or not
200923317 6:435db32c2dbc 4
200923317 6:435db32c2dbc 5 @brief Revision 2
200923317 6:435db32c2dbc 6
200923317 6:435db32c2dbc 7 @author Aaron Lad
200923317 6:435db32c2dbc 8 @date 3rd May 2017
200923317 6:435db32c2dbc 9 */
200923317 6:435db32c2dbc 10
200923317 0:1fa2aa6d65e8 11 #include <string>
200923317 5:30f8eda741db 12 #include "N5110.h"
200923317 6:435db32c2dbc 13
200923317 4:237027245058 14 typedef signed int uns;
200923317 6:435db32c2dbc 15
200923317 0:1fa2aa6d65e8 16 extern std::string TypeString[3];
200923317 0:1fa2aa6d65e8 17 extern std::string name[3];
200923317 0:1fa2aa6d65e8 18 typedef enum Type {Fire, Grass, Water} PokeType; //3 different pokemon types in the game
200923317 0:1fa2aa6d65e8 19
200923317 0:1fa2aa6d65e8 20 class Pokemon
200923317 0:1fa2aa6d65e8 21 {
200923317 0:1fa2aa6d65e8 22
200923317 0:1fa2aa6d65e8 23 public:
200923317 0:1fa2aa6d65e8 24 Pokemon();
200923317 6:435db32c2dbc 25
200923317 6:435db32c2dbc 26 /* Pokemon Class for the chosen pokemon.
200923317 6:435db32c2dbc 27 * @param uns - A signed variable used for the Level and HP of the Pokemon
200923317 6:435db32c2dbc 28 * @param PokeType - The typing for the chosen pokemon
200923317 6:435db32c2dbc 29 */
200923317 6:435db32c2dbc 30 Pokemon(uns, uns, PokeType);
200923317 6:435db32c2dbc 31
200923317 6:435db32c2dbc 32 /* set Type used to update the Typing for a Pokemon within the class
200923317 6:435db32c2dbc 33 * @param PokeType - variable of either Grass, Fire or Water
200923317 6:435db32c2dbc 34 */
200923317 6:435db32c2dbc 35 void setType(PokeType);
200923317 6:435db32c2dbc 36
200923317 6:435db32c2dbc 37 /* level up used to incrememnt the level of the Players pokemon
200923317 6:435db32c2dbc 38 */
200923317 6:435db32c2dbc 39 void levelUp();
200923317 6:435db32c2dbc 40
200923317 6:435db32c2dbc 41 /* win, used to increase the exp of the players pokemon, and to check if a level up is needed
200923317 6:435db32c2dbc 42 * @param N5110 &lcd - allows the function the use of the N5110 class
200923317 6:435db32c2dbc 43 */
200923317 6:435db32c2dbc 44 void win(N5110 &lcd);
200923317 6:435db32c2dbc 45
200923317 6:435db32c2dbc 46 // String to define the Name of the Players Pokemons Name
200923317 6:435db32c2dbc 47 std::string Name(void);
200923317 6:435db32c2dbc 48
200923317 6:435db32c2dbc 49 //String to define the Name of the Players Pokemons Type
200923317 6:435db32c2dbc 50 std::string Type(void);
200923317 6:435db32c2dbc 51
200923317 6:435db32c2dbc 52 //String to define the Name of the Players Pokemons HealthPoints
200923317 6:435db32c2dbc 53 std::string HP(void);
200923317 6:435db32c2dbc 54
200923317 6:435db32c2dbc 55 //String to define the Name of the Players Pokemons level
200923317 6:435db32c2dbc 56 std::string Level(void);
200923317 6:435db32c2dbc 57
200923317 6:435db32c2dbc 58 /* Determines the damage done by your pokemon
200923317 6:435db32c2dbc 59 * @param Pokemon e - The stats of the opposing pokemon
200923317 6:435db32c2dbc 60 * @returns
200923317 6:435db32c2dbc 61 *
200923317 6:435db32c2dbc 62 * damage2 - pokemons damage
200923317 6:435db32c2dbc 63 */
200923317 2:bbd4389980c3 64 int YourTurn(Pokemon e);
200923317 6:435db32c2dbc 65
200923317 6:435db32c2dbc 66 /* Determines the damage done by the opposing Pokemon
200923317 6:435db32c2dbc 67 * @param Pokemon e - The stats of the opposing pokemon
200923317 6:435db32c2dbc 68 * @returns
200923317 6:435db32c2dbc 69 *
200923317 6:435db32c2dbc 70 * damage1 - pokemons damage
200923317 6:435db32c2dbc 71 */
200923317 2:bbd4389980c3 72 int OpponentTurn(Pokemon e);//battle simulation
200923317 6:435db32c2dbc 73
200923317 6:435db32c2dbc 74 /* Gives the max Healthpoints for the opposing pokemon
200923317 6:435db32c2dbc 75 * @param Pokemon e - The stats of the opposing pokemon
200923317 6:435db32c2dbc 76 * @returns
200923317 6:435db32c2dbc 77 *
200923317 6:435db32c2dbc 78 * uns e.healthPoints;
200923317 6:435db32c2dbc 79 */
200923317 4:237027245058 80 int HPO(Pokemon e);
200923317 6:435db32c2dbc 81
200923317 6:435db32c2dbc 82 /* Gives the max HP for your Pokemon
200923317 6:435db32c2dbc 83 * @returns
200923317 6:435db32c2dbc 84 *
200923317 6:435db32c2dbc 85 * uns healthPoints;
200923317 6:435db32c2dbc 86 */
200923317 4:237027245058 87 int HPA();
200923317 0:1fa2aa6d65e8 88
200923317 0:1fa2aa6d65e8 89
200923317 0:1fa2aa6d65e8 90 private: //stats for pokemon
200923317 6:435db32c2dbc 91
200923317 6:435db32c2dbc 92 //--------vairables-----------
200923317 0:1fa2aa6d65e8 93 PokeType typing;
200923317 0:1fa2aa6d65e8 94 uns level;
200923317 0:1fa2aa6d65e8 95 uns healthPoints;
200923317 0:1fa2aa6d65e8 96 uns exp;
200923317 0:1fa2aa6d65e8 97 uns lvlUp;
200923317 0:1fa2aa6d65e8 98 };
200923317 0:1fa2aa6d65e8 99
200923317 0:1fa2aa6d65e8 100
200923317 0:1fa2aa6d65e8 101