[Freeciv-Dev] Re: (PR#2581) Layers proposal redux
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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
TODO:
- change AI to cope with this (the AI may use the average attack
power for the start)
Raimar
--
email: rf13@xxxxxxxxxxxxxxxxx
The trick is to keep breathing.
[Freeciv-Dev] Re: (PR#2581) Layers proposal redux, Per I. Mathisen, 2003/05/26
Message not available
[Freeciv-Dev] Re: (PR#2581) Layers proposal redux, Per I. Mathisen, 2003/05/26
[Freeciv-Dev] Re: (PR#2581) Layers proposal redux, Per I. Mathisen, 2003/05/27
[Freeciv-Dev] Re: (PR#2581) Layers proposal redux, Gregory Berkolaiko, 2003/05/28
|
|