Skip to content

Commit

Permalink
Fix remaining uses of MXAH
Browse files Browse the repository at this point in the history
  • Loading branch information
sorear committed Apr 13, 2010
1 parent d024278 commit 118f8ee
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
6 changes: 5 additions & 1 deletion lib/TAEB/Debug/Bot.pm
Expand Up @@ -11,9 +11,13 @@ has paused => (
);

has step => (
metaclass => 'Counter',
traits => ['Counter'],
is => 'ro',
default => -1,
handles => {
inc_step => 'inc',
dec_step => 'dec',
},
trigger => sub {
my $self = shift;
my $val = shift;
Expand Down
3 changes: 2 additions & 1 deletion lib/TAEB/Senses.pm
Expand Up @@ -85,7 +85,8 @@ has turn => (

has step => (
is => 'rw',
metaclass => 'Counter',
traits => ['Counter'],
handles => { inc_step => 'inc' },
);

has max_god_anger => (
Expand Down
8 changes: 6 additions & 2 deletions lib/TAEB/World/Level.pm
Expand Up @@ -73,8 +73,12 @@ has monsters => (
);

has turns_spent_on => (
metaclass => 'Counter',
is => 'ro',
traits => ['Counter'],
is => 'ro',
isa => 'Int',
handles => {
inc_turns_spent_on => 'inc',
},
);

has pickaxe => (
Expand Down
8 changes: 6 additions & 2 deletions lib/TAEB/World/Tile.pm
Expand Up @@ -52,7 +52,10 @@ has color => (

has stepped_on => (
is => 'ro',
metaclass => 'Counter',
traits => ['Counter'],
handles => {
inc_stepped_on => 'inc',
},
);

has x => (
Expand All @@ -69,7 +72,8 @@ has y => (

has searched => (
is => 'ro',
metaclass => 'Counter',
traits => ['Counter'],
handles => { inc_searched => 'inc' },
);

has explored => (
Expand Down

0 comments on commit 118f8ee

Please sign in to comment.