my $card = $player->owns_city_card( $city );

$player->gain_card( $card )

my $bool = $player->is_move_possible;

Return true if $player can move, starting from her current location. Always true. Included here for the sake of completeness.

my $bool = $player->is_flight_possible;

Return true if $player can fly (regular flight) starting from her current location. Flight is possible if the player has at least one city card, which is not the card representing the city in which the player is.

my $bool = $player->is_charter_possible;

my $bool = $player->is_shuttle_possible;

my $bool = $player->is_join_possible;

my $bool = $player->is_build_possible;

Return true if $player can build a research station in her current location. It is possible if she owns the card of the city, or if she is the operation expert. Of course it is impossible if there's already a station in the city.

my $disease = $player->is_discover_possible;

Return the $disease that $player can cure, that is, if she owns enough city cards of this disease and she is in a city with a research station. Return undef otherwise.

my $bool = $player->is_treat_possible;

Return true if $player can treat a disease. It is possible if her current location is infected by one (or more) disease.

my $bool = $player->is_share_possible;

Return true if $player can share a card in her current location. It is possible if she owns the card of the city, or if she is the researcher. Of course it is impossible if player's alone in the city.

my $bool = $player->is_pass_possible;

Return true if $player can pass. Always true. Included here for the sake of completeness.

my $bool = $player->is_drop_possible;

Return true if $player can drop a card. True if she has at least one card.

my $bool = $player->can_travel_to($city);

Return true if $player can travel to $city by proximity. This means that $player is in a location next to $city.

my $bool = $player->can_shuttle_to($city);

Return true if $player can shuttle through research station to $city. This means that both current player location and remote $city have a research station. Of course, return value is false if $player is currently located in <$city>.

my $bool = $player->can_join_to($city);

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

Module Install Instructions

To install Games::Pandemic::Player, simply copy and paste either of the commands in to your terminal