|
![](/i/fill.gif) |
clipka wrote:
> From the little I could find ad-hoc on the internet, there seems to be
> an interface IGameComponent, so probably all you have to do is make sure
> that all classes you want to store in that thing implement
> IGameComponent, and use an IGameComponent container.
IGameComponent implements the "Initialize" method.
IDrawable implements the "Draw" method.
IUpdatable implements the "Update" method.
GameComponent inherits IGameComponent, IDrawable, IUpdatable.
There's no way to make a "collection of objects that implement
IGameComponent, IDrawable, and IUpdatable" as far as I know.
> That's what interfaces are for, after all.
Yeah, and it would have been nice if IGameComponent included most or all of
the methods that GameComponent implements.
--
Darren New, San Diego CA, USA (PST)
Yes, we're traveling together,
but to different destinations.
Post a reply to this message
|
![](/i/fill.gif) |