PDA

View Full Version : No more fear of classes and objects!



MikeS
31-07-2005, 09:21 PM
For the longest time I've avoided classes and objects because they sounded scary. Well, a few minutes ago I took away that fear by reading these two articles, and finally understanding that they're extremely helpful for things like games.

Anyway, didn't find much on classes on the boards anyway, so here's a thread about them, and the two links that will save my programming career.

:D

http://delphi.about.com/gi/dynamic/offsite.htm?zi=1/XJ&sdn=delphi&zu=http%3A%2F%2Fwww.webtechcorp.co.uk%2Fweb-developer-training-delphi-article-oop.htm

http://delphi.about.com/gi/dynamic/offsite.htm?zi=1/XJ&sdn=delphi&zu=http%3A%2F%2Flibrary.thinkquest.org%2F11127%2Fa 12.htm

[EDIT]
Here's the page that had the links, and probably has some other great ones too!
http://delphi.about.com/od/oopindelphi/

WILL
31-07-2005, 10:41 PM
A good friend of mine had first introduced me to using Object Oriented Programming in my games in the late 90s. Since that time I have used it in every aspect of my game programming projects and never went back.

It poses new challenges as far as code structure and engine design, but it's well worth it as its much more powerful and much more structured.

MikeS
31-07-2005, 11:19 PM
Yeah, I don't think I'll ever turn back now. Just wrote a simple class to hold my objects scale,rotation, and position.

Now coding with object pascal is such a dream.

:)

Traveler
01-08-2005, 08:02 AM
Indeed. I can't say I know every aspect of it, but from the things I do know, its certainly makes life soo much easier. :D