public inbox for xconq7@sourceware.org
 help / color / mirror / Atom feed
From: Hans Ronne <hronne@comhem.se>
To: Eric McDonald <mcdonald@phy.cmich.edu>
Cc: xconq7@sources.redhat.com
Subject: Re: bug in infantry building a base which is already started
Date: Tue, 25 May 2004 23:14:00 -0000	[thread overview]
Message-ID: <l03130302bcd97a03d009@[212.181.162.155]> (raw)
In-Reply-To: <Pine.LNX.4.44.0405251818090.10805-100000@leon.phy.cmich.edu>

>On Wed, 26 May 2004, Hans Ronne wrote:
>
>> A followup: the easiest way to fix the build code is of course to iterate
>> over units instead of unit views. Since that code is checking that the
>> builder and the target is on the same side, the latter will always be fully
>> visible to the builder, so there is really no point in using unit views
>> here.
>
>I had considered what you suggest. However, one cannot assume that
>all units in a cell are on the same side as the builder. And since
>this is a task, and not an action-handler, we should not be giving
>the task special knowledge about another side's units. If we ever
>get to the point where we have a true client-server architecture,
>we may regret making such assumptions.

Maybe, but then we would have to rewrite the entire kernel. There are many
cases like this (not only in the action code) where units are accessed
directly, if it is safe to do so. In this specific case, it doesn't matter
if we access real units since enemy units are ignored and information about
them therefore cannot leak back to the interface or the AI.

I agree that a pure view-based kernel code might have some advantages. But
we are a far way from there.

Hans


  reply	other threads:[~2004-05-25 23:14 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-24  3:45 Jim Kingdon
2004-05-24 20:00 ` Eric McDonald
2004-05-25  3:33 ` Eric McDonald
2004-05-25 21:53   ` Hans Ronne
2004-05-25 22:02     ` Hans Ronne
2004-05-25 22:27       ` Eric McDonald
2004-05-25 23:14         ` Hans Ronne [this message]
2004-05-25 23:28           ` Eric McDonald
2004-05-26  0:00             ` Hans Ronne
2004-05-26 21:00               ` Overwatch and Counterbattery? Elijah Meeks
2004-05-26 21:35                 ` Hans Ronne
2004-05-27  2:17                   ` Eric McDonald
2004-05-25 22:14     ` bug in infantry building a base which is already started Eric McDonald

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='l03130302bcd97a03d009@[212.181.162.155]' \
    --to=hronne@comhem.se \
    --cc=mcdonald@phy.cmich.edu \
    --cc=xconq7@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).