Ejemplo n.º 1
0
// ----------------------------------------------------------------------------
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<
Ejemplo n.º 2
0
 /** Returns a name to be displayed for this kart. */
 virtual const irr::core::stringw& getName() const 
                                    { return m_kart_properties->getName(); }
Ejemplo n.º 3
0
 /** Returns a name to be displayed for this kart. */
 virtual const wchar_t* getName() const 
                                     { return m_kart_properties->getName(); }