| Games-Risk documentation | view source | Contained in the Games-Risk distribution. |
Games::Risk::Resources - utility module to load bundled resources
version 3.103040
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.
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.
The images used for the GUI are bundled and loaded as Tk::Photo of
$poe_main_window.
Return the Tk image called $name. It can be directly used within Tk.
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.
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
| Games-Risk documentation | view source | Contained in the Games-Risk distribution. |