// ---------------------------------------------------------------------------- bool KartProperties::operator<(const KartProperties &other) const { PlayerProfile *p = PlayerManager::getCurrentPlayer(); bool this_is_locked = p->isLocked(getIdent()); bool other_is_locked = p->isLocked(other.getIdent()); if (this_is_locked == other_is_locked) { return getName() < other.getName(); } else return other_is_locked; return true; } // operator<
/** Returns a name to be displayed for this kart. */ virtual const irr::core::stringw& getName() const { return m_kart_properties->getName(); }
/** Returns a name to be displayed for this kart. */ virtual const wchar_t* getName() const { return m_kart_properties->getName(); }