joelwross / coloradocollegegame

Automatically exported from code.google.com/p/coloradocollegegame
0 stars 0 forks source link

Change Representation to Extend World #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
We want the Representation (e.g., Canvas2D) to hold an array of
GraphicalElements, while the World class only holds Elements (so that it
can handle text-based elements as well) without bothering with the if-check
we now have to do in World's addPlayer function. If Representation extends
World, then it can overwrite the World's addPlayer function to add a
GraphicalElement instead of an Element.

Original issue reported on code.google.com by Omer.Ba...@gmail.com on 1 Feb 2007 at 5:01

GoogleCodeExporter commented 9 years ago

Original comment by Omer.Ba...@gmail.com on 1 Feb 2007 at 8:15

GoogleCodeExporter commented 9 years ago

Original comment by Omer.Ba...@gmail.com on 21 Feb 2007 at 3:25