Complete.Org: Mailing Lists: Archives: freeciv-dev: May 1999:
Re: [Freeciv-Dev] caravan behavior
Home

Re: [Freeciv-Dev] caravan behavior

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: brunel@xxxxxxxxxxxxxxxxxxxx
Cc: freeciv-dev@xxxxxxxxxxx
Subject: Re: [Freeciv-Dev] caravan behavior
From: David Pfitzner <dwp@xxxxxxxxxxxxxx>
Date: Wed, 5 May 1999 23:32:09 +1000 (EST)

Nicolas Brunel wrote:
> 
> Here, how I see things now.
> It popup the caravan window.
> If the unit has enough move left it's ok.
> Else, we use unit try_move_unit.

But this is in the server, and the server can't popup windows.
It can only send the client information which the client may
use to decide when to popup windows.

So, for friendly cities you could do the following: In the client, 
when you try to move a unit into the city, the client just do the 
move as for any other units.  When the server sends back to say 
"the caravan has successfully moved into the city", _then_ popup 
the Wonder/trade dialog if appropriate.  This could even be useful
for goto-ing units, though as before this may not be confusing
if it happens at end-turn/begin-turn.

Not sure about trade routes with enemy cities.

Regards,
-- David

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