X-Git-Url: https://jxself.org/git/?p=ibg.git;a=blobdiff_plain;f=chapters%2F05.rst;fp=chapters%2F05.rst;h=7c2ecba18ac42daa297e3afdc49bdc564baceb76;hp=8e3fb54a703c4207ff4e6f54d864fe1fed53826c;hb=8009937904cf79341a9c23c9c5e7b541606bfcb6;hpb=9f5abf3a7762275e6ae1f1a29c6594994ba07e2c diff --git a/chapters/05.rst b/chapters/05.rst index 8e3fb54..7c2ecba 100644 --- a/chapters/05.rst +++ b/chapters/05.rst @@ -60,6 +60,8 @@ LISTEN TO NEST or LISTEN TO TREE, but fairly inappropriate here; we really need to substitute a more relevant response after LISTEN TO BIRD. Here's how we do it: +.. include:: /config/typethis.rst + .. code-block:: inform Object bird "baby bird" forest @@ -185,6 +187,8 @@ which might lead her to believe that she can go inside: Again, that isn't perhaps the most appropriate response, but it's easy to change: +.. include:: /config/typethis.rst + .. code-block:: inform Object before_cottage "In front of a cottage" @@ -249,6 +253,8 @@ response: The situation here is similar to our LISTEN TO BIRD problem, and the solution we adopt is similar as well: +.. include:: /config/typethis.rst + .. code-block:: inform Object cottage "tiny cottage" before_cottage @@ -288,6 +294,8 @@ currently gives the completely misleading response "I don't think much is to be achieved by that"). Yet another opportunity to use a :prop:`before` property, but now with a difference. +.. include:: /config/typethis.rst + .. code-block:: inform Object tree "tall sycamore tree" clearing @@ -360,6 +368,8 @@ interception not on an object-by-object basis, as we have been doing so far, but instead for every :act:`Drop` which takes place in our troublesome ``top_of_tree`` room. This is what we have to write: +.. include:: /config/typethis.rst + .. code-block:: inform Object top_of_tree "At the top of the tree" @@ -473,6 +483,8 @@ nest, or vice versa. It would be better not to end the game until we'd checked for the bird actually being in the nest; fortunately, that's easy to do: +.. include:: /config/typethis.rst + .. code-block:: inform Object branch "wide firm bough" top_of_tree