Class Marshal
java.lang.Object
Marshal
Marshals given types of men, including leaders.
- Since:
- 2016-02-15
-
Field Summary
Modifier and TypeFieldDescription(package private) Arena
Arena object to develop fighters.(package private) boolean
Flag to escape after parsing arguments.(package private) static final int
(package private) int
Number of men in force.(package private) MenType
Type of men to construct.(package private) static final Dice
Dice for men number appearing, as per Vol-2.(package private) static final int
Number of leaders to print.(package private) static final int
Percent chance magic per level.(package private) static final int
Percent chance for wizards magic per level. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Main method.boolean
Should we exit after parsing arguments?static void
Main test method.void
Parse arguments.(package private) void
Print program banner.void
Print usage.(package private) void
Report unit header information.(package private) void
Report on leader-types.(package private) void
Report on troop-types.(package private) void
Report on wizard-types.(package private) void
runArena()
Run Arena to develop leader figures.
-
Field Details
-
NA_DICE
Dice for men number appearing, as per Vol-2. -
FIGHTS_PER_MAN
static final int FIGHTS_PER_MAN- See Also:
-
PCT_MAGIC_PER_LEVEL
static final int PCT_MAGIC_PER_LEVELPercent chance magic per level. This matches the number in Vol-2; however, note that due to natural selection, leaders will be observed with a higher frequency of magic.- See Also:
-
PCT_WIZARD_MAGIC_PER_LEVEL
static final int PCT_WIZARD_MAGIC_PER_LEVELPercent chance for wizards magic per level. Since wizards aren't developed evolutionarily, need higher percentage to maintain par.- See Also:
-
NUM_LEADERS_TO_PRINT
static final int NUM_LEADERS_TO_PRINTNumber of leaders to print. This (a) roughly simulates lieutenants in a cival war-era company, and (b) serves to fit a unit on a half digest sized page.- See Also:
-
arena
Arena arenaArena object to develop fighters. -
menType
MenType menTypeType of men to construct. -
menTotal
int menTotalNumber of men in force. -
exitAfterArgs
boolean exitAfterArgsFlag to escape after parsing arguments.
-
-
Constructor Details
-
Marshal
public Marshal()Constructor.
-
-
Method Details
-
printBanner
void printBanner()Print program banner. -
printUsage
public void printUsage()Print usage. -
parseArgs
Parse arguments. -
exitAfterArgs
public boolean exitAfterArgs()Should we exit after parsing arguments? -
assembleMen
public void assembleMen()Main method. -
runArena
void runArena()Run Arena to develop leader figures. -
reportHeader
void reportHeader()Report unit header information. -
reportWizard
void reportWizard()Report on wizard-types. -
reportLeaders
void reportLeaders()Report on leader-types. -
reportTroops
void reportTroops()Report on troop-types. -
main
Main test method.
-