Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2000:
[Freeciv-Dev] Re: rand_neighbour() in barbarian.c
Home

[Freeciv-Dev] Re: rand_neighbour() in barbarian.c

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: rand_neighbour() in barbarian.c
From: Thue Janus Kristensen <thue@xxxxxxx>
Date: Sat, 29 Apr 2000 19:45:41 +0200

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



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