void Controller::setT(int t) { if (t == _t) return; _t = t; emit tChanged(); }
void Map::setT(qreal t) { if (t == mT) return; mT = t; emit tChanged(); mWindow->update(); }
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(); } }