[BUG][FIX][ETOY] Duplication of Sibling Players
Ted Kaehler
Ted at SqueakLand.org
Wed May 14 03:07:20 UTC 2003
Whenever you ask for a sibling instance of a Player in an EToy, the
Players of the new object is an instance of the original Player
class, instead of having a new class.
When you duplicate a morph the holds a set of siblings, there was bug
that made the new objects not be siblings. This fixes the bug. Alan
wants this fixed for the cells of a Tic-Tac-Toe game.
To test, make a playfield with a blob in it. Make a sibling
of the blob. Tell the playfield to 'make sibling instance'. All
four blobs will remain siblings.
In addition, the production of a sibling instance is now cleaner.
Change Set: Sibling-dup-tk
Date: 11 March 2003
Author: Ted Kaehler
(Tested in a standard 3.6alpha)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Sibling-dup-tk.11Mar1612.cs.gz
Type: application/mac-binhex40
Size: 6106 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20030513/473e960e/Sibling-dup-tk.11Mar1612.cs.hqx
More information about the Squeak-dev
mailing list
|