Maroš Kollár > Games-Lacuna-Task > Games::Lacuna::Task::Role::CommonAttributes

Download:
Games-Lacuna-Task-2.05.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Games::Lacuna::Role::CommonAttributes - Attributes utilized by multiple actions

SYNOPSIS ^

 package Games::Lacuna::Task::Action::MyTask;
 use Moose;
 extends qw(Games::Lacuna::Task::Action);
 with 'Games::Lacuna::Task::Role::CommonAttributes' => { attributes => ['dispose_percentage'] };

DESCRIPTION ^

The following accessors and helper methods are available on request

home_planet

Own planet. Planet stast can be accessed via the home_planet_data method.

target_planet

Foreign planet. Planet stast can be accessed via the target_planet_data method.

dispose_percentage

Dispose waste if waste storage is n-% full

start_building_at

Upgrade buildings if there are less than N buildings in the build queue

plan_for_hours

Plan N hours ahead

keep_waste_hours

Keep enough waste for N hours',

syntax highlighting: