Mail Archives: djgpp/1997/07/03/11:56:41
Alex Kain wrote:
>
> I'm using Allegro and DJGPP to make a CRPG. I started learning C++ a
> while ago, and I was looking around in Allegro's code, and Shawn (the
> maker of Allegro) managed to bypass the use of objects with the use of
> structs. It makes me wonder if I should use C++ at all or just go
> ahead and use C. Can anyone explain to me how C++ would be better
> than C for programming an RPG?
Simple answer: less code is cleaner code. Programming in an OO language
just makes for cleaner, "packaged" code --- if you stick to the OO
principles. So consider the cost of maintenance. I think C++ wins.
Also, CRPG is a natural for inheritance: Monsters, Items, and PCs can
all carry things, right? They all have names.
Excelsior!
Adam
--
Check out the In Development CRPG: Bronze Dragon: The Land Beyond
http://www.iquest.net/~adamw
- Raw text -