Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[bin/crypt] renamed [Crypt->Adventure]::PlayerLooked

Looking is not specific to Crypt at all.
  • Loading branch information...
commit 30ed2fbf988983b3c4740905b19f8d137e4d8ecc 1 parent a9c83c0
@masak authored
Showing with 7 additions and 7 deletions.
  1. +7 −7 bin/crypt
View
14 bin/crypt
@@ -236,6 +236,11 @@ class Adventure::PlayerWasPlaced does Event {
has $.in;
}
+class Adventure::PlayerLooked does Event {
+ has $.target;
+ has $.description_of;
+}
+
class Adventure::TwoRoomsConnected does Event {
has @.rooms;
has $.direction;
@@ -361,11 +366,6 @@ class Adventure::Engine {
}
}
-class Crypt::PlayerLooked does Event {
- has $.target;
- has $.description_of;
-}
-
class X::Crypt is Exception {
}
@@ -388,7 +388,7 @@ class Crypt::Game {
}
method look() {
- Crypt::PlayerLooked.new(:target<room>, :description_of<clearing>);
+ Adventure::PlayerLooked.new(:target<room>, :description_of<clearing>);
}
}
@@ -606,7 +606,7 @@ multi MAIN('test') {
my $game = Crypt::Game.new();
is $game.look(),
- Crypt::PlayerLooked.new(
+ Adventure::PlayerLooked.new(
:target('room'),
:description_of<clearing>,
),
Please sign in to comment.
Something went wrong with that request. Please try again.