-- Logical version of the Egg. An egg appears when some associated -- piece, a Changeling is shot. Barring -- any intervening event the Egg will revert to its associated piece -- at the Egg's position after some specified period. When an _egg_ -- is shot it disappears from the room for some specified period, after which -- it reverts to its associated piece and attempt to return to that piece's -- starting location. deferred class EGG -- For better or worse I've made this a relatively dumb class, preferring -- to keep most of the intelligence in CHANGELING. -- Most pieces are managed by the room. Here Changeling takes care of -- its egg. Should try to be consistent about this when other pieces -- spawn new ones. Either get the room back involved or have the -- "spawner" manage the "spawnees". inherit MOBILE redefine receive_bullet end feature{NONE} feature blocks_glare : BOOLEAN is True blocks_shots : BOOLEAN is True changeling : CHANGELING receive_bullet is -- I've been shot and I need to let my controlling Changeling -- know about it. do changeling.prepare_to_reappear end end