Exemplo n.º 1
0
        public void TryStartFightWith(GroupMonster monster)
        {
            // todo
            var cell = monster.Position.Cell;

            Move(cell);
        }
Exemplo n.º 2
0
        public bool TryStartFightWith(GroupMonster monster, ISimplePathFinder pathFinder = null)
        {
            // todo
            var cell = monster.Cell;

            return(Move(cell, pathFinder));
        }
Exemplo n.º 3
0
        private static string SeekedInGroup(GroupMonster group, Bot bot)
        {
            if (group == null) return null;

            string[] monsters = group.Monsters.Where(entry => IsSeeking(entry.Name.ToLowerInvariant())).Select(entry => entry.Name).ToArray();
            if (monsters.Length == 0) return null;
            
            return monsters.FirstOrDefault();
        }
Exemplo n.º 4
0
        private static string SeekedArchiMonsterInGroup(GroupMonster group, Bot bot)
        {
            if (group == null) return null;
            if (!SeekArchiMonster) return null;

            string[] monsters = group.Monsters.Where(entry => entry.IsArchMonster).Select(entry => entry.Name).ToArray();
            if (monsters.Length == 0) return null;

            return monsters.Aggregate((a,b) => a + ", " + b);
        }
Exemplo n.º 5
0
        public bool TryStartFightWith(GroupMonster monster, ISimplePathFinder pathFinder = null)
        {
            // todo
            var cell = monster.Cell;

            return Move(cell, pathFinder);
        }
Exemplo n.º 6
0
        public void TryStartFightWith(GroupMonster monster)
        {
            // todo
            var cell = monster.Position.Cell;

            Move(cell);
        }