[Freeciv-Dev] Re: (PR#4326) Pathfinding
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Sun, 8 Jun 2003, Raimar Falke wrote:
> On Fri, Jun 06, 2003 at 11:06:29AM -0700, Gregory Berkolaiko wrote:
> >
> > > Greg: you may now see why I prefered a flags field in pf_parameter
> > > instead of the zoc_used field.
> >
> > I admit I was thinking the same. But we need to carefully consider what
> > we do, because some AI calculations need to ignore ZoC...
>
> They this code has to remove F_IGZOC in parameter->flags.
This is a bit ugly, but probably the best way.
> > or use a different notion of ZoC.
>
> If code wants this you have to be more specific.
I realised that when planning strategic attacks (on enemy cities), AI
should ignore ZoC imposed by enemy units in the field, but pay attention
to the ZoC imposed by enemy cities.
> > Another solution is write another MC-callback marine_move_unit.
>
> You would need another flags to trigger this. So we would have to add
> a "bool is_marine" to pf_parameter. I'm strongly against this since
> this duplicates unit_type->flags.
No flag is needed. Have a look how we handle trireme case for example.
G.
- [Freeciv-Dev] Re: (PR#4326) Pathfinding, (continued)
[Freeciv-Dev] Re: (PR#4326) Pathfinding, Gregory Berkolaiko, 2003/06/06
[Freeciv-Dev] Re: (PR#4326) Pathfinding, Gregory Berkolaiko, 2003/06/06
Message not available
[Freeciv-Dev] Re: (PR#4326) Pathfinding,
Gregory Berkolaiko <=
[Freeciv-Dev] Re: (PR#4326) Pathfinding, Gregory Berkolaiko, 2003/06/09
[Freeciv-Dev] Re: (PR#4326) Pathfinding, Gregory Berkolaiko, 2003/06/10
[Freeciv-Dev] Re: (PR#4326) Pathfinding, Gregory Berkolaiko, 2003/06/11
|
|