Exemplo n.º 1
0
    private void processGetMaterialActionRequest(AgentMessage message)
    {
        Action <GatheredMaterialConcept> actionOnCollectingCompleted = getActionOnCollectingCompleted(message);

        RPGAgentToolkit.Core.Behaviour behaviour = getCollectingBehaviour(message, actionOnCollectingCompleted);
        AddBehaviour(behaviour);

        AgentMessage reply = message.Reply(AgentMessage.PerformativeType.AGREE);

        Send(reply);
    }
Exemplo n.º 2
0
 public void RemoveBehaviour(Behaviour behaviour)
 {
     behaviour.Stop();
     behaviours.Remove(behaviour);
 }
Exemplo n.º 3
0
 public void AddBehaviour(Behaviour behaviour)
 {
     behaviours.Add(behaviour);
     behaviour.Start();
 }