Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2001:
[Freeciv-Dev] Re: server feedback loop (was: [PATCH] Unit movement)
Home

[Freeciv-Dev] Re: server feedback loop (was: [PATCH] Unit movement)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Brian Olson <locke@xxxxxxx>
Cc: Freeciv Development List <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: server feedback loop (was: [PATCH] Unit movement)
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 17 Jan 2001 11:07:29 +0100
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxxxx

On Wed, Jan 17, 2001 at 01:18:41AM -0500, Brian Olson wrote:
> Treat units as files or sockets with tiny buffers. when
> unit_select() returns a list of units ready to receive a command,
> the AI gives each unit one command (move by one position, or
> whatever else including larger goto's) and then calls unit_select()
> again. A unit is returned as commandable when it has movement points
> left and the server has gotten back with an update about it. I
> suppose all units not engaged at the time are select()able at the
> beginning of a turn.

I'm not sure of the overall usefulness of the method. However it may
sometimes be required to stop the current activity of a unit to do a
task which is more important. An explorer moves, sees an enemy unit
and there is a fortified unit near by.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "Are you saying that you actually used the Classpath Java AWT classes in 
  addition to the GTK peers and got them to display something?
  Wow.  That's way better than I did and I wrote the code!"
    -- Aaron M. Renn in the classpath mailing list



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