summaryrefslogtreecommitdiffstats
path: root/lib/Bot/Games/Game/Ghost.pm
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2009-10-31 15:16:49 -0500
committerJesse Luehrs <doy@tozt.net>2009-10-31 15:28:04 -0500
commit188ad8e49c1fa2802eaa55b3d4ae978f2c58c23c (patch)
tree89333ab23955cceb45dada36ffe89a7a23c855b3 /lib/Bot/Games/Game/Ghost.pm
parentda36dca6178721b1c91b5e680d01e2595c2b1801 (diff)
downloadbot-games-188ad8e49c1fa2802eaa55b3d4ae978f2c58c23c.tar.gz
bot-games-188ad8e49c1fa2802eaa55b3d4ae978f2c58c23c.zip
convert Bot::Games to use IM::Engine::Plugin::Commands
Diffstat (limited to 'lib/Bot/Games/Game/Ghost.pm')
-rw-r--r--lib/Bot/Games/Game/Ghost.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Bot/Games/Game/Ghost.pm b/lib/Bot/Games/Game/Ghost.pm
index 6f8ad83..97dbbb9 100644
--- a/lib/Bot/Games/Game/Ghost.pm
+++ b/lib/Bot/Games/Game/Ghost.pm
@@ -1,5 +1,5 @@
package Bot::Games::Game::Ghost;
-use Bot::Games::OO::Game;
+use Bot::Games::OO;
use Games::Word::Wordlist;
extends 'Bot::Games::Game';
with 'Bot::Games::Game::Role::CurrentPlayer';
@@ -41,7 +41,7 @@ around state => sub {
return $self->$orig($state);
};
-augment turn => sub {
+sub turn {
my $self = shift;
my ($player, $state) = @_;
$self->maybe_add_player($player);
@@ -126,6 +126,6 @@ around maybe_add_player => sub {
};
__PACKAGE__->meta->make_immutable;
-no Bot::Games::OO::Game;
+no Bot::Games::OO;
1;