Games::Risk::Resources - utility module to load bundled resources
use Games::Risk::Resources qw{ image }; my $image = 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, <jquelin at cpan.org>
<jquelin at cpan.org>
Copyright (c) 2008 Jerome Quelin, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU GPLv3+.
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.