inform6lib 0.0.7 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ad80c79e9fdb4cc450f44c7d9141239b309c6622c34515e31e0ffd53b4b16590
4
- data.tar.gz: 726d1e9f17ae1d19863929ccb2fa058923dd9b8efded0d256a74c297b1ac416c
3
+ metadata.gz: d9f1deb9cf509ad1583e444225fae2d0e94aeee6a150844e83b39818ffae1792
4
+ data.tar.gz: cf1bf259e26d5496ed8bd6d1e2daeeebdc8df95915e61d66a90a6646def02c68
5
5
  SHA512:
6
- metadata.gz: aa8cb8bbeb333eb5b7038a9b2a126809f905cb2a994906802cb2329f73cbbd6da2de39398ef7b1dca0e65dfc84ee730a6c51e784e001860d661db43ba0cb6e84
7
- data.tar.gz: c9eab7a76abac38d6e44fc521f3b4c8b9e0ec0129e1a0eeb18612fd765e28483bc537038a1f9078bfebf2c0020e1f3c20977a59c1cf7f6bcf0bd7acf48610afb
6
+ metadata.gz: 32ee527e72c9648a864e2f4f0d06a750d92e8835c3954118d7a5283c636ec7e701ac81d13768f04c602753fb12cc27d2df0f4980f98a0e0abb1ea17b4eb6ff70
7
+ data.tar.gz: 615afb3f2854063b9964289e720290124c9196bd692c5b576de3cd8542ce7c501117407106426d895a5efbea48de49647f62d42f302bec7a372fd37225900499
@@ -66,7 +66,7 @@ module English
66
66
  # ------------------------------------------------------------------------------
67
67
 
68
68
  # The CompassDirection class
69
- class CompassDirection < Inform::System::Object
69
+ class CompassDirection < Inform::Ephemeral::Object
70
70
  def initialize(name, number = 0, article = "the")
71
71
  super(name)
72
72
  @number = number
@@ -75,7 +75,7 @@ module English
75
75
  end
76
76
  end
77
77
 
78
- Compass = Inform::System::Object.new "compass"
78
+ Compass = Inform::Ephemeral::Object.new "compass"
79
79
  Compass.has :concealed
80
80
 
81
81
  Compass > $n_obj = CompassDirection.new("north") {
@@ -1268,9 +1268,9 @@ if defined? Inform::Object
1268
1268
  include Inform::English
1269
1269
  end
1270
1270
 
1271
- # The Inform::System module
1272
- module System
1273
- # The Inform::System::Object class to include the English module
1271
+ # The Inform::Ephemeral module
1272
+ module Ephemeral
1273
+ # The Inform::Ephemeral::Object class to include the English module
1274
1274
  class Object
1275
1275
  include Inform::English
1276
1276
  end
@@ -52,7 +52,7 @@ module Verbs
52
52
  end
53
53
 
54
54
  unless defined? LibraryMessages
55
- LibraryMessages = Inform::System::Object.new
55
+ LibraryMessages = Inform::Ephemeral::Object.new
56
56
  end
57
57
 
58
58
  unless defined? NO_PLACES
@@ -504,7 +504,7 @@ module Parser
504
504
  # location-name on the status line can be "Darkness".
505
505
  # ----------------------------------------------------------------------------
506
506
 
507
- Darkness = Inform::System::Object.new "(darkness object)"
507
+ Darkness = Inform::Ephemeral::Object.new "(darkness object)"
508
508
  Darkness.with do
509
509
  def short_name; DARKNESS__TX; end
510
510
  def description; L__M(:Miscellany, 17); end
@@ -574,7 +574,7 @@ module Parser
574
574
  #
575
575
  # ----------------------------------------------------------------------------
576
576
 
577
- # InformParser = Inform::System::Object.new "(Inform Parser)"
577
+ # InformParser = Inform::Ephemeral::Object.new "(Inform Parser)"
578
578
  # def InformParser.parse_input; Parser__parse(); end
579
579
  # InformParser.has :proper
580
580
 
@@ -4676,7 +4676,7 @@ module Parser
4676
4676
 
4677
4677
  # artform = LanguageArticles
4678
4678
  # + 3*WORDSIZE*LanguageContractionForms*(short_name_case + i*LanguageCases);You can see acode: 2
4679
- # TODO: Remove wtf
4679
+ # TODO: Remove
4680
4680
  # print "acode: ", acode, "^";
4681
4681
  # print "artform-->acode: ", (string) (artform-->acode), "^";
4682
4682
  # print "artform-->0: ", (string) (artform-->0), "^";
@@ -5174,13 +5174,10 @@ end
5174
5174
 
5175
5175
  # The InformLibrary class.
5176
5176
  # Inform 6 defines this as an Object.
5177
- class InformLibrary < Inform::System::Object
5177
+ class InformLibrary < Inform::Ephemeral::Object
5178
5178
  REGISTRY = Struct.new(:memo).new(defined?(Java) ? java.util.concurrent.ConcurrentHashMap.new : {})
5179
- include Inform::Context
5180
- include Inform::StdLib
5181
- include Inform::Parser
5182
5179
  include Inform::Rules
5183
- include Inform::History
5180
+ include Inform::Parser
5184
5181
 
5185
5182
  attr_accessor :player
5186
5183
 
@@ -5842,7 +5839,7 @@ module Inform
5842
5839
  end
5843
5840
 
5844
5841
  # The LibExt class
5845
- class LibExt < Inform::System::Object
5842
+ class LibExt < Inform::Ephemeral::Object
5846
5843
  attr_accessor :ext_initialise, :ext_messages
5847
5844
 
5848
5845
  def init
@@ -1034,7 +1034,7 @@ module Verbs
1034
1034
  # of using Netty.
1035
1035
  def YesOrNo
1036
1036
  loop do
1037
- @input = Inform::Runtime.instance.read
1037
+ @input = __read
1038
1038
  DrawStatusLine() if !location.nil? && !parent(@player).nil?
1039
1039
  j = @input
1040
1040
  unless @input.empty? # at least one word entered
@@ -2399,7 +2399,7 @@ module Verbs
2399
2399
  # ----------------------------------------------------------------------------
2400
2400
 
2401
2401
  def XTestMove(obj, dest)
2402
- if obj.is_a?(InformLibrary) || obj == LibraryMessages || obj.is_a?(Inform::System::Object)
2402
+ if obj.is_a?(InformLibrary) || obj == LibraryMessages || obj.is_a?(Inform::Ephemeral::Object)
2403
2403
  println "[Can't move #{obj.name}: it's a system object.]"
2404
2404
  return true
2405
2405
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inform6lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nels Nelson