| Games-Pandemic documentation | Contained in the Games-Pandemic distribution. |
Games::Pandemic::Card::City - pandemic city card
version 1.111030
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 | Contained in the Games-Pandemic distribution. |
# # This file is part of Games-Pandemic # # This software is Copyright (c) 2009 by Jerome Quelin. # # This is free software, licensed under: # # The GNU General Public License, Version 2, June 1991 # use 5.010; use strict; use warnings; package Games::Pandemic::Card::City; BEGIN { $Games::Pandemic::Card::City::VERSION = '1.111030'; } # ABSTRACT: pandemic city card use Moose; use MooseX::SemiAffordanceAccessor; extends 'Games::Pandemic::Card'; # -- accessors has city => ( is => 'ro', isa => 'Games::Pandemic::City', weak_ref => 1, ); # -- default builders sub _build_icon { my $self = shift; return $self->city->disease->image('cube',16); } sub _build_label { my $self = shift; return $self->city->name; } no Moose; __PACKAGE__->meta->make_immutable; 1;
__END__