public inbox for xconq7@sourceware.org
 help / color / mirror / Atom feed
From: Hans Ronne <hronne@comhem.se>
To: Christopher Wood <cwood@cs.pdx.edu>
Cc: xconq7@sources.redhat.com
Subject: Re: Question on combat procedures
Date: Mon, 05 Jul 2004 22:12:00 -0000	[thread overview]
Message-ID: <l03130300bd0f71776835@[212.181.162.155]> (raw)
In-Reply-To: <Pine.LNX.4.58.0407051317050.27768@jess.cs.pdx.edu>

>1) Is the above lists in action.def the series of functions that get
>called for a particular attack?

Yes. The normal sequence is that the AI, interface or task code makes two
calls:

1. check_some_action. Checks that the action is possible.

2. Either prep_some_action or net_prep_some_action. Schedules the action
for execution. The net_ functions also broadcast the action, so that every
computer in the game schedules it. For an explanation of the difference
between the two and when to use broadcast functions, see my reply to Peter
Garrone last year:

http://sources.redhat.com/ml/xconq7/2003/msg00918.html

Next time something happens is when the run_game code calls execute_action.
It also makes two calls:

3. check_some_action (in case things changed and the action is no longer
possible).

4. do_some_action, which finally does the job.

BTW, the task code (next abstraction layer above the actions) is quite
similar. See task.def.

Hans



  parent reply	other threads:[~2004-07-05 21:25 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-04  0:05 xConq alternate combat engine project Ramsey
2004-07-04  0:24 ` Eric McDonald
2004-07-05 19:17   ` Christopher Wood
2004-07-05 20:18     ` Christopher Wood
2004-07-05 20:27     ` Eric McDonald
2004-07-05 20:44     ` Question on combat procedures Christopher Wood
2004-07-05 20:54       ` Eric McDonald
2004-07-05 21:25       ` Jim Kingdon
2004-07-05 22:12       ` Hans Ronne [this message]
2004-07-04  0:30 ` xConq alternate combat engine project Eric McDonald
2004-07-04  0:38   ` Eric McDonald
2004-07-04  0:45     ` Hans Ronne
2004-07-04  3:39   ` Christopher Wood
2004-07-04  5:22     ` Christopher Wood
2004-07-05  4:58     ` Elijah Meeks
2004-07-05 20:11       ` Christopher Wood
2004-07-04  0:43 ` Hans Ronne

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='l03130300bd0f71776835@[212.181.162.155]' \
    --to=hronne@comhem.se \
    --cc=cwood@cs.pdx.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).