Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2001:
[Freeciv-Dev] Re: [RFC PATCH] init_techs
Home

[Freeciv-Dev] Re: [RFC PATCH] init_techs

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Freeciv Developers <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: [RFC PATCH] init_techs
From: Justin Moore <justin@xxxxxxxxxxx>
Date: Sat, 22 Sep 2001 20:02:29 -0400 (EDT)

> I'm sorry if this is a dumb question, but isn't pregame too early to
> assign specific techs?  I mean, what happens if somebody does this?
>
> givetech greeks computers
> set techs dune.ruleset
>
> The dune ruleset would (presumably) have no computers tech.  More
> pathological examples could be constructed.  The ideal solution would be
> to completely overhaul server configuration (which would be a good idea
> anyway, IMO), but what is presently being pictured?

   ATM I'm just looking at cleaning up the absolute mess that is the
command parsing code.  First off, I'd recommend splitting it up into
multiple files.  stdinhand.[ch] should do just that: handle input and act
on it.  There's no reason all the functions detailing HOW to act on input
must be in the same file.  I'm thinking of making server/commands.[ch] and
putting a good chunk of stdinhand.c in those files (but in a more
organized fashion).

Questions?  Comments?  Flames?
-jdm

"You don't give blood then take it back again
 We're all deserving of something more"
 - "Grievance"

Department of Computer Science, Duke University, Durham, NC 27708-0129
Email:  justin@xxxxxxxxxxx



[Prev in Thread] Current Thread [Next in Thread]