4 ms·
LambdaMOO was awesome, and an incredibly practical introduction to OOP and security! Quc's cage for example. Who has permissions to call your characters move()
by lowbloodsugar 7y ago
LambdaMOO was awesome, and an incredibly practical introduction to OOP and security! Quc's cage for example. Who has permissions to call your characters move() method? What about who called them? Lets iterate the call stack or we'll either be stuck here forever, or we can never type "go north" again!
You have a Star Trek ship parent object, and these ships can fire at each other? Ok. Script to: Make this object into a star trek ship; Move me into it; Lock onto the other ship at this location; Fire all six photon torpedoes; Move me out of it; chparent back to $thing. Emit appropriate text to users in the room "Klingon warbird decloaks..." Bonus, do it again, get all six photon torpedoes back, because init() method called when chparenting.