• Advertisement

Archived

This topic is now archived and is closed to further replies.

cGame class with virtual functions?

This topic is 5416 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

to encapsulate all of the game functions should i create a cGame class, with virtual functions and a derived class for functionality for my specific game? ---------------------- i code therefore i am. Aero DX - Coming to a bored Monitor near you!

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
In java everything is derived from Object. (I guess your using C) unless you need to do this for some specific reason there''s not much reason to make it pure virtual and derive from it to make a specific game. That could be usefull if you want certain versions of you game to have different features though. OO purist would prob do that though.

Share this post


Link to post
Share on other sites

  • Advertisement