Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2003:
[Freeciv-Dev] Re: (PR#2581) Layers proposal redux

[Freeciv-Dev] Re: (PR#2581) Layers proposal redux

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: raahul_da_man@xxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#2581) Layers proposal redux
From: "Raimar Falke" <rf13@xxxxxxxxxxxxxxxxx>
Date: Mon, 26 May 2003 13:43:56 -0700
Reply-to: rt@xxxxxxxxxxxxxx

On Sun, May 25, 2003 at 09:08:52AM -0700, Per I. Mathisen wrote:
> > > If not, do you have a concrete suggestion of when and how it might be
> > > implemented?
> >
> > With plain-layers and without unit effects I think the patch is not
> > complicated (but maybe no small since we have to do the ruleset
> > loading, network extension and so on). I will do it if you or
> > someother put in it.
> Good, but first I want to hear _how_ you want to implement it. As simple
> as possible, please. Preferably with no additional complexity to units
> that don't need it.

I think this is pretty straightforward. So what would this patch do?
 - change the attack field in the ruleset to a list
 - change the attack_strength field in struct unit_type to an array
 - network support for the previous point
 - extend function in common/combat to take the defender
 (base_)get_attack_power for example
 - update various output function (client help, client unit info, ...)
 - add logic that you can't attack a layer for which you have attack==0

 - change AI to cope with this (the AI may use the average attack
 power for the start)


 email: rf13@xxxxxxxxxxxxxxxxx
  The trick is to keep breathing.

[Prev in Thread] Current Thread [Next in Thread]