Exemplo n.º 1
0
        private IActor CreateMonster(IActorManager actorManager, IMonsterScheme monsterScheme, IGraphNode startNode, IBotPlayer botPlayer)
        {
            var person = _monsterFactory.Create(monsterScheme);
            var actor  = new Actor(person, botPlayer, startNode);

            actorManager.Add(actor);
            return(actor);
        }
Exemplo n.º 2
0
        private IActor CreateMonster(IActorManager actorManager, IMonsterScheme monsterScheme, IGraphNode startNode,
                                     IActorTaskSource <ISectorTaskSourceContext> actorTaskSource)
        {
            var person = _monsterFactory.Create(monsterScheme);
            var actor  = new Actor(person, actorTaskSource, startNode);

            actorManager.Add(actor);
            return(actor);
        }