Jump to content
  • Advertisement
Sign in to follow this  
Marty666

linked lists and classes

This topic is 5052 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all. I have a class called CPhysicsObject and a lot of other classes that are defined CLASSNAME : public CPhysicsObject. Since I want to update the physics variables of the objects all at the same time I'd like to put them in a (double) linked list then run through the list and update them. The only problem is that I don't know what to point to, since I don't know what class the next object would be. I only know that its a ' : public CPhysicsObject'... Can I create a pointer pointing to the class (CLASSNAME : public CPhysicsObject) with a pointer to a basic CPhysicsObject? Thanks, Marty PS: I'm Dutch and don't know what it's called in English when a class is derrived from another. So that information is welcome too :D.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!