chromatic > Games-PMM > Games::PMM::Arena

Download:
Games-PMM-0.10.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Games::PMM::Arena - represents the playing arena of a PMM Game

SYNOPSIS ^

        use Games::PMM::Arena;
        use Games::PMM::Monster;

        my $arena = Games::PMM::Arena->new();

        my $m1    = Games::PMM::Monster->new();
        my $m2    = Games::PMM::Monster->new();

        $arena->add_monster( $m1, x => 0, y => 0 );
        $arena->add_monster( $m2, x => 9, y => 9 );

        $m1->facing( 'north' );
        $m1->facing( 'south' );

DESCRIPTION ^

Games::PMM::Arena represents the arena in which monsters battle. It controls the coordinate system and all related issues, including monster movement.

METHODS ^

Several of these methods are private, used mostly within this module (and, presumably, any subclasses).

AUTHOR ^

chromatic, chromatic@wgz.org

BUGS ^

No known bugs.

COPYRIGHT ^

Copyright (c) 2003, chromatic. All rights reserved. This module is distributed under the same terms as Perl itself, in the hope that it is useful but certainly under no guarantee.

syntax highlighting: