| Games-Pandemic documentation | view source | Contained in the Games-Pandemic distribution. |
Games::Pandemic::Disease object, which is
the disease which will infect the city by default
Games::Pandemic::City - pandemic city object
version 1.111030
This module implements a class for city objects, used in Pandemic. They have different attributes:
Games::Pandemic::Disease object, which is
the disease which will infect the city by defaultCreate a research station in the city.
Remove the research station that was in the city.
Return true if the city has a research station.
Return a list of Games::Pandemic::City, which are the direct
neighbours of $city.
Infect $city with $nb items of $disease. Return true if an
outbreak happened following this infection, false otherwise. If an
outbreak happened, return also the real number of items used (since a
city can only hold up to a maximum number of disease items).
$nb defaults to 1, and $disease to the city disease.
Return the number of $disease items for the $city.
Remove $nb items from $disease in $city.
Jerome Quelin
This software is Copyright (c) 2009 by Jerome Quelin.
This is free software, licensed under:
The GNU General Public License, Version 2, June 1991
| Games-Pandemic documentation | view source | Contained in the Games-Pandemic distribution. |