Jump to content
  • Advertisement
Sign in to follow this  
Marty666

linked lists and classes

This topic is 5420 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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!