コード例 #1
0
ファイル: monster.cpp プロジェクト: matheus013/BattleMonster
void Monster::setAttack(int attack){
    if (m_attack == attack)
        return;

    m_attack = attack;
    emit attackChanged(attack);
}
コード例 #2
0
ファイル: qcompressor.cpp プロジェクト: neochapay/qmx2482
void QCompressor::setAttack(double attack)
{
    QMutexLocker mutexLocker(&_mutex);
    _attack = attack;
    emit attackChanged(_attack);
}