I like OOP!

Miscellaneous Forums/General Discussion/I like OOP!

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

Always had issues with OOP because I thought it might be inefficient compared to to a procedural language (more complicated for the compiler) and I had used procedural languages for so long that it felt awkward to change.

When you think about it OOP really suits game programming - especially inheritance. At least for the average game I think - players, aliens and the like inheriting common attributes and extending others. Really like the way objects of a particular class are dealt with as a unit.

But does it work for all games? Chess for instance? I don't think it does. Maybe I'm still thinking in procedural terms, but I think procedural programming suits this type of game - rather than a shoot 'em up for instance.