public class SGWorldShell extends BurlapShell
Modifier and Type | Field and Description |
---|---|
protected World |
world |
aliases, commands, domain, helpText, is, kill, observers, os, reserved, scanner, visualizer, welcomeMessage
Constructor and Description |
---|
SGWorldShell(Domain domain,
java.io.InputStream is,
java.io.PrintStream os,
World world) |
SGWorldShell(Domain domain,
World world)
Creates a SGWorldShell for std in and std out
|
SGWorldShell(SGDomain domain,
State s)
Creates s SGWorldShell with a new world using the domain and using std in and std out.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.Collection<ShellCommand> |
generateStandard() |
World |
getWorld() |
void |
setWorld(World world) |
addCommand, addCommandAs, addObservers, aliasPointer, executeCommand, generateReserved, getAliases, getCommands, getDomain, getHelpText, getIs, getOs, getVisualizer, getWelcomeMessage, kill, removeAlias, removeCommand, resolveCommand, setAlias, setAlias, setDomain, setHelpText, setIs, setOs, setVisualizer, setWelcomeMessage, start
protected World world
public SGWorldShell(Domain domain, java.io.InputStream is, java.io.PrintStream os, World world)
public SGWorldShell(Domain domain, World world)
domain
- the domainworld
- the World
with which to interactpublic World getWorld()
public void setWorld(World world)
protected java.util.Collection<ShellCommand> generateStandard()
generateStandard
in class BurlapShell