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

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

            var tasks = taskSource.GetActorTasks(actor);

            return(tasks);
        }