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: Major bug and what to do about it (long)
Date: Mon, 16 Aug 2004 22:43:00 -0000	[thread overview]
Message-ID: <l03130300bd46de08dabc@[212.181.162.155]> (raw)
In-Reply-To: <Pine.LNX.4.44.0408161742180.26801-100000@leon.phy.cmich.edu>

>On Mon, 16 Aug 2004, Hans Ronne wrote:
>
>> Now the ball returns to the AI, who should find something else for our unit
>> to do. However, the AI still sees the same unit view and doesn't know that
>> the task failed, so it sets the same hit_unit task again.
>
>If the action check failed because the unit view doesn't not
>correspond to an actual unit at the given position, then the task
>logic should make a callback to the AI or UI to remove the unit
>view, IMO. This would break the cycle.

Yes, I thought about that. However, since failed tasks do not consume acps,
this would provide a cost-free way to probe the terrain for real vs. bogus
enemy units. A better solution is therefore to use do_fire_into_action
instead, which will not fail because of the intended target being a bogus
unit, and clear the stale unit view if nothing is hit. It was this line of
thought that made me think that we perhaps should do away with
do_fire_at_action altogether, and, by analogy, also do_attack_action.

>However, the unit should be penalized (in terms of ACP,
>material expenditure, etc...) for attempting the action on a
>"ghost" unit. I believe I have mentioned this before, either in
>private email or on the list. In that case, what motivated me to
>mention it was the fire-at-ghost-unit / fire-into cell case. I
>believe this was shortly after I made a fix so that one could not
>probe from cell to cell using the fire command to discover where
>hidden enemy units were.

Letting the failed task consume acps might work in this specific case, but
it would go against how Xconq works in all other situations. For example,
if you click where your unit cannot move, you don't spend any acps. Plans
and tasks are supposed to be only brainchilds of the AI, so it makes sense
to consume acps and materials only when it actually does someting, i.e.
performs an action.

Hans



  reply	other threads:[~2004-08-16 22:14 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-16 21:53 Hans Ronne
2004-08-16 22:14 ` Eric McDonald
2004-08-16 22:43   ` Hans Ronne [this message]
2004-08-17  0:33     ` Hans Ronne
2004-08-17  1:13       ` Eric McDonald
2004-08-17  1:39         ` Hans Ronne
2004-08-17  2:21           ` Eric McDonald
2004-08-17  4:28           ` Jim Kingdon
2004-08-17  5:17             ` Hans Ronne
2004-08-17 18:00               ` Eric McDonald
2004-08-18  5:26               ` Jim Kingdon
2004-08-18 11:11                 ` Hans Ronne
2004-08-17 16:14             ` Eric McDonald
2004-08-17  0:35     ` Eric McDonald
2004-08-17  1:16       ` Hans Ronne
2004-08-17  1:46         ` Eric McDonald
2004-08-17  3:03           ` Hans Ronne
2004-08-17  3:56             ` Eric McDonald
2004-08-17  1:30 ` Eric McDonald
2004-08-17  2:52   ` Hans Ronne
2004-08-17  2:53     ` Eric McDonald
2004-08-17  4:42       ` Jim Kingdon
2004-08-17 16:37         ` Eric McDonald
2004-08-17  4:48       ` Hans Ronne
2004-08-17 16:42         ` Eric McDonald
2004-08-18 10:56         ` Jim Kingdon
2004-08-17 11:06 ` Stan Shebs
2004-08-17 15:29   ` Hans Ronne
2004-08-17 16:01     ` Hans Ronne
2004-08-17 18:57       ` Eric McDonald
2004-08-17 20:38         ` Hans Ronne
2004-08-17 21:55           ` Eric McDonald
2004-08-17 23:42             ` Hans Ronne
2004-08-18  0:49               ` Eric McDonald
2004-08-18  4:59                 ` Hans Ronne
2004-08-18 15:28                   ` Eric McDonald
2004-08-19  6:37                     ` Elijah Meeks
2004-08-19 12:46                       ` Hans Ronne
2004-08-19 16:46                       ` Eric McDonald
2004-08-19 13:09                     ` Hans Ronne
2004-08-19 16:05                       ` Eric McDonald
2004-08-19 20:09                         ` Hans Ronne
2004-08-19 23:37                           ` Eric McDonald
2004-08-20  1:42                             ` Hans Ronne
2004-08-20  3:29                               ` Clearing the Air (long) Eric McDonald
2004-08-20 15:26                                 ` Stan Shebs
2004-08-18  5:30         ` Major bug and what to do about it (long) Jim Kingdon
2004-08-18 12:52           ` Hans Ronne
2004-08-17 18:23     ` Eric McDonald
2004-08-17 18:47       ` Hans Ronne
2004-08-17 18:59         ` Eric McDonald
2004-08-17 19:39           ` Hans Ronne
2004-08-17 21:14             ` 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='l03130300bd46de08dabc@[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).