void goToIdle(int pidPhone, bool isForShowJava) { if( isForShowJava ) sendReturnToIdle(); sendMes( pidPhone, "raise()" ); }
void GameWidget::setRefuses(int count) { ref = true; for(int i = 0; i < count; i++) { setRefuse(); if(i+1 >= count) emit sendMes("Ugh, there is dirty! It would not hurt to clean."); } ref = false; }
void GameWidget::setRefuse() { count_ref ++; Refuse *ref = new Refuse(NULL); connect(ref, SIGNAL(deleted(Refuse*)),this, SLOT(destroyRefuse(Refuse *))); QGraphicsProxyWidget *proxy = m_scene->addWidget(ref); int x = rand()%370; int y = rand()%40+160; proxy->setPos(x,y); m_pet->refuseExists(); if(!ref) emit sendMes("Ugh, there is dirty! It would not hurt to clean."); }
void pidToTop(int pid) { sendMes( pid, "raise()" ); }
void pidQuit(int pid) { sendMes( pid, "quickQuit()" ); }