Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2006:
[Freeciv-Dev] Re: (PR#18481) can_attack_non_native()
Home

[Freeciv-Dev] Re: (PR#18481) can_attack_non_native()

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: cazfi74@xxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#18481) can_attack_non_native()
From: "Jason Dorje Short" <jdorje@xxxxxxxxx>
Date: Mon, 10 Jul 2006 17:56:11 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=18481 >

Marko Lindqvist wrote:
> <URL: http://bugs.freeciv.org/Ticket/Display.html?id=18481 >
> 
> 
>   Land units cannot attack ocean tiles. Sea units can attack land tiles. 
> That is, some units are able to attack !is_native_terrain() tiles, 
> others are not. First step to separate this behavior from move_type is 
> to create function
> bool can_attack_non_native(struct unit_type *utype)
> and to add calls to it where necessary. In its first incarnation 
> function should just compare move_type to SEA_MOVING.

Absolutely.

-jason





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