What are the types of projectiles? Classes? What are the criteria of enemy - projectile type? Perhaps the easiest solution is to store the desired Projectiles Class in the enemy itself and then:
Could work well assuming you have a base enemy class.