Example #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);
    }
Example #2
0
 public void RemoveBehaviour(Behaviour behaviour)
 {
     behaviour.Stop();
     behaviours.Remove(behaviour);
 }
Example #3
0
 public void AddBehaviour(Behaviour behaviour)
 {
     behaviours.Add(behaviour);
     behaviour.Start();
 }