Games::Lacuna::Task::Role::Helper - Various helper methods
Returns an array of your body IDs
Returns an array of your planet IDs
Returns an array of alliance stations IDs
my $body_status = $self->my_body_status($body_id OR $body_name);
Returns the status hash of a given body/planet.
my $body_id = $self->my_body_id($body_name);
Returns the id for a given body name. Ignores case and accents so that eg. 'Hà Nôi' equals 'HA NOI'.
my $body_buildings = $self->buildings_body($body_id OR $boSdy_name);
Returns all buildings for a given planet.
$self->can_afford($planet_id or $planet_stats_hash,$cost_hash);
Calculates if the upgrade/repair can be afforded
my @spaceports = $self->find_building($body_id or $body_name,'Space Port');
Finds all buildings on a given body of a given type ordered by level.
Returns the id of the empire' home planet id
Returns the empire' planet ids
Returns your empire' university level
$self->send_message($subject, $message);
Send yourself a notification via the in-game messaging system.
my $level = $self->max_resource_building_level($body_id);
Returns the max possible ressource building level for the given planet.
To install Games::Lacuna::Task, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Games::Lacuna::Task
CPAN shell
perl -MCPAN -e shell install Games::Lacuna::Task
For more information on module installation, please visit the detailed CPAN module installation guide.