diff options
Diffstat (limited to 'manuals/chickadee/Agendas.html')
-rw-r--r-- | manuals/chickadee/Agendas.html | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/manuals/chickadee/Agendas.html b/manuals/chickadee/Agendas.html index 93894c1..28189a6 100644 --- a/manuals/chickadee/Agendas.html +++ b/manuals/chickadee/Agendas.html @@ -18,7 +18,7 @@ Foundation Web site at http://www.gnu.org/licenses/fdl.html. The document was typeset with http://www.texinfo.org/ (GNU Texinfo). --> -<!-- Created by GNU Texinfo 6.6, http://www.gnu.org/software/texinfo/ --> +<!-- Created by GNU Texinfo 6.7, http://www.gnu.org/software/texinfo/ --> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Agendas (The Chickadee Game Toolkit)</title> @@ -28,12 +28,12 @@ http://www.texinfo.org/ (GNU Texinfo). <meta name="resource-type" content="document"> <meta name="distribution" content="global"> <meta name="Generator" content="makeinfo"> -<link href="index.html#Top" rel="start" title="Top"> -<link href="Index.html#Index" rel="index" title="Index"> +<link href="index.html" rel="start" title="Top"> +<link href="Index.html" rel="index" title="Index"> <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents"> -<link href="Scripting.html#Scripting" rel="up" title="Scripting"> -<link href="Scripts.html#Scripts" rel="next" title="Scripts"> -<link href="Scripting.html#Scripting" rel="prev" title="Scripting"> +<link href="Scripting.html" rel="up" title="Scripting"> +<link href="Scripts.html" rel="next" title="Scripts"> +<link href="Scripting.html" rel="prev" title="Scripting"> <style type="text/css"> <!-- a.summary-letter {text-decoration: none} @@ -82,7 +82,7 @@ ul.no-bullet {list-style: none} <body lang="en"> <span id="Agendas"></span><div class="header"> <p> -Next: <a href="Scripts.html#Scripts" accesskey="n" rel="next">Scripts</a>, Up: <a href="Scripting.html#Scripting" accesskey="u" rel="up">Scripting</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Index.html#Index" title="Index" rel="index">Index</a>]</p> +Next: <a href="Scripts.html" accesskey="n" rel="next">Scripts</a>, Up: <a href="Scripting.html" accesskey="u" rel="up">Scripting</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Index.html" title="Index" rel="index">Index</a>]</p> </div> <hr> <span id="Agendas-1"></span><h4 class="subsection">2.5.1 Agendas</h4> @@ -107,7 +107,7 @@ the current time. This is where <code>after</code> comes in handy: <p>Time units in the agenda are in no way connected to real time. It’s up to the programmer to decide what agenda time means. A simple and effective approach is to map each call of the update procedure -(see <a href="Kernel.html#Kernel">Kernel</a>) to 1 unit of agenda time, like so: +(see <a href="Kernel.html">Kernel</a>) to 1 unit of agenda time, like so: </p> <div class="example"> <pre class="example">(define (update dt) @@ -201,10 +201,20 @@ indefinitely if not specified. time. Repeat this <var>n</var> times, or indefinitely if not specified. </p></dd></dl> +<p>It is also possible to schedule things that are not dependent on how +much time passes. The agenda will periodically poll to see if any +registered conditions are met. +</p> +<dl> +<dt id="index-call_002dwhen">Procedure: <strong>call-when</strong> <em>pred thunk</em></dt> +<dd><p>Call <var>thunk</var> sometime in the future when <var>pred</var> is satisfied +(returns a value other than <code>#f</code>.) +</p></dd></dl> + <hr> <div class="header"> <p> -Next: <a href="Scripts.html#Scripts" accesskey="n" rel="next">Scripts</a>, Up: <a href="Scripting.html#Scripting" accesskey="u" rel="up">Scripting</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Index.html#Index" title="Index" rel="index">Index</a>]</p> +Next: <a href="Scripts.html" accesskey="n" rel="next">Scripts</a>, Up: <a href="Scripting.html" accesskey="u" rel="up">Scripting</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Index.html" title="Index" rel="index">Index</a>]</p> </div> |