| 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::Half::E; | ||
| 14 | 1 | ▶ | BEGIN { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | 1 | $Games::RailRoad::Node::Half::E::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::Half }; | |
| 21 | |||
| 22 | |||
| 23 | # -- private methods | ||
| 24 | |||
| 25 | 0 | ▶ | sub _transform_map { |
|
Subroutine
_transform_map: not called CC=1 SCAR=6.9
| |||
| 26 | 0 | my $prefix = 'Games::RailRoad::Node'; | |
| 27 | return { | ||
| 28 | 0 | 'nw' => $prefix . '::Straight::E_NW', | |
| 29 | 'sw' => $prefix . '::Straight::E_SW', | ||
| 30 | 'w' => $prefix . '::Straight::E_W', | ||
| 31 | '-e' => $prefix, | ||
| 32 | }; | ||
| 33 | } | ||
| 34 | |||
| 35 | 1 | __PACKAGE__->meta->make_immutable; | |
| 36 | 1 | 1; | |
| 37 | |||
| 38 | |||
| 39 | =pod | ||
| 40 | |||
| 41 | =head1 NAME | ||
| 42 | |||
| 43 | Games::RailRoad::Node::Half::E - a given type of node... | ||
| 44 | |||
| 45 | =head1 VERSION | ||
| 46 | |||
| 47 | version 1.101330 | ||
| 48 | |||
| 49 | =head1 DESCRIPTION | ||
| 50 | |||
| 51 | This package provides a node object. Refer to L<Games::RailRoad::Node> | ||
| 52 | for a description of the various node types. | ||
| 53 | |||
| 54 | =head1 AUTHOR | ||
| 55 | |||
| 56 | Jerome Quelin | ||
| 57 | |||
| 58 | =head1 COPYRIGHT AND LICENSE | ||
| 59 | |||
| 60 | This software is copyright (c) 2008 by Jerome Quelin. | ||
| 61 | |||
| 62 | This is free software; you can redistribute it and/or modify it under | ||
| 63 | the same terms as the Perl 5 programming language system itself. | ||
| 64 | |||
| 65 | =cut | ||
| 66 | |||
| 67 | |||
| 68 | __END__ | ||