Exemple #1
0
void Controller::setT(int t)
{
    if (t == _t)
        return;
    _t = t;
    emit tChanged();
}
Exemple #2
0
void Map::setT(qreal t)
{
    if (t == mT)
            return;
    mT = t;
    emit tChanged();
    mWindow->update();
}
Exemple #3
0
Controller::Controller(QObject *parent) :
    QObject(parent),
    _t(0),
    current_room("")
{
    current_state = Controller::State(engine.state());
    connect(this, SIGNAL(tChanged()), this, SLOT(update()));
}
void Scene::setT(qreal t)
{
    if(m_t == t)
        return;
    m_t = t;
    emit tChanged();
    if(window()){
        window()->update();
    }
}