Beispiel #1
0
    /* What is the current state to START the conversation?  */
    private bool inConversation(Conversation c)
    {
        EventSettingValue  esv   = new EventSettingValue();
        AgentStatusManager agent = c.getAgent();

        esv.setWantLookedAt(c.getWantLookedAt());
        esv.setWantInRange(c.getWantInRange());
        esv.setCurrPhysical(agent.getPhysicalState());
        return(esv.checkStateMatch());
    }
Beispiel #2
0
    /* ********** Accessors: State Changes ********** */
    /* What is the current state to START the event? */
    private bool getState(EventIM e)
    {
        EventSettingValue  esv   = new EventSettingValue();
        AgentStatusManager agent = e.agent.GetComponent <AgentStatusManager>();

        //grabbing author choices from UNITY
        esv.setWantLookedAt(e.wantLookedAt);
        esv.setWantInRange(e.wantInRange);
        //storing the current state of the user
        esv.setCurrPhysical(agent.getPhysicalState());
        return(esv.checkStateMatch());
    }