Complete.Org: Mailing Lists: Archives: freeciv-ai: August 2004:
[freeciv-ai] Re: correctly evaluate ocean dangers
Home

[freeciv-ai] Re: correctly evaluate ocean dangers

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Per Inge Mathisen <per@xxxxxxxxxxx>
Cc: freeciv-ai@xxxxxxxxxxx
Subject: [freeciv-ai] Re: correctly evaluate ocean dangers
From: Mateusz Stefek <mstefek@xxxxxxxxx>
Date: Thu, 26 Aug 2004 12:44:59 +0000
Reply-to: mstefek@xxxxxxxxx

On 2004-08-16 18:46:09, Per Inge Mathisen wrote:

Not really tested yet. Comments?


  - Per


          * seaborne units, we don't have to worry. Go on the
offensive! */
-        if (can_build_antisea && unit_type(punit)->attack_strength >
1) {
-          ai->threats.sea = TRUE;
+        if (unit_type(punit)->attack_strength > 1) {
+          Continent_id continent = map_get_continent(punit->x,
punit->y);
+          ai->threats.ocean[continent] = TRUE;
         }
+        continue;

should be: ai->threats.ocean[-continent] = TRUE;

       }
           && !map_is_known(x, y, pplayer)) {
        /* We're not done there. */
         ai->explore.sea_done = FALSE;
+        ai->explore.ocean[continent] = TRUE;
       }
       /* skip rest, which is land only */
       continue;

The same

--
mateusz



----------------------------------------------------------------------
Portal INTERIA.PL zaprasza... >>> http://link.interia.pl/f17cb



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