delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/03/11:56:41

From: Adam West <adamw AT iquest DOT net>
Newsgroups: alt.msdos.programmer,comp.os.msdos.djgpp,rec.games.programmer
Subject: Re: C or C++ for an RPG?
Date: Thu, 03 Jul 1997 07:37:16 -0500
Organization: Commonwealth Software
Message-ID: <33BB9CFB.33A@iquest.net>
References: <01bc8768$0d698920$bba42499 AT syntaxlogic DOT earthlink DOT net>
Reply-To: adamw AT iquest DOT net
NNTP-Posting-Host: batman.d51.lilly.com
Mime-Version: 1.0
Lines: 21
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019