Games::Risk::Resources - utility module to load bundled resources
version 3.112410
use Games::Risk::Resources qw{ image }; my $image = get_image('actexit16');
This module is a focal point to access all resources bundled with Games::Risk. Indeed, instead of each package to reinvent its loading mechanism, this package provides handy functions to do that.
Games::Risk
Moreover, by loading all the images at the same location, it will ensure that they are not loaded twice, cutting memory eating.
Games::Risk::Resources deals with various resources bundled within the distribution. It doesn't export anything by default, but the following subs are available for your import pleasure.
Games::Risk::Resources
The images used for the GUI are bundled and loaded as Tk::Photo of $poe_main_window.
Tk::Photo
$poe_main_window
Return the Tk image called $name. It can be directly used within Tk.
$name
Map resources are playable maps, to allow more playing fun.
Return the absolute path of the map $name.
Return the names of all the maps bundled with Games::Risk.
Games::Risk.
Jerome Quelin
This software is Copyright (c) 2008 by Jerome Quelin.
This is free software, licensed under:
The GNU General Public License, Version 3, June 2007
To install Games::Risk, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Games::Risk
CPAN shell
perl -MCPAN -e shell install Games::Risk
For more information on module installation, please visit the detailed CPAN module installation guide.