As of right now, Bullets are the only thing with shoot logic, but all other weapons that could potentially be added will have the same conditions that Bullets have in Ship.
Requirement
Make a superclass of Bullet called Projectile or something. This class should have all the things that a Projectile would have, the only specific part being the update has a lifetime counter, as all projectiles must end some time.
Subclasses of Projectile provide an image as a minimum. Bullet will meet this minimum, other projectiles will likely override Projectile's methods.
Description
As of right now, Bullets are the only thing with shoot logic, but all other weapons that could potentially be added will have the same conditions that Bullets have in Ship.
Requirement
Make a superclass of Bullet called Projectile or something. This class should have all the things that a Projectile would have, the only specific part being the update has a lifetime counter, as all projectiles must end some time.
Subclasses of Projectile provide an image as a minimum. Bullet will meet this minimum, other projectiles will likely override Projectile's methods.