[Freeciv-Dev] Re: Safe paths for triremes etc. (PR#1007)
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
--- Gregory Berkolaiko <gberkolaiko@xxxxxxxxxxx> wrote:
> --- Raahul Kumar <raahul_da_man@xxxxxxxxx> wrote: >
> > --- Gregory Berkolaiko <gberkolaiko@xxxxxxxxxxx> wrote:
> [..]
> > > However I found a bug in my _dynamical_ warmap generation which might
> > > force me to abandon this particular convention. The problem is that
> > a
> > > shore tile would never be returned although it's move_cost still
> > > computed.
> > >
> >
> > What are you going with instead of the current -3 convention?
>
> My plan is to introduce a parameter warmap.sea_to_land which will be
> returned instead of -3. The default value would be MAXCOST (thus
> forbidding such movement). But if warmap is generated for , say, a
> transport carrying engineer to build a new city, the cost would be
> SINGLE_MOVE.
> However the user would have to insure that he doesn't process a land
> tile.
>
Yuck. Let's not do that.
> Another way is to always return SINGLE_MOVE and to amend
> warmap_process_tile to check for the sanity of the proposed tile.
>
You can do that, but that complicates the algorith even more.
> However the best way would be to split move_cost into sea and land costs
> and set land-to-anything sea_move_cost to be MAXCOST, thus avoiding the
> need to check for sane tile...
>
Yes, I much prefer this approach. Is it possible to have a seperate warmap
for ships attacking coastal cities/units? Freeciv confuses the ideas of
attacking and moving too much.
> Suggestions and constructive criticism are welcome.
>
> G.
>
>
> ____________________________________________________________
> Nokia Game is on again.
> Go to http://uk.yahoo.com/nokiagame/ and join the new
> all media adventure before November 3rd.
__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com
- [Freeciv-Dev] Re: Safe paths for triremes etc. (PR#1007), Gregory Berkolaiko, 2001/11/02
- [Freeciv-Dev] Re: Safe paths for triremes etc. (PR#1007),
Raahul Kumar <=
- [Freeciv-Dev] Re: Safe paths for triremes etc. (PR#1007), Gregory Berkolaiko, 2001/11/15
- [Freeciv-Dev] Re: Safe paths for triremes etc. (PR#1007), Raahul Kumar, 2001/11/15
- [Freeciv-Dev] Re: Safe paths for triremes etc. (PR#1007), Gregory Berkolaiko, 2001/11/16
- [Freeciv-Dev] Re: Safe paths for triremes etc. (PR#1007), Raahul Kumar, 2001/11/16
- [Freeciv-Dev] Re: Safe paths for triremes etc. (PR#1007), Gregory Berkolaiko, 2001/11/17
- [Freeciv-Dev] Re: Safe paths for triremes etc. (PR#1007), Raahul Kumar, 2001/11/18
- [Freeciv-Dev] Re: Safe paths for triremes etc. (PR#1007), Gregory Berkolaiko, 2001/11/18
- [Freeciv-Dev] Re: Safe paths for triremes etc. (PR#1007), Ross W. Wetmore, 2001/11/19
- [Freeciv-Dev] Re: Safe paths for triremes etc. (PR#1007), Raahul Kumar, 2001/11/19
|
|