From 188ad8e49c1fa2802eaa55b3d4ae978f2c58c23c Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 31 Oct 2009 15:16:49 -0500 Subject: convert Bot::Games to use IM::Engine::Plugin::Commands --- lib/Bot/Games/Game/Chess.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/Bot/Games/Game/Chess.pm') diff --git a/lib/Bot/Games/Game/Chess.pm b/lib/Bot/Games/Game/Chess.pm index 554fe9e..c3eb14f 100644 --- a/lib/Bot/Games/Game/Chess.pm +++ b/lib/Bot/Games/Game/Chess.pm @@ -1,5 +1,5 @@ package Bot::Games::Game::Chess; -use Bot::Games::OO::Game; +use Bot::Games::OO; extends 'Bot::Games::Game'; with 'Bot::Games::Game::Role::CurrentPlayer'; @@ -17,7 +17,7 @@ has game => ( ); has turn_count => ( - traits => ['Counter'], + traits => ['MooseX::AttributeHelpers::Trait::Counter'], is => 'ro', isa => 'Int', default => 1, @@ -26,7 +26,7 @@ has turn_count => ( } ); -augment turn => sub { +sub turn { my $self = shift; my ($player, $move) = @_; $self->maybe_add_player($player); @@ -91,6 +91,6 @@ sub format_turn { } __PACKAGE__->meta->make_immutable; -no Bot::Games::OO::Game; +no Bot::Games::OO; 1; -- cgit v1.2.3-54-g00ecf