Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2000:
[Freeciv-Dev] Re: jjm: Added Settler's "Connect" feature.
Home

[Freeciv-Dev] Re: jjm: Added Settler's "Connect" feature.

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: jjm: Added Settler's "Connect" feature.
From: Jeff Mallatt <jjm@xxxxxxxxxxxx>
Date: Sun, 02 Jan 2000 08:24:45 -0500

At 2000/01/02 04:54 , David Pfitzner wrote:
>We now have, in client/control.c: 
>    int goto_state;
>    int nuke_state;
>    int paradrop_state;
>    int connect_state;
>These are essentially cursor states for the current unit, right?
>Since there can really be only one state active at a time, would 
>it make more sense to have a single state variable with an 
>enumerated type listing the states?  (And I guess accompanying 
>variable(s) state_unit_id etc as required.)

Currently goto_state holds the ID of the unit being commanded.  The others 
specify the "kind" of goto (none imply normal goto).

Anyway, yes, I agree this all needs an overhaul, with a nice functional 
interface for other modules to access it.

jjm


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