View Single Post
Less Ugly Penguins
Old
groucho
Guest
 
Status:
Posts: n/a
Default Less Ugly Penguins - 08-05-2008, 06:52 AM

I don't have a complete solution, since to my knowlegde OOP is not fully integrated into Alice. Maybe Dick or DrJim have a more elegant way of dealing with the problem.

My "less ugly" solution is still ugly in the sense that it does not access the score property of the penguins or the text property of the 3D-text directly (I doubt that this is possible in present Alice at all). This uglyness is, however, hidden in a single world method "setPenguScore".

The advantage is that you can use the score property of the penguins and do not have to use a separte list. Also, a list for the 3D-text scores is not necessary.
Attached Files
File Type: a2w LessUglyPengus.a2w (1.12 MB, 97 views)
   
Reply With Quote