@@ -120,8 +120,10 @@ def check_step(step_name):
120
120
return step
121
121
122
122
123
- def operation_ancient_map (world , map_filename , resize_factor , sea_color ):
124
- draw_ancientmap_on_file (world , map_filename , resize_factor , sea_color )
123
+ def operation_ancient_map (world , map_filename , resize_factor , sea_color , draw_biome , draw_rivers , draw_mountains ,
124
+ draw_outer_land_border ):
125
+ draw_ancientmap_on_file (world , map_filename , resize_factor , sea_color , draw_biome , draw_rivers , draw_mountains ,
126
+ draw_outer_land_border )
125
127
print ("+ ancient map generated in '%s'" % map_filename )
126
128
127
129
@@ -307,6 +309,23 @@ def main():
307
309
g_ancient_map .add_option ('--sea_color' , dest = 'sea_color' ,
308
310
help = "string for color [" + SEA_COLORS + "]" ,
309
311
metavar = "S" , default = "brown" )
312
+ g_ancient_map .add_option ('--not-draw-biome' , dest = 'draw_biome' ,
313
+ action = "store_false" ,
314
+ help = "Not draw biome" ,
315
+ default = True )
316
+ g_ancient_map .add_option ('--not-draw-mountains' , dest = 'draw_mountains' ,
317
+ action = "store_false" ,
318
+ help = "Not draw mountains" ,
319
+ default = True )
320
+ g_ancient_map .add_option ('--not-draw-rivers' , dest = 'draw_rivers' ,
321
+ action = "store_false" ,
322
+ help = "Not draw rivers" ,
323
+ default = True )
324
+ g_ancient_map .add_option ('--draw-outer-border' , dest = 'draw_outer_border' ,
325
+ action = "store_true" ,
326
+ help = "Draw outer land border" ,
327
+ default = False )
328
+
310
329
# TODO: allow for RGB specification as [r g b], ie [0.5 0.5 0.5] for gray
311
330
parser .add_option_group (g_ancient_map )
312
331
@@ -397,9 +416,14 @@ def main():
397
416
else :
398
417
print (' (no rivers map)' )
399
418
if operation == 'ancient_map' :
400
- print (' resize factor : %i' % options .resize_factor )
401
- print (' world file : %s' % options .world_file )
402
- print (' sea color : %s' % options .sea_color )
419
+ print (' resize factor : %i' % options .resize_factor )
420
+ print (' world file : %s' % options .world_file )
421
+ print (' sea color : %s' % options .sea_color )
422
+ print (' draw biome : %s' % options .draw_biome )
423
+ print (' draw rivers : %s' % options .draw_rivers )
424
+ print (' draw mountains : %s' % options .draw_mountains )
425
+ print (' draw land outer border : %s' % options .draw_outer_border )
426
+
403
427
404
428
set_verbose (options .verbose )
405
429
@@ -446,7 +470,9 @@ def main():
446
470
if not options .generated_file :
447
471
options .generated_file = "ancient_map_%s.png" % world .name
448
472
operation_ancient_map (world , options .generated_file ,
449
- options .resize_factor , sea_color )
473
+ options .resize_factor , sea_color ,
474
+ options .draw_biome , options .draw_rivers ,
475
+ options .draw_mountains , options .draw_outer_border )
450
476
elif operation == 'info' :
451
477
world = load_world (args [1 ])
452
478
print_world_info (world )
@@ -463,7 +489,7 @@ def usage(error=None):
463
489
print (' Federico Tomassetti and Bret Curtis, 2011-2015' )
464
490
print (' Worldengine - a world generator (v. %s)' % VERSION )
465
491
print (' ' )
466
- print (' generator <world_name> [operation] [options]' )
492
+ print (' worldengine <world_name> [operation] [options]' )
467
493
print (' possible operations: %s' % OPERATIONS )
468
494
print (' use -h to see options' )
469
495
print (
0 commit comments