Now I though of creating an array that has pointers to all the objects. This works fine but now I want to be able to say I want to have a new object of the class and set the model.
- cpp Code: Select all
class Zombie {
char mesh;
public:
void set_mesh (char);
};
void Zombie::set_mesh (char mesh) {
mesh = mesh;
}
Now how would I create a new scenenode everytime a new object of the class Zombie is created?
I got an array that has pointers to meshes I load so I don't have to load a mesh everytime I create a new Zombie.
