X-Git-Url: https://jxself.org/git/?p=ibg.git;a=blobdiff_plain;f=chapters%2F11.rst;fp=chapters%2F11.rst;h=84de408267c8c747f8ae2b0640e923b1e2d6c361;hp=ff082ec038d2eac4c421874217cb41953510ca7d;hb=8009937904cf79341a9c23c9c5e7b541606bfcb6;hpb=9f5abf3a7762275e6ae1f1a29c6594994ba07e2c diff --git a/chapters/11.rst b/chapters/11.rst index ff082ec..84de408 100644 --- a/chapters/11.rst +++ b/chapters/11.rst @@ -55,6 +55,8 @@ define the door object which lies between the café and the toilet. We've mentioned a counter: +.. include:: /config/typethis.rst + .. code-block:: inform Appliance counter "counter" cafe @@ -125,6 +127,8 @@ the player to accomplish this. We've also mentioned some customers. These are treated as NPCs, reacting to our hero’s performance. +.. include:: /config/typethis.rst + .. code-block:: inform Object customers "customers" cafe @@ -327,6 +331,8 @@ in their Captain’s outfit, they’ll be coming from the toilet. As a consequence of all this, we add an :prop:`after` property to the café room object: +.. include:: /config/typethis.rst + .. code-block:: inform Room cafe "Inside Benny's cafe" @@ -452,6 +458,8 @@ and its possible states affect both sides. However, the coding gets a little bit complicated and you''ll have to define routines for most properties: +.. include:: /config/typethis.rst + .. code-block:: inform Object toilet_door "toilet door" @@ -511,6 +519,8 @@ retain the same external name throughout the game -- and the header information method is perfect in that case -- but if it needs to change, it's easy to write a routine as the value of :prop:`short_name`: +.. include:: /config/typethis.rst + .. code-block:: inform Object toilet_door @@ -577,6 +587,8 @@ If a few lines of code can make the life of the player easier, it's worth a shot. Let's provide a few improvements to our toilet door in :prop:`before` and :prop:`after` properties: +.. include:: /config/typethis.rst + .. code-block:: inform before [ ks; @@ -704,6 +716,8 @@ So far, we have the player in front of a locked door leading to the toilet. A dead end? No, the description mentions a scribbled note on its surface. This one should offer no problem: +.. include:: /config/typethis.rst + .. code-block:: inform Object "scribbled note" cafe @@ -744,6 +758,8 @@ ask for it, just as the note explains. Although we'll define Benny in detail throughout the next chapter, here we present a basic definition, largely so that the key has a parent object. +.. include:: /config/typethis.rst + .. code-block:: inform Object benny "Benny" cafe @@ -837,6 +853,8 @@ choose to examine the café from the outside. While it's unlikely that they'll try to examine the toilet room from the outside, it takes very little effort to offer a sensible output just in case: +.. include:: /config/typethis.rst + .. code-block:: inform Object outside_of_toilet "toilet" cafe