Jerome Quelin > Games-Pandemic-1.120510 > Games::Pandemic::Map

Download:
Games-Pandemic-1.120510.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Module Version: 1.120510   Source  

NAME ^

Games::Pandemic::Map - pandemic map information

VERSION ^

version 1.120510

METHODS ^

my $bgpath = $map->background_path;

Return the path the background image of the map.

my $dir = $map->sharedir;

Return the path to the private directory $dir where $map stores various files.

my @cards = $map->cards;

Return a list of Games::Pandemic::Card: special event cards depending on the map, plus one card per city defined in the map. They will be used for the regular deck. Note that the cards will not be shuffled.

my @cards = $map->disease_cards;

Return a list of Games::Pandemic::Card::City, one per city defined in the map. They will be used for the infection deck. Note that the cards will not be shuffled.

my $city = $map->find_city( $name );

my @rates = $map->infection_rates;

Return the infection rates. It's a list of numbers, which offset is the number of epidemics already encountered.

AUTHOR ^

Jerome Quelin

COPYRIGHT AND LICENSE ^

This software is Copyright (c) 2009 by Jerome Quelin.

This is free software, licensed under:

  The GNU General Public License, Version 2, June 1991
syntax highlighting: