[Freeciv-Dev] Re: jjm: Added Settler's "Connect" feature.
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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
|
|