Esempio n. 1
0
QString Card::getFullName(bool include_suit) const{
    QString name = getName();
    if(include_suit){
        QString suit_name = Sanguosha->translate(getSuitString());
        return QString("%1%2 %3").arg(suit_name).arg(getNumberString()).arg(name);
    }else
        return QString("%1 %2").arg(getNumberString()).arg(name);
}
Esempio n. 2
0
QString Card::toString() const{
    if(!isVirtualCard())
        return QString::number(id);
    else
        return QString("%1:%2[%3:%4]=%5")
                .arg(objectName()).arg(skill_name)
                .arg(getSuitString()).arg(getNumberString()).arg(subcardString());
}
Esempio n. 3
0
QString Card::getLogName() const{
    QString suit_char;
    QString number_string;

    if(suit != Card::NoSuit)
        suit_char = QString("<img src='image/system/suit/%1.png' width='15' height='15' />").arg(getSuitString());
    else
        suit_char = tr("NoSuit");

    if(number != 0)
        number_string = getNumberString();

    return QString("%1[%2%3]").arg(getName()).arg(suit_char).arg(number_string);
}
Esempio n. 4
0
QString LuaSkillCard::toString(bool hidden) const{
    Q_UNUSED(hidden);
    return QString("#%1[%2:%3]:%4:%5").arg(objectName())
           .arg(getSuitString()).arg(getNumberString())
           .arg(subcardString()).arg(user_string);
}