public inbox for xconq7@sourceware.org
 help / color / mirror / Atom feed
* Plans, again
@ 2004-06-12 20:38 Robert Goulding
  2004-06-12 21:09 ` Hans Ronne
  0 siblings, 1 reply; 3+ messages in thread
From: Robert Goulding @ 2004-06-12 20:38 UTC (permalink / raw)
  To: xconq7

Just to note that the 'Plans' menu item *does* seem to have some effect 
in the native OSX version.  If I give a ship, for instance, an 
'Exploratory' plan in the standard game it will indeed go off by itself 
exploring territory without need for any further intervention.  Same 
with infantry etc.  This is a *very* useful feature, even if (as was 
implied) it's only really meant for the AI player to use.

Robert.

-- 
Robert Goulding
Program in History and Philosophy of Science
University of Notre Dame
Notre Dame IN 46656

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Plans, again
  2004-06-12 20:38 Plans, again Robert Goulding
@ 2004-06-12 21:09 ` Hans Ronne
  2004-06-12 22:39   ` Robert Goulding
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Ronne @ 2004-06-12 21:09 UTC (permalink / raw)
  To: Robert Goulding; +Cc: xconq7

>Just to note that the 'Plans' menu item *does* seem to have some effect
>in the native OSX version.  If I give a ship, for instance, an
>'Exploratory' plan in the standard game it will indeed go off by itself
>exploring territory without need for any further intervention.  Same
>with infantry etc.  This is a *very* useful feature, even if (as was
>implied) it's only really meant for the AI player to use.

It will go off by itself, but only if you turn on the AI for your side
(either in the player setup dialog or later in the Side menu). Moreover "AI
control" has to be checked for the unit. AI control is on by default, so
when you turn on the AI it will seize control of all units for which you
did not disable AI control.

Once the AI takes over a unit, it will scrap any previous plan and pick its
own. It may happen that the AI also thinks it is a good idea to explore, in
which case the unit may keep an exploratory plan. But this is pure
coincidence. What the plan type was set to before the AI took over does not
matter.

This is the relevant code from set_side_ai:

if (gameinited) {
    /* Replan everything, whether switching to ai or human control. */
    DMprintf("%s is replanning all units after ai switch.\n",
side_desig(side));
    for_all_side_units(side, unit) {
        if (is_active(unit)) {
            /* We do this locally on each computer to save time. */
            unit->aihook = NULL;
            force_replan(unit);
        }
    }
}

To avoid confusion I have disabled the plan type menu in the CVS sources. I
will put it back if/when I implement the semi-automatic mode for AI control.

Hans


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Plans, again
  2004-06-12 21:09 ` Hans Ronne
@ 2004-06-12 22:39   ` Robert Goulding
  0 siblings, 0 replies; 3+ messages in thread
From: Robert Goulding @ 2004-06-12 22:39 UTC (permalink / raw)
  To: Hans Ronne; +Cc: xconq7


----- Original Message ----- 
From: "Hans Ronne" <hronne@comhem.se>
To: "Robert Goulding" <Goulding.2@nd.edu>
Cc: <xconq7@sources.redhat.com>
Sent: Saturday, June 12, 2004 4:06 PM
Subject: Re: Plans, again


> >Just to note that the 'Plans' menu item *does* seem to have some effect
> >in the native OSX version.  If I give a ship, for instance, an
> >'Exploratory' plan in the standard game it will indeed go off by itself
> >exploring territory without need for any further intervention.  Same
> >with infantry etc.  This is a *very* useful feature, even if (as was
> >implied) it's only really meant for the AI player to use.
>
> It will go off by itself, but only if you turn on the AI for your side
> (either in the player setup dialog or later in the Side menu). Moreover
"AI
> control" has to be checked for the unit. AI control is on by default, so
> when you turn on the AI it will seize control of all units for which you
> did not disable AI control.

Ah - OK, thanks, I get it...

R.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-06-12 22:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-12 20:38 Plans, again Robert Goulding
2004-06-12 21:09 ` Hans Ronne
2004-06-12 22:39   ` Robert Goulding

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).