|
![](/i/fill.gif) |
Darren New wrote:
> Actually, I think that clued me in a bit. They *are* all of type
> "object". ;-)
>
> So I could just have a list of objects, and when I get an update,
> (dynamic)-cast each element to a IUpdatable and invoke that if it works;
> when I get a draw, cast each to an IDrawable and invoke that if it
> works, etc.
>
> Ugly, but it'll do the trick, I think.
Ah yes, ye olde "upcast everything to Object" antipattern. :-D
Post a reply to this message
|
![](/i/fill.gif) |