[Freeciv-Dev] Re: [RFC][Patch] Unit agents
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Tue, Jul 09, 2002 at 08:29:04PM +0200, Raimar Falke wrote:
>
> The attached patch is a snapshot of a tree which consists of the
> following parts:
> - path_finding13
> - map decoration
> - goto agent (GA)
> - exploring agent (EA)
> - settler management agent (SMA)
> - and lot of other changes
>
> You may notice that you will see both paths (one calculated by the old
> code and the other by the new path_finding) if you goto a unit. The
> execution of the goto will be done by the goto agent. You cen see the
> path which is executed by pressing the middle mouse button. If you
> press shift together with the middle mouse button the popup will be
> smaller (I haven't been able to remove it altogether).
>
> EA and SMA should be easy to use. Since they also use the GA you also
> see the paths which the units follow with the middle mouse button.
>
> If you press shift-x you can see all tiles which the current unit may
> attack.
>
> This is work in progress. Missing are mostly user interfaces (you
> currently have to change the code in control.c by hand) for the
> parameters. Also some parameters are missing (the exploring agent for
> example should have a parameter controlling hut behaviour and one for
> empty cities). It may also happen that the client may core dump any
> time ;)
2: SMA-170: control
2: SMA-170: handle_unit()
2: SMA-170: created 1009 actions for a unit at (10,44)
2: SMA-170: all known tiles of the continent can be reached by this unit in
17 turns
2: SMA: added 0 external actions
2: action ACTION_ADD_TO_CITY not handled
2: action ACTION_ADD_TO_CITY not handled
2: building ACTION_IRRIGATE at (10,39)=center of Karachi would yield
(f=1,s=-1,t=1)
civclient: sma.c:571: calc_terrain_improvement_yields: Zusicherung »0« nicht
erfüllt.
Abgebrochen (core dumped)
reproducible with gandhi1.sav.gz: press return and activate SMA for blinking
settler; happens every time I want to activate SMA.
shift-MMB doesn't work when settler is in city
when EA + GA is switched off for a settler, the unit display left of the map
still shows old state.
No way to switch off EA for explorer because I can't activate it.
when GA unit arrives target it is still shown with GA; clicking the
map around fixes this.
EA with explorer is not very keen to visit unknown territory
Enjoy!
Christian
--
Christian Knoke * * * http://www.enter.de/~c.knoke/
* * * * * * * * * Ceterum censeo Microsoft esse dividendum.
gandhi1.sav.gz
Description: application/gunzip
|
|