예제 #1
0
 protected abstract IEnumerable <Fighter> GetTargets(World world);
예제 #2
0
 private IEnumerable <Tile> GetCombatPlatforms(IEnumerable <Fighter> targets, World world)
 {
     return(world.Tiles
            .Where(w => w.IsAvaliable)
            .Where(tile => targets.Any(target => tile.IsAdjacent(target.Tile))));
 }
예제 #3
0
 protected override IEnumerable <Fighter> GetTargets(World world)
 {
     return(world.Goblins);
 }