Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2001:
[Freeciv-Dev] Re: [PATCH] Unit movement
Home

[Freeciv-Dev] Re: [PATCH] Unit movement

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv development list <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: [PATCH] Unit movement
From: Gerhard Killesreiter <killes@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 16 Jan 2001 11:05:30 +0100 (CET)


On Tue, 16 Jan 2001, Raimar Falke wrote:

> Whats wrong with:
> 
>    for_each_unit
>    {
>       while(current_unit_can_move)
>       {
>          think_about_best_direction(); /* could use dry_run */
>          result=move();
>          /* if dry_run was used before if should succeed */
>       }
>    }
> 
> This assumes the result packet is sent last. Particular after the tile
> info and the info for the enemy unit.

You would need to take into the account the following situation:
A unit moves and uncovers a hostile unit next to him, but has moves left. 
He could either retreat or call for help by another unit that could
possibly kill the hostile unit. Then the explorer could advance further.

Cheers,
        Gerhard




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