Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2003:
[Freeciv-Dev] Re: pauses during client-side goto (PR#4683)
Home

[Freeciv-Dev] Re: pauses during client-side goto (PR#4683)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: chrisk@xxxxxxxxx
Subject: [Freeciv-Dev] Re: pauses during client-side goto (PR#4683)
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 30 Sep 2003 06:00:05 -0700
Reply-to: rt@xxxxxxxxxxxxxx

Gregory Berkolaiko wrote:
> On Mon, 29 Sep 2003, Jason Short wrote:
> 
> 
>>A new flag punit->done_moving is introduced.  It's set by the server 
>>(for the most part) and sent to the client.  When done_moving is set the 
>>unit won't be focused on, and if that unit is focused the focus will be 
>>advanced.
>>
>>Thus if we have a unit on goto with some MP left, we can tell whether it 
>>is done moving for this turn (because of a goto pause) or not.
> 
> 
> Can we wake it up though?  I mean if you want to cancel goto and do some 
> moving with the rest of the points.

Yes, if its activity is changed to idle done_moving will be reset.

> And how about the units on which you hit space?  They still have MPs, but 
> they are effectively done_moving.

True, but that is entirely handled client-side.  We could mark them as 
done_moving and send this info to the server so that it would be 
persistent across saves.

jason




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