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

[Freeciv-Dev] 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] rand_neighbour() in barbarian.c
From: Thue Janus Kristensen <thue@xxxxxxx>
Date: Sat, 29 Apr 2000 17:04:34 +0200

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



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