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; }
bool Droid::operator!=(const Droid &e) const { if (this->getStatus() == e.getStatus()) return false; else return true; }
bool Droid::operator!=(Droid const& other) const { return !(getStatus() && other.getStatus() && *getStatus() == *(other.getStatus())); }