line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package BalanceOfPower::Commands::TargetRoute; |
2
|
|
|
|
|
|
|
$BalanceOfPower::Commands::TargetRoute::VERSION = '0.400110'; |
3
|
13
|
|
|
13
|
|
3758
|
use Moo; |
|
13
|
|
|
|
|
15
|
|
|
13
|
|
|
|
|
51
|
|
4
|
13
|
|
|
13
|
|
2217
|
use Data::Dumper; |
|
13
|
|
|
|
|
22
|
|
|
13
|
|
|
|
|
1766
|
|
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
|
|
|
|
|
|
|
|