Thread: Thoughts of OOP and Games

  1. #1
    Chess Master Phanster's Avatar
    Join Date
    Oct 2004

    Thoughts of OOP and Games

    I have recently been upgrading my C knowledge with all the new OOP features of C++ and was wondering what your thoughts on OOP and game programming are? Are classes generally used in making games or just functions? Also what would be the advantages/disadvantages of each?

  2. #2
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    OOP is a good way to make larger programs better organized. Poor use of OOP causes unnecessary overhead. By the way, don't ever let anyone tell you that C++ has a bunch of overhead that C doesn't have. They're full of it. It's when you use the language improperly that you get a slowdown.

    Just make sure that your functions aren't virtual when they don't have to be and OOP will be every bit as fast as procedural C.
    Last edited by FillYourBrain; 10-22-2004 at 02:24 PM.
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. OOP flu
    By Hussain Hani in forum General Discussions
    Replies: 15
    Last Post: 06-27-2009, 02:02 AM
  2. what language should i use to
    By roobert in forum Game Programming
    Replies: 34
    Last Post: 09-11-2007, 10:54 PM
  3. Games like zelda -- classes
    By swgh in forum Game Programming
    Replies: 7
    Last Post: 01-20-2006, 08:46 PM
  4. how to read multifiles sourcecode like games engines
    By kariem2k in forum C++ Programming
    Replies: 1
    Last Post: 03-16-2003, 10:37 AM