public class Marshal extends Object
Modifier and Type | Field and Description |
---|---|
(package private) boolean |
exitAfterArgs
Flag to escape after parsing arguments.
|
(package private) int |
menTotal
Number of men in force.
|
(package private) MenType |
menType
Type of men to construct.
|
(package private) static Dice |
NUMBER_APPEARING_DICE
Dice for standard number of men.
|
(package private) boolean |
swordsOnly
Force all leaders to carry swords.
|
Constructor and Description |
---|
Marshal()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
assembleMen()
Main method.
|
(package private) String |
casterString()
String descriptor of spellcasters.
|
boolean |
exitAfterArgs()
Should we exit after parsing arguments?
|
(package private) boolean |
isLeaderReqMet(Arena arena)
Check if we have required leaders.
|
static void |
main(String[] args)
Main test method.
|
void |
parseArgs(String[] args)
Parse arguments.
|
void |
printUsage()
Print usage.
|
(package private) void |
reportGrunts()
Generate and report on grunt-types.
|
(package private) void |
reportHeader()
Generate and report unit header.
|
(package private) void |
reportLeaders()
Generate and report on leader-types.
|
(package private) void |
reportNotes()
Generate and report miscellaneous notes.
|
static final Dice NUMBER_APPEARING_DICE
MenType menType
int menTotal
boolean swordsOnly
boolean exitAfterArgs
public void printUsage()
public void parseArgs(String[] args)
public boolean exitAfterArgs()
public void assembleMen()
void reportHeader()
void reportGrunts()
void reportLeaders()
boolean isLeaderReqMet(Arena arena)
void reportNotes()
String casterString()
public static void main(String[] args)