Original Post
im making a 2d space shooter (side scrolling) and i got everything down pretty much, but now i need to create a boss. right now there is only one level, and im trying to create a boss for it.
i have a level class. you can pass specific level graphics to it, the number of enemy types, the number of powerup types, the enemy formations, and basically anything needed to run a level. should i create a boss class, and make it so the level has a pointer to a boss instance?
the problem with this is that i would have to derive from the boss class with a virtual function every time i want to create a new type of boss (For each level, because their actions and AI would be different). is there another, more precise and effiecent way of doing this?
thanks!
----------------------
i code therefore i am.
Aero DX - Coming to a bored Monitor near you!