[Freeciv-Dev] Re: [PATCH] Unit movement
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Sat, Jan 13, 2001 at 03:25:55PM +0100, Thue wrote:
> > > Dry-run is a bad idea, IMO. When doing AI calculations you need to test
> > > lots of moves (just imagine finding a goto route), and asking the server
> > > over a slow internet connection per consideration is not an option. Just
> > > copy the 50 lines of code that do the check, dammit! :) Maybe put it into
> > > common if you
> >
> > The conditions are unfortunately wide spread
> > (unithand:handle_move_unit,unithand:handle_unit_enter_hut,
> > unithand:handle_unit_move_request,
> > unithand:handle_unit_establish_trade, unittools:can_unit_move_to_tile,
> > unittools:try_move_unit, unittools:do_airline,
> > unittools:move_unit). These methods consists of 585 lines in the
> > unpachted version. 3/4 of these lines where checks (=438 lines).
>
> I think you only need the code in can_unit_move_to_tile().
Yes I think the error conditions from can_unit_move_to_tile would be
on top in a profile.
Raimar
--
email: rf13@xxxxxxxxxxxxxxxxx
"Your mail could not be delivered to the following Address:
VTCMC.VTLPR@xxxxxxxxxxxxx ** Unassigned error message **"
- [Freeciv-Dev] [PATCH] Unit movement, Raimar Falke, 2001/01/12
- [Freeciv-Dev] Re: [PATCH] Unit movement, Thue, 2001/01/12
- [Freeciv-Dev] Re: [PATCH] Unit movement, Raimar Falke, 2001/01/13
- [Freeciv-Dev] Re: [PATCH] Unit movement, Gaute B Strokkenes, 2001/01/13
- [Freeciv-Dev] Re: [PATCH] Unit movement, Raimar Falke, 2001/01/13
- [Freeciv-Dev] Re: [PATCH] Unit movement, Greg Wooledge, 2001/01/13
- [Freeciv-Dev] Re: [PATCH] Unit movement, Raimar Falke, 2001/01/14
- [Freeciv-Dev] Re: [PATCH] Unit movement, Falk Hueffner, 2001/01/14
- [Freeciv-Dev] Re: [PATCH] Unit movement, Gaute B Strokkenes, 2001/01/14
[Freeciv-Dev] Re: [PATCH] Unit movement, Raimar Falke, 2001/01/14
[Freeciv-Dev] Re: [PATCH] Unit movement, ccrayne, 2001/01/12
|
|