Thoughts of OOP and Games

This is a discussion on Thoughts of OOP and Games within the C++ Programming forums, part of the General Programming Boards category; I have recently been upgrading my C knowledge with all the new OOP features of C++ and was wondering what ...

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

    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
    Posts
    2,297
    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 03: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, 03:02 AM
  2. what language should i use to
    By roobert in forum Game Programming
    Replies: 34
    Last Post: 09-11-2007, 11: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21