예제 #1
0
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");
}
예제 #2
0
    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();
        }
    }
예제 #3
0
 void ArAIAttackCommand::Redo()
 {
     PlayClip();
 }
예제 #4
0
 void ArAIAttackCommand::Enter()
 {
     PlayClip();
 }