Shawn M Moore > NetHack-Item-0.20 > NetHack::ItemPool

Download:
NetHack-Item-0.20.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.20   Source   Latest Release: NetHack-Item-0.21

NAME ^

NetHack::ItemPool - represents a universe of NetHack items

VERSION ^

version 0.20

SYNOPSIS ^

    use NetHack::ItemPool;
    my $pool = NetHack::ItemPool->new;
    my $excalibur = $pool->new_item("the +3 Excalibur (weapon in hand)");
    is($pool->inventory->weapon, $excalibur);

DESCRIPTION ^

Objects of this class represent a universe of NetHack items. For example, each instance of this class gets exactly one Magicbane, because each NetHack game gets exactly one Magicbane.

An ItemPool also manages inventory (NetHack::Inventory) and equipment (NetHack::Inventory::Equipment) for you.

More documentation to come. For now, the best resource is this module's test suite.

syntax highlighting: