I'm still looking forward to your escape game!
I've begun it again, the right way. I went to a C++ forum and got some pointers. I then realized how stupid my mindset was. I am writing OOP --
true OOP -- and *censored* it, it feels good!
Here's what I did in earlier attempts:
I created a class timsBedroom class. All usable objects were variables, BOOL for if they were in possession, and possibly an int or two. All, mind you, in a timsBedroom class. Imagine how silly this looks for a moment. In a timsBedroom object, I'm wondering about whether the reading light from that room is in player's possession, and this BOOL is next to the BOOL that asks whether the door is closed or not!
I was on the right track, but it wasn't it. Then, I learned about member classes. It clicked. Now, I've got a bedroom object (of which timsBedroom will be an
instance) with a desk object with computer and reading light child objects... just like a forum. Main boards(classes), in which are some threads (variables) and child boards (child classes) with threads (variables) of their own. Just found the term in my book: I'm referring to
aggregation, the
has-a relationship.