예제 #1
0
    protected void FSM_Pasear()
    {
        switch (estado_pasear)
        {
        case STATE_Pasear.PASEANDO:
            currentState       = "[FSM_Pasear] Paseando";
            attracionObjective = AttractionInSight();
            if (attracionObjective == null)
            {
                currentState = "[FSM_Pasear] Paseando";
                Pasear();
            }
            else
            {
                isWandering = false;
                attracionObjective.AddUser(this);

                lastAttractionVisited = attracionObjective;
                estado_pasear         = STATE_Pasear.ESPERANDO_ATRACCION;
                currentState          = "[FSM_Pasear] Esperando en atracción";
                ShowEmoticon("Fun");
            }
            break;

        case STATE_Pasear.ESPERANDO_ATRACCION:
            currentState = "[FSM_Pasear] Esperando en atracción";
            break;

        case STATE_Pasear.MONTARSE_ATRACCIÓN:
            // No es necesario que haga nada
            break;
        }
    }