To simplify things I’m going to stick with volume for the Spaces. In order to be moved into a space, a Thing can’t have more volume than the remaining empty volume in the space. I’ll test scalar properties when passing through an exit, rather than being added to a space.
I’m suddenly wondering if it’s good coding practice to have a class with a member typed as a subclass of itself.
*work work work work work* Okey dokey now I’ve got addToContents and removeFromContents, so a Thing can be moved into a Space and out of a Space.
I guess that’s the Space class done, untill I figure out something else it needs. Still remaining are Mobile and Exit.
I didn’t do much today but I think I need to wrap it up, I’m just not feeling right, but I wanted to at least do something.
“I’m suddenly wondering if it’s good coding practice to have a class with a member typed as a subclass of itself.”
Human has .mother of type Woman