mr_holmes 0.0.2 → 0.0.3

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
  SHA1:
3
- metadata.gz: cf21ff815f786ef8ede468b293c0747eee971522
4
- data.tar.gz: bd61dfff068421675bb87cbfd2b066ea3803d3b8
3
+ metadata.gz: 6a9b53750e7d1afbcd52a5d56c83602d6e7cae19
4
+ data.tar.gz: 1adc1cb90c09c1ca31784f9512bd848216b0cb45
5
5
  SHA512:
6
- metadata.gz: ac464eea83db59dfa991defb55e2b9c8aaa53c615a5c0c4867c326f6c0d756d9ea53ffd03134a4105924293eef0ecf578749326e150def5445f02d9b4704082b
7
- data.tar.gz: 8eaf0f7e030b4ad8ad230dd8af042ecff925a9e015663bdb39e507c9c0077f4671322dbd0da81c9bbc01c7b9ab7339e42db2317c04d1edf3daad481fc284b320
6
+ metadata.gz: 3ba7d04df2f65d533bbca3c5409c70a0d1022a07fabcc5b588d896be0990c047c6c40ef0a98eeff5f42f0b606dd6cf5e1263c68dc18c1f8d2b71aa0797cf701c
7
+ data.tar.gz: 857c310ce14574374ef705c4776437c70d2b1efef6196adc0ee64332f493807c16c7a3bd26ddfdb6a58877ac47d97f4e867e9a2b877a7ba6e4d25486a9b51237
@@ -29,6 +29,17 @@ class Player < Node
29
29
 
30
30
  # ----------------------------------------------------------------- Actions
31
31
 
32
+ # Move the player around between locations
33
+ def do_cab(destination, *a)
34
+ location_string = destination
35
+ a.each { |x| location_string = location_string + "_#{x.to_str.downcase}" }
36
+ location = get_root.find(location_string.to_sym)
37
+ travel_to = location.children.first
38
+ get_location.move(self, travel_to)
39
+ get_location.describe
40
+ get_scene.describe
41
+ end
42
+
32
43
  # Move the player around between scenes
33
44
  def do_go(direction, *a)
34
45
  dest = get_scene.send("exit_#{direction}")
data/mr_holmes.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'mr_holmes'
3
- s.version = '0.0.2'
3
+ s.version = '0.0.3'
4
4
  s.date = '2014-11-26'
5
5
  s.summary = "Mr Holmes is a text-based game based on the magnificent works of Sir Arthur Conan Doyle."
6
6
  s.description = "NOTE: This versions is not yet playable, version 1.0.0 will be the first official release. Keep a look out! Mr Holmes is a text-based game based on the magnificent works of Sir Arthur Conan Doyle. Release your inner sleuth as you work your way through a wide variaty of criminal mysteries. With the help of your loyal friend Dr. Watson, you'll have to solve complex puzzles whilst playing a dangerous game of chess with your arch-enemy: Moriarty."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mr_holmes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Hagen