The polymorphism tag has no wiki summary.
0
votes
1answer
535 views
Creating an abstract Animation class
I'm creating a simple 2d game with c++ and SFML, and I've got a simple framework going for animating a sprite using a "SpriteSheet" image (an big image containing all the "frames" of an animation)
...
0
votes
1answer
253 views
Problem creating levels using inherited classes/polymorphism
I'm trying to write my level classes by having a base class that each level class inherits from...The base class uses pure virtual functions.
My base class is only going to be used as a vector ...
2
votes
2answers
121 views
How to handle similar actions in derived actors (inheritance)
I have a base class called Attacker that has a update method. The update method moves attacker through an array of waypoints as given below:
- (void) update:(ccTime)dt {
if(state == kMove) {
...
-6
votes
2answers
613 views
Component-based entities without IDs?
I'd like to know if someone has found a way to build a component-based entity system in their game(s) without using IDs. I find that IDs tend to do away with one of the major (possible) advantages of ...