class Player
{
private:
bool charmander;
public:
Player();
void SetPokemon();
bool getChoice();
};
Player::Player()
{
charmander = false;
}
void Player::SetPokemon()
{
if( //condtions met here.. )
{
charmander = true;
}
}
bool Player::getChoice()
{
return charmander;
}
class Enemy
{
public:
void SetPokemon( bool choice );
};
int main()
{
Player thisPlayer;
Enemy thisEnemy;
thisEnemy.SetPokemon(thisPlayer.getChoice());
//Do all the stuff;
}
Or you can simply use Inheritance to just directly acces the boolean choice and update everything in the enemy class. Its all upto you.