Games-PMM
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/Games/PMM/Arena.pm view on Meta::CPAN
my ($self, $monster) = @_;
my $id = $monster->id();
my $monsters = $self->monsters();
return unless exists $monsters->{ $id };
my ($x, $y) = @{ $monsters->{ $id } };
return { x => $x, y => $y };
}
sub update_position
{
my ($self, $monster, %args) = @_;
my $old_pos = $self->get_position( $monster );
return unless $self->validate_position( %args );
$self->delete_position( monster => $monster, %$old_pos );
$self->set_position( monster => $monster, %args );
}
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.511 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )