It's been a while since i have visited this forum, good to see it is still so active.
I have recently picked up game programming again and i am currently working in C# (XNA). I try to create a simple flying shooter game (Raptor clone).
Right now i am implementing the enemies and i would like to know what the best programming standard is for implementing the different types of enemies. I have already created a class "Enemy" which holds all the functions and variables needed for the enemies (such as the movement function, etc.)
I will create different subtypes of enemies, which differ in (for example): image, speed, firing rate, hitpoints, and so on.
What is the best way to implement is? I was first thinking of creating a separate class for each enemy type, which inherits from the enemy class, but that might be cumbersome.
Another option could be to just use the enemy class and assign every enemy a type when it is constructed, then work with lots of switch statements in the class based on the enemy type.
Is this the best way? Or is there a better way to do this? I feel a better way should be possible, but i cant really figure out how yet.
Thank you in advance for your replies.