Package VASSAL.launch
Class LaunchRequest
java.lang.Object
VASSAL.launch.LaunchRequest
- All Implemented Interfaces:
Serializable
Encapsulates and parses command-line arguments.
args
and LaunchRequest.parseArgs(args).toArgs()
are equivalent (though perhaps not equal) argument lists.- Since:
- 3.1.0
- Author:
- Joel Uckelman
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionLaunchRequest
(VASSAL.launch.LaunchRequest.Mode mode) LaunchRequest
(VASSAL.launch.LaunchRequest.Mode mode, File module) LaunchRequest
(VASSAL.launch.LaunchRequest.Mode mode, File module, File other) -
Method Summary
Modifier and TypeMethodDescriptionprotected static void
Throws aLaunchRequestException
.static LaunchRequest
Parse an argument array to aLaunchRequest
.protected static void
setMode
(LaunchRequest lr, VASSAL.launch.LaunchRequest.Mode mode) String[]
toArgs()
Create an argument array equivalent to thisLaunchRequest
.
-
Field Details
-
mode
public VASSAL.launch.LaunchRequest.Mode mode -
module
-
game
-
extension
-
importFile
-
builtInModule
public boolean builtInModule -
autoext
-
key
public long key
-
-
Constructor Details
-
LaunchRequest
public LaunchRequest() -
LaunchRequest
public LaunchRequest(VASSAL.launch.LaunchRequest.Mode mode) -
LaunchRequest
-
LaunchRequest
-
LaunchRequest
-
-
Method Details
-
toArgs
Create an argument array equivalent to thisLaunchRequest
.- Returns:
- an array which would be parsed to this
LaunchRequest
-
parseArgs
Parse an argument array to aLaunchRequest
.- Parameters:
args
- an array of command-line arguments- Returns:
- a
LaunchRequest
equivalent toargs
- Throws:
LaunchRequestException
- when parsing fails
-
setMode
protected static void setMode(LaunchRequest lr, VASSAL.launch.LaunchRequest.Mode mode) throws LaunchRequestException - Throws:
LaunchRequestException
-
die
Throws aLaunchRequestException
.- Parameters:
key
-Resources
keyvals
-Resources
arguments- Throws:
LaunchRequestException
- always
-