X-Git-Url: https://jxself.org/git/?p=ibg.git;a=blobdiff_plain;f=chapters%2F12.rst;h=fbb46cb6df85d64a59940370928954292276a9a9;hp=832182344ffff2207b4b400dc87aeeb358d7a7f7;hb=8009937904cf79341a9c23c9c5e7b541606bfcb6;hpb=4381288eeb792adb3672ef747013c02815fa760a diff --git a/chapters/12.rst b/chapters/12.rst index 8321823..fbb46cb 100644 --- a/chapters/12.rst +++ b/chapters/12.rst @@ -136,6 +136,8 @@ It seems simple enough. So, following steps one and two, we add those ``pname.h`` right after it. ``Replace`` tells the compiler that we're providing replacements for some standard routines. +.. include:: /config/typethis.rst + .. code-block:: inform Constant Story "Captain Fate"; @@ -162,6 +164,8 @@ added to some of our objects, and which works pretty much like a :prop:`name` property where we have a disambiguation problem. Let’s change the relevant lines for the toilet door and the toilet key: +.. include:: /config/typethis.rst + .. code-block:: inform Object toilet_door @@ -253,6 +257,8 @@ generic form: We have seen some of these actions before. We'll take care of the easier ones: +.. include:: /config/typethis.rst + .. code-block:: inform Attack: @@ -291,6 +297,8 @@ coffee has been paid for, and whether the toilet key has been returned. The solution, yet again (this really is a most useful capability), is more local property variables: +.. include:: /config/typethis.rst + .. code-block:: inform Object benny "Benny" cafe @@ -310,6 +318,8 @@ property, which deals with commands like GIVE THE KEY TO BENNY (in a moment, we'll come to the :act:`Give` action of the :prop:`orders` property, which deals with commands like BENNY, GIVE ME THE KEY): +.. include:: /config/typethis.rst + .. code-block:: inform Give: @@ -385,6 +395,8 @@ demands. The :act:`Give` action in an :prop:`orders` property deals with inputs like ASK BENNY FOR THE KEY or BENNY, GIVE ME THE KEY. The syntax is similar to that of the :prop:`life` property: +.. include:: /config/typethis.rst + .. code-block:: inform orders [; ! handles ASK BENNY FOR X and BENNY, GIVE ME XXX @@ -475,6 +487,8 @@ will. But where? We must revisit the café room object: +.. include:: /config/typethis.rst + .. code-block:: inform Room cafe "Inside Benny's cafe"