[Scummvm-devel] Re: CD sound interface
Marcus Comstedt
marcus at mc.pp.se
Wed Mar 20 09:09:24 CET 2002
"J.Brown (Ender/Amigo)" <ender at enderboi.com> writes:
> That's exactly what we are trying to do - mostly split the source files
> and EXPECIALLY the Scumm struct into a series of smaller, easier to
> understand classes.
>
> I'm planning to actually make the code work polymorphic, something like
> this:
>
> Scumm OurGame;
> ... blah blah.. detect game.. blah blah..
> select(version) {
> case 3:
> OurGame = new Scumm_V3;
> ....
> case 8:
> OurGame = new Scumm_V8;
> }
So this means that the new version will use virtual methods calls? Oh
well. Hopefully it will still work with gcc. I just pray we won't be
seeing any exceptions, templates or iostreams enter the code... ;-)
// Marcus
More information about the Scummvm-devel
mailing list