[freeciv-ai] Re: Goto coordinates and ai roles
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Sat, 18 Jan 2003, Mike Kaufman wrote:
> > Make the goto_dest a map_position pointer and use null as the guard test.
> > if (punit->goto_dest) {
> > /* punit->goto_dest->x, punit->goto_dest->y accesses */
> > }
> yes, either of these is far better than (-1,-1) which I'venever ever had a
> good feeling about. Take your pick really, but I prefer the the map_position
> pointer because it's cleaner...
Ok, I'll have a go at this. It has the added advantage of being able to
use a goto struct, where we can keep lots of info like point of origin,
for debugging purposes.
- Per
- [freeciv-ai] Re: Goto coordinates and ai roles, Ross W. Wetmore, 2003/01/18
- [freeciv-ai] Re: Goto coordinates and ai roles, Mike Kaufman, 2003/01/18
- [freeciv-ai] Re: Goto coordinates and ai roles,
Per I. Mathisen <=
- Message not available
- [freeciv-ai] Re: Goto coordinates and ai roles, Raimar Falke, 2003/01/21
- [freeciv-ai] Re: Goto coordinates and ai roles, Ross W. Wetmore, 2003/01/23
- [freeciv-ai] Re: Goto coordinates and ai roles, Raimar Falke, 2003/01/24
- [freeciv-ai] Re: Goto coordinates and ai roles, Gregory Berkolaiko, 2003/01/27
- [freeciv-ai] Re: Goto coordinates and ai roles, Ross Wetmore, 2003/01/27
- [freeciv-ai] Re: Goto coordinates and ai roles, Gregory Berkolaiko, 2003/01/28
- [freeciv-ai] Re: Goto coordinates and ai roles, Per I. Mathisen, 2003/01/28
- [freeciv-ai] Re: Goto coordinates and ai roles, Raimar Falke, 2003/01/29
- [freeciv-ai] Re: Goto coordinates and ai roles, Gregory Berkolaiko, 2003/01/29
|
|