Turrets still need alot of work. I need to add a system to target secondary targets. This portion of the code that I developed did not function properly. Turrets also need a method to check for a clear firing path. Turrets should never attempt to fire through it's own ship. Those are the next two features that I'll need create to complete turrets.
After the completion of turrets, I will create the AI routines for capital ships. Due to the inherent differences in the methodology of propulsion, I might have to break this feature in a battlestar and basestar AI routine. If I make sure that both routines utilize the same parameters, I might be able to keep both scripts accessing one table, instead of two separate tables. I'll have to flesh out AI in a future blog.