WWW::DaysOfWonder::Memoir44::Scenario - scenario object
version 3.000
This module represents a scenario with all its attributes.
Id of the scenario.
Name of the scenario.
Operation the scenario is part of.
Date of last scenario update (format yyyy-mm-dd).
yyyy-mm-dd
Average scenario rating (1, 2 or 3).
Front where the scenario takes place. Can be West, East, Mediterranean, etc.
Who wrote the scenario.
Country, beach, winter or desert.
Standard, overlord or breakthru.
Game (bundled with board game), approved (official extensions), public (all the other).
Whether terrain pack extension is needed.
Whether eastern front extension is needed.
Whether mediterranean theater extension is needed.
Whether pacific theater extension is needed.
Whether air pack extension is needed.
Whether battle maps extension is needed.
Whether campaign book extension is needed.
my $str = $scenario->as_string;
Return a line (with a final \n) dumping the scenario and all its attributes. It is also the method called for stringification, eg when doing stuff like:
print $scenario;
my $str = $scenario->tp; my $str = $scenario->ef; my $str = $scenario->pt; my $str = $scenario->mt; my $str = $scenario->ap;
Those five methods return either an empty string or the abbreviation of the expansion depending on the value of the need_XX boolean attribute of the $scenario. They are useful for display purposes.
need_XX
$scenario
my $str = $scenario->langs;
Return a string with existing language versions this scenario separated by commas. eg en,fr.
en,fr
my $str = $scenario->rating_as_star;
Return a string of 0 to 3 stars * depending on the rating attribute of the $scenario.
*
rating
Jerome Quelin
This software is copyright (c) 2009 by Jerome Quelin.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install WWW::DaysOfWonder::Memoir44, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::DaysOfWonder::Memoir44
CPAN shell
perl -MCPAN -e shell install WWW::DaysOfWonder::Memoir44
For more information on module installation, please visit the detailed CPAN module installation guide.