Make Thing::setLocation() private and only allow Place::insertThing() to call it
crankycyclops opened this issue · 2 comments
crankycyclops commented
Right now, Thing::setLocation() is public, yet if you call it, the game will be in an inconsistent state. Instead, this should only be callable by Place::insertThing().
crankycyclops commented
I also need to do the same with Object::setOwner() and Being::insertIntoInventory()
crankycyclops commented
Done.