Skip to content

Commit

Permalink
[bin/crypt] renamed [Crypt->Adventure]::PlayerLooked
Browse files Browse the repository at this point in the history
Looking is not specific to Crypt at all.
  • Loading branch information
Carl Masak committed Jul 6, 2012
1 parent a9c83c0 commit 30ed2fb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions bin/crypt
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -236,6 +236,11 @@ class Adventure::PlayerWasPlaced does Event {
has $.in; has $.in;
} }


class Adventure::PlayerLooked does Event {
has $.target;
has $.description_of;
}

class Adventure::TwoRoomsConnected does Event { class Adventure::TwoRoomsConnected does Event {
has @.rooms; has @.rooms;
has $.direction; has $.direction;
Expand Down Expand Up @@ -361,11 +366,6 @@ class Adventure::Engine {
} }
} }


class Crypt::PlayerLooked does Event {
has $.target;
has $.description_of;
}

class X::Crypt is Exception { class X::Crypt is Exception {
} }


Expand All @@ -388,7 +388,7 @@ class Crypt::Game {
} }


method look() { method look() {
Crypt::PlayerLooked.new(:target<room>, :description_of<clearing>); Adventure::PlayerLooked.new(:target<room>, :description_of<clearing>);
} }
} }


Expand Down Expand Up @@ -606,7 +606,7 @@ multi MAIN('test') {
my $game = Crypt::Game.new(); my $game = Crypt::Game.new();


is $game.look(), is $game.look(),
Crypt::PlayerLooked.new( Adventure::PlayerLooked.new(
:target('room'), :target('room'),
:description_of<clearing>, :description_of<clearing>,
), ),
Expand Down

0 comments on commit 30ed2fb

Please sign in to comment.