public void Intent(IIntention intention, IActor activeActor)
        {
            if (CurrentControl != ActorTaskSourceControl.Human)
            {
                throw new InvalidOperationException("Intension available only under human control.");
            }

            _humanActorTaskSource.Intent(intention, activeActor);
        }
Beispiel #2
0
        private static IActorTask[] SetHumanIntention(IActor actor,
                                                      IHumanActorTaskSource taskSource,
                                                      IIntention intention)
        {
            taskSource.Intent(intention);

            var tasks = taskSource.GetActorTasks(actor);

            return(tasks);
        }