RailRoad/Node/Cross/N_NW_S_SE.pm

filter: Statementstmt 83.3% 15 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 71.4% 5 / 7 Podpod n/a totaltotal 80.0% 20 / 25 CC 1 SCAR 2.5
CC
1
Cov
83%
_next_map
2.0
_transform_map
2.0
BEGIN
1.0
CRAP 1.3
« RailRoad/Node/Cross/N_NE_S_SW.pm ↑ Summary RailRoad/Node/Straight/E_NW.pm »
1 #
2 # This file is part of Games-RailRoad
3 #
4 # This software is copyright (c) 2008 by Jerome Quelin.
5 #
6 # This is free software; you can redistribute it and/or modify it under
7 # the same terms as the Perl 5 programming language system itself.
8 #
9 1 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 package Games::RailRoad::Node::Cross::N_NW_S_SE;
14 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
15 1 $Games::RailRoad::Node::Cross::N_NW_S_SE::VERSION = '1.101330';
16 }
17 # ABSTRACT: a given type of node...
18  
19 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
20 1 extends qw{ Games::RailRoad::Node::Cross };
21  
22  
23 # -- private methods
24  
25 0 ▶sub _next_map {
Subroutine _next_map: not called CC=1 SCAR=6.9
26 return {
27 0 'n' => 's',
28 'nw' => 'se',
29 's' => 'n',
30 'se' => 'nw',
31 };
32 }
33  
34  
35 0 ▶sub _transform_map {
Subroutine _transform_map: not called CC=1 SCAR=6.9
36 0 my $prefix = 'Games::RailRoad::Node::';
37 return {
38 0 '-n' => $prefix . 'Switch::NW_S_SE',
39 '-nw' => $prefix . 'Switch::N_S_SE',
40 '-s' => $prefix . 'Switch::N_NW_SE',
41 '-se' => $prefix . 'Switch::N_NW_S',
42 };
43 }
44  
45  
46 1 __PACKAGE__->meta->make_immutable;
47 1 1;
48  
49  
50 =pod
51  
52 =head1 NAME
53  
54 Games::RailRoad::Node::Cross::N_NW_S_SE - a given type of node...
55  
56 =head1 VERSION
57  
58 version 1.101330
59  
60 =head1 DESCRIPTION
61  
62 This package provides a node object. Refer to L<Games::RailRoad::Node>
63 for a description of the various node types.
64  
65 =head1 AUTHOR
66  
67 Jerome Quelin
68  
69 =head1 COPYRIGHT AND LICENSE
70  
71 This software is copyright (c) 2008 by Jerome Quelin.
72  
73 This is free software; you can redistribute it and/or modify it under
74 the same terms as the Perl 5 programming language system itself.
75  
76 =cut
77  
78  
79 __END__
« RailRoad/Node/Cross/N_NE_S_SW.pm ↑ Summary RailRoad/Node/Straight/E_NW.pm »