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 +4 -4
- data/lib/mr_holmes/player.rb +11 -0
- data/mr_holmes.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6a9b53750e7d1afbcd52a5d56c83602d6e7cae19
|
|
4
|
+
data.tar.gz: 1adc1cb90c09c1ca31784f9512bd848216b0cb45
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3ba7d04df2f65d533bbca3c5409c70a0d1022a07fabcc5b588d896be0990c047c6c40ef0a98eeff5f42f0b606dd6cf5e1263c68dc18c1f8d2b71aa0797cf701c
|
|
7
|
+
data.tar.gz: 857c310ce14574374ef705c4776437c70d2b1efef6196adc0ee64332f493807c16c7a3bd26ddfdb6a58877ac47d97f4e867e9a2b877a7ba6e4d25486a9b51237
|
data/lib/mr_holmes/player.rb
CHANGED
|
@@ -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.
|
|
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."
|