Map/France.pm

filter: Statementstmt 80.4% 33 / 41 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 8 / 16 Podpod 100% 3 / 3 totaltotal 73.3% 44 / 60 CC 1 SCAR 3.7
CC
1
Cov
80%
name
2.0
title
2.0
author
2.0
CRAP 1.4
↑ Summary ExtraMaps/Countries.pm »
1 #
2 # This file is part of Games-Risk-ExtraMaps-Countries
3 #
4 # This software is Copyright (c) 2011 by Jerome Quelin.
5 #
6 # This is free software, licensed under:
7 #
8 # The GNU General Public License, Version 3, June 2007
9 #
10 1 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 package Games::Risk::Map::France;
15 {
16 1 $Games::Risk::Map::France::VERSION = '3.112691';
17 }
18 # ABSTRACT: France
19  
20 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
21 1 extends 'Games::Risk::Map';
22  
23  
24 1 ▶use Locale::Messages qw{ :locale_h bind_textdomain_filter turn_utf_8_on };
Subroutine BEGIN: called CC=1 SCAR=0.0
25 1 ▶use Locale::TextDomain "Games-Risk-Map-France";
Subroutine BEGIN: called CC=1 SCAR=0.0
26 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
27  
28 1 extends 'Games::Risk::ExtraMaps::Countries';
29  
30 1 my $domain ="Games-Risk-Map-France";
31 1 bindtextdomain $domain, __PACKAGE__->localedir->stringify;
32 1 bind_textdomain_codeset $domain, "utf-8";
33 0 ▶bind_textdomain_filter $domain, sub { turn_utf_8_on($_[0]) };
Subroutine __ANON__: not called CC=1 SCAR=1.2
34  
35  
36 # -- map builders
37  
38 0 ▶sub name { "france" }
Subroutine name: not called CC=1 SCAR=6.9
Pod documented
39 0 ▶sub title { __("France") }
Subroutine title: not called CC=1 SCAR=6.9
Pod documented
40 0 ▶sub author { "Thierry Baldo" }
Subroutine author: not called CC=1 SCAR=6.9
Pod documented
41  
42  
43 # -- raw map information
44  
45 0 ▶sub _raw_continents {
Subroutine _raw_continents: not called CC=1 SCAR=6.9
46 return (
47 # id, name, bonus, color
48 # 0, __('Europe'), 5, blue
49 0 [1, __("Bretagne"), 3, "col1"],
50 [2, __("Basse Normandie"), 2, "col2"],
51 [3, __("Haute Normandie"), 2, "col3"],
52 [4, __("Picardie"), 2, "col4"],
53 [5, __("Nord-Pas de Calais"), 5, "col5"],
54 [6, __("Champagne-Ardenne"), 2, "col6"],
55 [7, __("Lorraine"), 3, "col7"],
56 [8, __("Alsace"), 2, "col8"],
57 [9, __("Franche-Comté"), 2, "col9"],
58 [10, __("Rhône-Alpes"), 6, "col10"],
59 [11, __("Provence-Alpes-Côte d'Azur"), 5, "col11"],
60 [12, __("Corse"), 1, "col12"],
61 [13, __("Languedoc-Roussillon"), 3, "col13"],
62 [14, __("Midi-Pyrénées"), 3, "col14"],
63 [15, __("Aquitaine"), 3, "col15"],
64 [16, __("Poitou-Charente"), 2, "col16"],
65 [17, __("Pays de la Loire"), 4, "col17"],
66 [18, __("Centre"), 3, "col18"],
67 [19, __("Ile de France"), 11, "col19"],
68 [20, __("Bourgogne"), 2, "col20"],
69 [21, __("Auvergne"), 2, "col21"],
70 [22, __("Limousin"), 1, "col22"],
71 );
72 }
73  
74 0 ▶sub _raw_countries {
Subroutine _raw_countries: not called CC=1 SCAR=6.9
75 return (
76 # greyscale, name, continent id, x, y, [connections]
77 # 1, __('Alaska'), 1, 43, 67, [ 1,2,3,38 ]
78 0 [1, __("Ain"), 10, 343, 230, [39, 74, 73, 38, 69, 71]],
79 [2, __("Aisne"), 4, 290, 77, [59, 8, 51, 77, 60, 80]],
80 [3, __("Allier"), 21, 284, 216, [18, 58, 71, 63, 23, 42]],
81 [ 4, __("Alpes de Haute Provence"), 11, 381, 323, [5, 6, 83, 13, 84, 26],],
82 [5, __("Hautes Alpes"), 11, 380, 301, [38, 73, 4, 26]],
83 [6, __("Alpes Maritimes"), 11, 414, 333, [4, 83, 96]],
84 [7, __("Ardèche"), 10, 324, 298, [43, 42, 26, 84, 30, 48]],
85 [8, __("Ardennes"), 6, 321, 71, [2, 55, 51]],
86 [9, __("Ariège"), 14, 226, 378, [31, 11, 66]],
87 [10, __("Aube"), 6, 305, 136, [51, 52, 21, 89, 77]],
88 [11, __("Aude"), 13, 254, 369, [81, 34, 66, 9, 31]],
89 [12, __("Aveyron"), 14, 261, 317, [15, 48, 30, 34, 81, 82, 46]],
90 [13, __("Bouches du Rhone"), 11, 354, 354, [20, 30, 84, 4, 83]],
91 [14, __("Calvados"), 2, 172, 97, [50, 27, 61]],
92 [15, __("Cantal"), 21, 256, 288, [63, 43, 48, 12, 46, 19]],
93 [16, __("Charente"), 16, 182, 254, [17, 79, 86, 87, 24]],
94 [17, __("Charente Maritime"), 16, 151, 246, [85, 79, 16, 33]],
95 [18, __("Cher"), 18, 258, 191, [45, 58, 3, 23, 36, 41]],
96 [19, __("Corrèze"), 22, 235, 271, [87, 23, 63, 15, 46, 24]],
97 [20, __("Corse du Sud"), 12, 443, 398, [96, 13, 83]],
98 [21, __("Côte d'Or"), 20, 335, 178, [10, 52, 70, 39, 71, 58, 89]],
99 [22, __("Côtes d'Armor"), 1, 100, 128, [29, 56, 35]],
100 [23, __("Creuse"), 22, 247, 237, [19, 87, 36, 18, 3, 63]],
101 [24, __("Dordogne"), 15, 202, 281, [87, 19, 46, 47, 33, 16]],
102 [25, __("Doubs"), 9, 376, 182, [70, 90, 39]],
103 [26, __("Drôme"), 10, 342, 301, [4, 7, 42, 38, 5, 84]],
104 [27, __("Eure"), 3, 212, 103, [76, 95, 78, 28, 61, 14, 60]],
105 [ 28, __("Eure et Loire"), 18, 224, 131, [27, 78, 91, 45, 41, 72, 61],],
106 [29, __("Finistère"), 1, 63, 126, [22, 56]],
107 [30, __("Gard"), 13, 320, 336, [48, 7, 84, 13, 34, 12]],
108 [31, __("Haute Garonne"), 14, 223, 351, [65, 32, 82, 81, 11, 9]],
109 [32, __("Gers"), 14, 195, 344, [40, 47, 82, 31, 65, 64]],
110 [33, __("Gironde"), 15, 155, 299, [17, 24, 47, 40]],
111 [34, __("Hérault"), 13, 296, 346, [81, 12, 30, 11]],
112 [35, __("Ille et Vilaine"), 1, 131, 141, [22, 50, 53, 44, 56]],
113 [36, __("Indre"), 18, 233, 203, [37, 41, 18, 23, 87, 86]],
114 [37, __("Indre et Loire"), 18, 201, 181, [72, 41, 36, 86, 49]],
115 [38, __("Isère"), 10, 363, 276, [1, 73, 5, 26, 42, 69]],
116 [39, __("Jura"), 9, 360, 208, [1, 71, 21, 70, 25]],
117 [40, __("Landes"), 15, 150, 335, [33, 47, 32, 64]],
118 [41, __("Loire et Cher"), 18, 221, 165, [28, 45, 18, 36, 37, 72]],
119 [42, __("Loire"), 10, 315, 261, [69, 38, 26, 7, 43, 63, 3, 71]],
120 [43, __("Haute Loire"), 21, 304, 281, [42, 7, 48, 15, 63]],
121 [44, __("Loire Atlantique"), 17, 132, 176, [56, 35, 49, 85]],
122 [45, __("Loiret"), 18, 248, 155, [28, 91, 77, 89, 18, 41, 58]],
123 [46, __("Lot"), 14, 226, 309, [24, 19, 15, 12, 82, 47]],
124 [47, __("Lot et Garonne"), 15, 190, 317, [24, 46, 82, 32, 40, 33]],
125 [48, __("Lozère"), 13, 292, 308, [15, 43, 7, 30, 12]],
126 [ 49, __("Maine et Loire"), 17, 168, 175, [44, 53, 72, 37, 86, 79, 85],],
127 [50, __("Manche"), 2, 143, 94, [14, 61, 53, 35]],
128 [51, __("Marne"), 6, 314, 106, [2, 8, 55, 52, 10, 77]],
129 [52, __("Haute Marne"), 6, 342, 145, [51, 55, 88, 70, 21, 10]],
130 [53, __("Mayenne"), 17, 161, 144, [35, 50, 61, 72, 49]],
131 [54, __("Meurthe et Moselle"), 7, 370, 115, [55, 57, 67, 88]],
132 [55, __("Meuse"), 7, 344, 99, [8, 54, 88, 52, 51]],
133 [56, __("Morbihan"), 1, 102, 153, [29, 22, 35, 44]],
134 [57, __("Moselle"), 7, 379, 94, [54, 67]],
135 [58, __("Nièvre"), 20, 292, 191, [89, 21, 71, 3, 18, 45]],
136 [59, __("Nord"), 5, 274, 29, [2, 80, 62]],
137 [60, __("Oise"), 4, 251, 85, [2, 77, 95, 27, 76, 80]],
138 [61, __("Orne"), 2, 191, 117, [14, 27, 28, 72, 53, 50]],
139 [62, __("Pas de Calais"), 5, 262, 45, [59, 80]],
140 [63, __("Puy de Dome"), 21, 278, 249, [3, 42, 43, 15, 19, 23]],
141 [64, __("Pyrénées Atlantiques"), 15, 159, 360, [40, 32, 65]],
142 [65, __("Hautes Pyrénées"), 14, 187, 378, [64, 32, 31]],
143 [66, __("Pyrénées Orientales"), 13, 261, 395, [9, 11]],
144 [67, __("Bas Rhin"), 8, 410, 112, [57, 54, 68]],
145 [68, __("Haut Rhin"), 8, 404, 146, [67, 88, 90]],
146 [69, __("Rhône"), 10, 329, 250, [1, 38, 42, 71]],
147 [70, __("Haute Saône"), 9, 368, 160, [88, 90, 25, 21, 52, 39]],
148 [ 71, __("Saône et Loire"), 20, 323, 208, [1, 69, 42, 3, 58, 21, 39],],
149 [72, __("Sarthe"), 17, 190, 147, [53, 61, 28, 41, 37, 49]],
150 [73, __("Savoie"), 10, 388, 264, [1, 74, 38, 5]],
151 [74, __("Haute Savoie"), 10, 382, 236, [1, 73]],
152 [75, __("Paris"), 19, 49, 208, [92, 93, 94]],
153 [76, __("Seine Maritime"), 3, 216, 74, [80, 60, 27]],
154 [ 77, __("Seine et Marne"), 19, 271, 118, [2, 60, 2, 51, 10, 89, 45, 91, 94, 93, 95],],
155 [78, __("Yvelines"), 19, 239, 116, [27, 95, 92, 91, 28]],
156 [79, __("Deux Sèvres"), 16, 170, 224, [86, 16, 17, 85, 49]],
157 [80, __("Somme"), 4, 252, 63, [2, 62, 2, 60, 76, 59]],
158 [81, __("Tarn"), 14, 249, 341, [82, 12, 34, 11, 31]],
159 [82, __("Tarn et Garonne"), 14, 216, 330, [46, 12, 81, 31, 32, 47]],
160 [83, __("Var"), 11, 381, 361, [13, 84, 4, 6, 20, 96]],
161 [84, __("Vaucluse"), 11, 346, 333, [30, 7, 26, 4, 83, 13]],
162 [85, __("Vendée"), 17, 142, 211, [44, 49, 79, 17]],
163 [86, __("Vienne"), 16, 193, 215, [37, 36, 87, 16, 79, 49]],
164 [87, __("Haute Vienne"), 22, 218, 249, [23, 19, 24, 16, 86, 36]],
165 [88, __("Vosges"), 7, 378, 139, [54, 55, 90, 52, 68, 70]],
166 [89, __("Yonne"), 20, 291, 157, [10, 21, 58, 45, 77]],
167 [90, __("Territoire de Belfort"), 9, 395, 163, [88, 68, 25, 70]],
168 [91, __("Essonne"), 19, 252, 124, [78, 92, 94, 77, 45, 28]],
169 [92, __("Hauts de Seine"), 19, 15, 204, [75, 94, 93, 91, 78, 95]],
170 [93, __("Seine Saint Denis"), 19, 71, 189, [95, 77, 75, 92, 94]],
171 [94, __("Val de Marne"), 19, 64, 233, [75, 93, 77, 91, 92]],
172 [95, __("Val d'Oise"), 19, 252, 101, [60, 77, 93, 92, 78, 27]],
173 [96, __("Haute Corse"), 12, 447, 366, [20, 83, 6]],
174 );
175 }
176  
177  
178 0 ▶sub _raw_cards {
Subroutine _raw_cards: not called CC=1 SCAR=6.9
179 return (
180 # type, id_country
181 # artillery, 2
182 # wildcard
183 0 ["infantry", 1],
184 ["artillery", 2],
185 ["infantry", 3],
186 ["infantry", 4],
187 ["cavalry", 5],
188 ["cavalry", 6],
189 ["cavalry", 7],
190 ["artillery", 8],
191 ["artillery", 9],
192 ["artillery", 10],
193 ["cavalry", 11],
194 ["artillery", 12],
195 ["infantry", 13],
196 ["infantry", 14],
197 ["artillery", 15],
198 ["artillery", 16],
199 ["cavalry", 17],
200 ["cavalry", 18],
201 ["infantry", 19],
202 ["cavalry", 20],
203 ["infantry", 21],
204 ["infantry", 22],
205 ["cavalry", 23],
206 ["artillery", 24],
207 ["artillery", 25],
208 ["infantry", 26],
209 ["artillery", 27],
210 ["cavalry", 28],
211 ["cavalry", 29],
212 ["infantry", 30],
213 ["artillery", 31],
214 ["infantry", 32],
215 ["artillery", 33],
216 ["cavalry", 34],
217 ["infantry", 35],
218 ["artillery", 36],
219 ["infantry", 37],
220 ["cavalry", 38],
221 ["cavalry", 39],
222 ["cavalry", 40],
223 ["artillery", 41],
224 ["infantry", 42],
225 ["infantry", 43],
226 ["infantry", 44],
227 ["infantry", 45],
228 ["infantry", 46],
229 ["infantry", 47],
230 ["infantry", 48],
231 ["cavalry", 49],
232 ["cavalry", 50],
233 ["cavalry", 51],
234 ["cavalry", 52],
235 ["cavalry", 53],
236 ["cavalry", 54],
237 ["artillery", 55],
238 ["artillery", 56],
239 ["artillery", 57],
240 ["artillery", 58],
241 ["artillery", 59],
242 ["artillery", 60],
243 ["joker", undef],
244 ["joker", undef],
245 );
246 }
247  
248 0 ▶sub _raw_missions {
Subroutine _raw_missions: not called CC=1 SCAR=6.9
249 return (
250 # id player to destroy, nb coutnry to occupy + min armies, 3 x id of continents to occupy, description
251 # 0, 0,0,5,2,0,__("Conquer the continents of ASIA and SOUTH AMERICA.")
252 # 0, 0,0,3,6,*,__("Conquer the continents of EUROPE and AUSTRALIA and a third continent of your choice.")
253 # 0,18,2,0,0,0,__("Occupy 18 countries of your choice and occupy each with at least 2 armies.")
254 # 0,24,1,0,0,0,__("Occupy 24 countries of your choice and occupy each with at least 1 army.")
255 # 1,24,1,0,0,0,__("Destroy all of PLAYER1's TROOPS. If they are yours or they have already been destroyed by another player then your mission is: Occupy 24 countries.")
256  
257 0 );
258 }
259  
260 1 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
261 1 __PACKAGE__->meta->make_immutable;
262  
263 1 1;
264  
265  
266 =pod
267  
268 =head1 NAME
269  
270 Games::Risk::Map::France - France
271  
272 =head1 VERSION
273  
274 version 3.112691
275  
276 =head1 DESCRIPTION
277  
278 France by Thierry Baldo.
279  
280 =head1 AUTHOR
281  
282 Jerome Quelin
283  
284 =head1 COPYRIGHT AND LICENSE
285  
286 This software is Copyright (c) 2011 by Jerome Quelin.
287  
288 This is free software, licensed under:
289  
290 The GNU General Public License, Version 3, June 2007
291  
292 =cut
293  
294  
295 __END__
↑ Summary ExtraMaps/Countries.pm »