[Freeciv-Dev] [PATCH] Re: AI questions
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
> > > There is no such thing as a trade advisor. There is some crude code for
> > > stockpiling caravans for wonder building, and if there are surplus
> > > caravans
> > > creating trade routes, but that's it.
> > And poor little and totally empty advtrade.c.
>
> Really? How did I miss that?
35 lines are easy to miss ;-).
> Do we try to sell wonders currently? I strongly suspect you are wrong on this
> point.
We don't, overlooked one test :-).
> > > > > > - explorers - they say they don't use ferryboats to explore new
> > > > > > land,
> > > > > > however glancing on the code it looks they do.
> > > > > >
> > > > > Just plain wrong comments.
> > > > Aha.. after careful reading it looks it will travel to another continent
> > > > only in order to return to their home city. Strange..
> > >
> > > This can't be right. GB, what is the behavior of explorer units? I have
> > seen
> > > in AI only games explorers get off ships and check out an island.
> > http://www.freeciv.org/lxr/source/ai/aiunit.c#L408
> > It only works for exploring military units however :|.
>
> All units except for caravan, diplo and settler are military. Explorers are
> almost certainly military.
At least in the default units ruleset, it has NonMil flag.
> > Also somewhat confusing for newcomer, one would say ai_manage_explorer() is
> > explorer-specific.
>
> Would you prefer a comment? Maybe rename the func ai_manage_explorer_unit.
ai_manage_exploring(), done. Comment accompanied ;-).
Do we need to re-generate warmap in part three? I would remove it, as it looks
only as wasting CPU time for me, the map shouldn't change while executing
that function. What do you think?
Patch is attached. Ok, I reformat one small part of one condition there, but
only because I removed the part of it and it really hurted my eyes otherwise.
And I negated one if condition and switched statements in order to keep it
uniform in both first and third part.
--
Petr "Pasky" Baudis
UN*X programmer, UN*X administrator, hobbies = IPv6, IRC
Real Users hate Real Programmers.
Public PGP key, geekcode and stuff: http://pasky.ji.cz/~pasky/
aicleanup-exploring.diff
Description: Text document
- [Freeciv-Dev] AI questions, Petr Baudis, 2001/11/23
- [Freeciv-Dev] Re: AI questions, Raahul Kumar, 2001/11/23
- [Freeciv-Dev] Re: AI questions, Petr Baudis, 2001/11/24
- [Freeciv-Dev] Re: AI questions, Raahul Kumar, 2001/11/24
- [Freeciv-Dev] Re: AI questions, Petr Baudis, 2001/11/24
- [Freeciv-Dev] Re: AI questions, Raahul Kumar, 2001/11/24
- [Freeciv-Dev] [PATCH] Re: AI questions,
Petr Baudis <=
- [Freeciv-Dev] Re: [PATCH] Re: AI questions, Gregory Berkolaiko, 2001/11/24
- [Freeciv-Dev] Re: [PATCH] Re: AI questions, Petr Baudis, 2001/11/24
- [Freeciv-Dev] AI, Raahul Kumar, 2001/11/25
- [Freeciv-Dev] Re: AI, Raimar Falke, 2001/11/25
- [Freeciv-Dev] Re: AI, Raahul Kumar, 2001/11/25
- [Freeciv-Dev] Re: AI, Petr Baudis, 2001/11/25
- [Freeciv-Dev] Re: AI, Petr Baudis, 2001/11/25
- [Freeciv-Dev] Re: AI, Petr Baudis, 2001/11/25
- [Freeciv-Dev] Re: AI, Raahul Kumar, 2001/11/27
- [Freeciv-Dev] Re: AI (THRESHOLD magic), Petr Baudis, 2001/11/27
|
|