Output Filtering

version 2 by Ron Newcomb

  • Home page
  • Beginning
  • Previous
  • Next



  • Part 3 - Extension Output Filtering

    Chapter - Extension Output Filtering

    Section - Basics

    Use banner text filtering translates as (- Constant BANNER_FILTERING; -).
    Use no blank lines translates as (- Constant DISABLE_BLANK_LINE_REGEX; -).
    Use output filter debugging translates as (- Constant DEBUG_OUTPUT_FILTERING; -).

    The game's response is indexed text that varies. [ ANALOGOUS TO "THE PLAYER'S COMMAND" ]
    To decide whether (ts - a truth state) is on: if ts is true, decide yes; otherwise decide no.
    To decide whether (ts - a truth state) is off: if ts is false, decide yes; otherwise decide no.

    To start output filtering:
        if output filtering is false begin;
            now output filtering is true; [must be true when calling rule]
            follow the Capture Game Output rule;
        end if.

    To stop output filtering:
        if output filtering is true begin;
            follow the Format Game Output rule; [ flush current saved contents ]
            now output filtering is false; [must be true when calling rule]
        end if.