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
|
#ifndef PKMN_H
#define PKMN_H
constant Attack Hydropump (120, 5, 75),
Ember (40, 30, 95),
Splash (0, 15, 0),
Dig (90, 20, 90); //can add more constants here, just moved it to the top
class Attack
{
public:
Attack (int, int, int);
int power,
pp,
accuracy;
}
Attack::Attack(int pow, int pp, int ac)
{
this->power = pow;
this->pp = pp;
this->accuracy = ac;
}
class Pokemon
{
public:
Pokemon (Attack, Attack, Attack, Attack); //you could add arguements for stats :/
Attack *attack1,
*attack2,
*attack3,
*attack4;
int offense,
defense,
specOffense,
specDefense,
pp; //OG blue/red stats :P
double health;
} Blastoise (Hydropump, Ember, Splash, Dig); //just an example, should be deleted for real use
Pokemon::Pokemon (Attack one, Attack two, Attack three, Attack four) //you would also have to add those stat args here (from the class constructor line)
{
this->attack1 = &one;
this->attack2 = &two;
this->attack3 = &three;
this->attack4 = &four;
}
#endif
|