Ejemplo n.º 1
0
Droid::Droid(Droid const & object) : Id(object.getId()),
                                     Energy(object.getEnergy()),
                                     Attack(object.Attack),
                                     Thoughness(object.Thoughness)

{
    Status = new std::string("Standing by");
    BattleData = new DroidMemory;
    std::cout << "Droid '" << Id << "' Activated," << " Memory Dumped" <<std::endl;
}
Ejemplo n.º 2
0
bool Droid::operator!=(const Droid &e) const
{
    if (this->getStatus() == e.getStatus())
            return false;
   else
            return true;
}
Ejemplo n.º 3
0
bool Droid::operator!=(Droid const& other) const
{
    return !(getStatus() && other.getStatus() && *getStatus() == *(other.getStatus()));
}