[Freeciv-Dev] Re: rand_neighbour() in barbarian.c
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Sat, 29 Apr 2000, Thue Janus Kristensen wrote:
> in rand_neighbour the comment says:
>
> "Random neighbouring cell - it maybe a stupid idea. Can anyone say how to
> move barbarians out of the hut?"
>
> I think this could be done by
> 1) Finding out which tiles are suitable and then creating a number of
> units <= this number (how many barbarians you want) on the tile with the
> hut
> 2) calling handle_unit_move_request with these units and the mappos' you
> choose as arguments
> 3) perhaps restore the barbarians units' movement points
>
> -Thue
ups - disregard the previous post
-Thue
|
|