File Coverage

lib/BalanceOfPower/Commands/TargetRoute.pm
Criterion Covered Total %
statement 6 15 40.0
branch n/a
condition n/a
subroutine 2 4 50.0
pod 0 2 0.0
total 8 21 38.1


line stmt bran cond sub pod time code
1             package BalanceOfPower::Commands::TargetRoute;
2             $BalanceOfPower::Commands::TargetRoute::VERSION = '0.400105';
3 13     13   3888 use Moo;
  13         18  
  13         51  
4 13     13   2246 use Data::Dumper;
  13         19  
  13         1813  
5              
6             extends 'BalanceOfPower::Commands::TargetNation';
7              
8             sub select_message
9             {
10 0     0 0   my $self = shift;
11 0           my $message = "";
12 0           foreach my $tr ($self->world->routes_for_node($self->actor))
13             {
14 0           $message .= $tr->print($self->actor) . "\n";
15             }
16 0           $message .= "\n";
17 0           $message .= "Select traderoute:\n";
18 0           return $message;
19             }
20              
21             sub get_available_targets
22             {
23 0     0 0   my $self = shift;
24 0           return $self->world->route_destinations_for_node($self->actor);
25             }
26              
27              
28              
29             1;
30