-
Notifications
You must be signed in to change notification settings - Fork 1
/
pokemon.h
58 lines (50 loc) · 1.04 KB
/
pokemon.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#ifndef _POKEMON_H_
#define _POKEMON_H_
#include "type.h"
#include "move.h"
#include <vector>
#include <string>
using namespace std;
class Pokemon
{
protected:
int o_vida;
int o_vidamax;
Type o_type;
vector<Move> o_moves;
string o_name;
public:
enum class NomPok
{
CHARMANDER, // FIRE 1
CHARIZARD,
ARTICUNO, // ICE 2
PIDGEY, // WIND 3
PIDGEOT,
BULBASAUR, // EARTH 4
VENUSAUR,
ZAPDOS, // THUNDER 5
PIKACHU,
SQUIRTLE, // WATER 6
BLASTOISE,
PORYGON, // NORMAL 7
EEVEE
};
Pokemon();
Pokemon(Type type, int vida);
Pokemon(int type, int vida);
Pokemon(Type type, int vida, vector<Move> moves);
Pokemon(NomPok name);
void setType(Type type);
void setLife(int vida);
void setMoves(vector<Move> moves);
void setPokName(NomPok name);
void heal();
void heal(int cac);
void changeLife(int vida);
vector<Move> get_Moves()const;
Type tipo() const; // retorna el tipo
int vida() const; // retorna la vida
string name() const;
};
#endif