crankycyclops / trogdor-pp

A unified engine for building text adventures and MUDs with batteries included.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make Thing::setLocation() private and only allow Place::insertThing() to call it

crankycyclops opened this issue · comments

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().

commented

I also need to do the same with Object::setOwner() and Being::insertIntoInventory()

commented

Done.