struct parse_info { char option[25]; short count; unsigned char enable; int value_int; double value_double; }; struct parse_info Options[OPTION_COUNT] = { {"{", 0, FALSE, 0, 0.0}, {"}", 1, FALSE, 0, 0.0}, {"-area", 0, FALSE, 0, 0.0}, {"-attack", 0, FALSE, 0, 0.0}, {"-armies", 1, FALSE, 0, 0.0}, {"-basemap", 0, FALSE, 0, 0.0}, {"-bases", 1, FALSE, 0, 0.0}, {"-board", 1, FALSE, 15, 15.0}, {"-boardx", 1, FALSE, 15, 15.0}, {"-boardy", 1, FALSE, 15, 15.0}, {"-border", 1, FALSE, 0, 0.0}, {"-bound", 0, FALSE, 0, 0.0}, {"-build", 1, FALSE, 4, 4.0}, {"-build_cost", 1, FALSE, 18, 18.0}, {"-build_limit", 1, FALSE, 12, 12.0}, {"-cell", 1, FALSE, 45, 45.0}, {"-color", 4, FALSE, 0, 0.0}, {"-color_inverse", 2, FALSE, 0, 0.0}, {"-decay", 1, FALSE, 0, 0.0}, {"-diamond", 0, FALSE, 0, 0.0}, {"-dig", 99, FALSE, 1, 1.0}, {"-dig_cost", 1, FALSE, 18, 18.0}, {"-digin", 1, FALSE, 0, 0.0}, {"-disrupt", 0, FALSE, 0, 0.0}, {"-draw", 1, FALSE, 0, 0.0}, {"-dump", 1, FALSE, 0, 0.0}, {"-edit", 99, FALSE, 0, 0.0}, {"-erode", 1, FALSE, 20, 20.0}, {"-erode_thresh", 1, FALSE, 10, 10.0}, {"-farms", 1, FALSE, 0, 0.0}, {"-fight", 1, FALSE, 5, 5.0}, {"-fill", 99, FALSE, 1, 1.0}, {"-fill_cost", 1, FALSE, 18, 18.0}, {"-forest", 1, FALSE, 0, 0.0}, {"-forest_color", 4, FALSE, 0, 0.0}, {"-forest_tones", 1, FALSE, 5, 5.0}, {"-grid", 0, TRUE, 0, 0.0}, {"-guns", 1, FALSE, 0, 0.0}, {"-guns_cost", 1, FALSE, 2, 2.0}, {"-guns_damage", 1, FALSE, 1, 1.0}, {"-help", 0, FALSE, 0, 0.0}, {"-hex", 0, FALSE, 0, 0.0}, {"-hidden", 0, FALSE, 0, 0.0}, {"-hills", 1, FALSE, 0, 0.0}, {"-hill_color", 4, FALSE, 0, 0.0}, {"-hill_tones", 1, FALSE, 5, 5.0}, {"-horizon", 99, FALSE, 2, 2.0}, {"-load", 99, FALSE, 0, 0.0}, {"-localmap", 0, FALSE, 0, 0.0}, {"-manage", 0, FALSE, 0, 0.0}, {"-manpos", 0, FALSE, 0, 0.0}, {"-map", 0, FALSE, 0, 0.0}, {"-march", 1, FALSE, 3, 3.0}, {"-maxval", 1, FALSE, 20, 20.0}, {"-militia", 1, FALSE, 0, 0.0}, {"-move", 1, FALSE, 3, 3.0}, {"-nospigot", 99, FALSE, 5, 5.0}, {"-octagon", 0, FALSE, 0, 0.0}, {"-options", 99, FALSE, 0, 0.0}, {"-overwrite", 0, FALSE, 0, 0.0}, {"-para", 1, FALSE, 0, 0.0}, {"-para_cost", 1, FALSE, 3, 3.0}, {"-para_damage", 1, FALSE, 1, 1.0}, {"-peaks", 1, FALSE, 4, 4.0}, {"-peak_bias", 1, FALSE, 1, 1.0}, {"-rbases", 1, FALSE, 0, 0.0}, {"-rbase_range", 1, FALSE, 2, 2.0}, {"-repeat", 0, TRUE, 0, 0.0}, {"-replay", 99, FALSE, 0, 0.0}, {"-reserve", 0, FALSE, 0, 0.0}, {"-scuttle", 99, FALSE, 5, 5.0}, {"-scuttle_cost", 1, FALSE, 10, 1.0}, {"-sea", 1, FALSE, 0, 0.0}, {"-sea_block", 0, FALSE, 0, 0.0}, {"-sea_color", 4, FALSE, 0, 0.0}, {"-sea_tones", 1, FALSE, 4, 4.0}, {"-sea_value", 1, FALSE, 0, 0.8284}, {"-seed", 1, FALSE, 0, 0.0}, {"-speed", 1, FALSE, 5, 5.0}, {"-square", 0, FALSE, 0, 0.0}, {"-step", 0, FALSE, 0, 0.0}, {"-stipple", 9, FALSE, 0, 0.0}, {"-store", 99, FALSE, 0, 0.0}, {"-towns", 1, FALSE, 0, 0.0}, {"-triangle", 0, FALSE, 0, 0.0}, {"-trough_bias", 1, FALSE, 1, 1.0}, {"-xpos", 1, FALSE, 0, 0.0}, {"-ypos", 1, FALSE, 0, 0.0}, {"-wrap", 0, FALSE, 0, 0.0}}; char *Usage[] = { "USAGE: xbattle ", "- display name", "-_ display name", "-area troop strength proportional to area", "-attack allow use of attack key", "-armies place ordered armies", "-basemap use map scheme, bases visible", "-bases place ordered bases", "-board size of board (square)", "-boardx width of board (in cells)", "-boardy height of board (in cells)", "-border border around board", "-bound allow drag-bounding direction sets", "-build build cities, segments to complete", "-build_cost cost to build city segment", "-build_limit limit cities each side can build", "-cell diameter of cell", "-color set RGB values for color ", "-color_inverse set color inverse to ", "-decay make troops slowly die off", "-diamond use diamond tiling", "-dig [int] allow terrain lowering, [int] steps", "-dig_cost cost of each dig step", "-digin provide entrenchment", "-disrupt allow enemies to break supply lines", "-draw specify a troop drawing method", "-dump dump configuration to ", "-edit [file] interactively edit xbattle board", "-erode make unused paths erode", "-erode_thresh threshold for erosion", "-farms troops slowly grow", "-fight intensity of fighting", "-fill [int] allow terrain raising, [int] steps", "-fill_cost cost of each fill step", "-forest density of forest", "-forest_color RGB values for forest level ", "-forest_tones number of allowable forest levels", "-grid show grid", "-guns range of artillery", "-guns_cost cost of each artillery shell", "-guns_damage damage done by each artillery shell", "-help print this message", "-hex use hexagonal tiling", "-hidden can't see enemy direction vectors", "-hills slope of hills", "-hill_color RGB values for hill level ", "-hill_tones number of allowable hill levels", "-horizon [int] can't see enemy past [int] cells", "-load [file] load board from [file]", "-localmap use map scheme, disappearing terrain", "-manage allow managed control of operations", "-manpos enable manual positioning of board", "-map use basic map scheme", "-march number of delays between marches", "-maxval maximum cell troop capacity", "-militia density of randomly distributed troops", "-move speed of troop flow", "-nospigot [int] cease attack if enemy/you ratio > [int]", "-octagon use octagonal/square tiling", "-options read xbattle options from ", "-opt_file.xbo shorthand for -options opt_file.xbo", "-overwrite just use terrain from loaded file", "-para range of paratroopers", "-para_cost cost of each paratrooper", "-para_damage invading strength of each paratrooper", "-peaks number of terrain peaks (and troughs)", "-peak_bias peak distribution bias (0.0-2.0)", "-rbases number of randomly distributed bases", "-rbase_range minimum distance of rbase from enemy base", "-repeat allow repeat of last mouse command", "-replay [file] replay stored game from [file]", "-reserve allow reserve of troops", "-scuttle [int] enable city scuttling, [int] multiples", "-scuttle_cost cost of scuttle", "-sea pervasiveness (and levels) of sea", "-sea_block use block-fills rather than hue-fills", "-sea_color RGB values for sea level ", "-sea_tones number of allowable sea levels", "-sea_value darkness of seas for b/w games", "-seed random number generator seed", "-speed speed of updates", "-square use square tiling", "-stipple 8* stipple (b/w) pattern for color ", "-store [file] store game in [file] for later replay", "-towns density of randomly distributed towns", "-triangle use triangular tiling", "-trough_bias trough distribution bias (0.0-2.0)", "-xpos x position of board on display", "-ypos y position of board on display", "-wrap allow wrapping around edges of board", "DONE"};