//Compares that two gears are equal bool Gear::operator == (const Gear& other) { return ((this->ownHead == other.getOwnItem(HEAD)) && (this->ownBoots == other.getOwnItem(BOOTS)) && (this->ownRing == other.getOwnItem(RING)) && (this->ownShield == other.getOwnItem(SHIELD)) && (this->ownWeapon == other.getOwnItem(WEAPON))); }