NetHack::ItemPool - represents a universe of NetHack items


NetHack-Item documentation  | view source Contained in the NetHack-Item distribution.

Index


NAME

Top

NetHack::ItemPool - represents a universe of NetHack items

VERSION

Top

version 0.13

SYNOPSIS

Top

    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

Top

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.


NetHack-Item documentation  | view source Contained in the NetHack-Item distribution.