void DataView::Right() { //FIXME: synchronisation pthread_mutex_lock(&items_mutex); PlayClip(*menu_tab); current_list = (current_list + 1)%2; pthread_mutex_unlock(&items_mutex); //StopClip(); //throw ErrorMessage(USER_QUIT,"User requested exit"); }
void ArAIAttackCommand::Update(float dt) { // Update orientation auto entityPtr = ArGameApp::Get()->GetEntityManager()->FindEntity(mTarget); auto targetEntity = std::dynamic_pointer_cast<ArNPCEntity>(entityPtr); if (targetEntity) { ArMoveProperty::UpdateRotation(mEntity, targetEntity->GetRenderObj()->GetPosition(), dt, mEntity->GetAttribute()->GetEntityConfig()->turnrate); } mTimer += dt; if (mTimer >= mCoolDownTime) { PlayClip(); } }
void ArAIAttackCommand::Redo() { PlayClip(); }
void ArAIAttackCommand::Enter() { PlayClip(); }