Permalink
Browse files

[bin/crypt] moved 'look' into Adventure::Game

  • Loading branch information...
1 parent 1c7f6e2 commit 334a4d709976f8c4b4861a3f47b7e588abdc1b99 @masak committed Jul 7, 2012
Showing with 8 additions and 2 deletions.
  1. +8 −2 bin/crypt
View
@@ -320,6 +320,12 @@ class Adventure::Engine {
@events;
}
+ method look() {
+ my @events = Adventure::PlayerLooked.new(:description_of($!player_location));
+ self!apply($_) for @events;
+ @events;
+ }
+
method place_player($in) {
my @events = Adventure::PlayerWasPlaced.new(:$in);
unless %!seen_room{$in}++ {
@@ -393,8 +399,8 @@ class Crypt::Game {
}
}
- method look() {
- Adventure::PlayerLooked.new(:description_of<clearing>);
+ method look {
+ return $!engine.look;
}
}

0 comments on commit 334a4d7

Please sign in to comment.