Why inheritance is your daddy!
This post is of no importance other than for me to rant (joyfully) because I had ignored something simple, yet powerful, that proved to be VERY helpful to me.
"Who needs to know that inheritance stuff?", I mused back then. Man, was I missing the boat.
Long-story-short, my game has 2 groups (robots with computer-controlled AI and Soldiers controlled by the human player). They have a lot of identical attributes/functions with only a handful of different ones (AI stuff for the bots and input getting routines for the soldiers).
I was midway through retyping the same code in the creation of my soldier *.h/*.cpp files when I thought there has to be a better way of doing this! About 15 minutes of research later and I was redesigning my soldiers/bots using a base class (Trooper) with 2 derived classes (CPow and CBot, respectively).
Any of you guys/gals ever neglect learning a particular part of the language because you figured you wouldn't need it (at least for the then-current project)?
Now I've got to go back and rewrite my CTextBox, CLabel, CCombobox and CCommandButton. :D