An example of A.I. for towers, tower defence genre.
An example contains 2 types of enemies.
1) Grounded 2) Flying
And 5 types of towers.
1) Cannon - Target: ground - Doesn't see the enemies through walls - Knocks back enemies on hit
2) Fire mage - Target: ground & air - Doesn't see the grounded enemies through walls - See the flying enemies through walls - Set enemies on fire on hit
3) Ice mage - Target: ground & air - Doesn't see the grounded enemies through walls - See the flying enemies through walls - Slow enemies on hit until freeze
4) Archer - Target: ground & air - See all the enemies, even behind the wall - Attack parabolicly (negative) - Has critical chance
5) Balista - Target: Air - Has a chance to deal lethal damage
Every tower has it's own characteristics... Like a damage, attack speed, attack range, ecc.