Skip navigation links
A B C D E F G H I J K L M N O P Q R S T U V W Y 

A

ActiveShipScan - Class in com.swath.cmd
Perform an active ship scan.
addChoice(int, String) - Method in class com.swath.Parameter
Adds a choice value.
ALERT_ERROR - Static variable in class com.swath.Swath
User error alert.
ALERT_INFORMATION - Static variable in class com.swath.Swath
User information alert.
ALERT_WARNING - Static variable in class com.swath.Swath
User warning alert.
alignment() - Method in class com.swath.Trader
Gets the trader's alignment.
ALL_KEYS - Static variable in class com.swath.cmd.ChangePersonalSettings
All keys abort display.
ALL_PROMPTS - Static variable in class com.swath.Swath
All prompts.
ALLIED - Static variable in class com.swath.Swath
The trader/corp is allied with you.
anomaly() - Method in class com.swath.Sector
Indicates if there is an anomaly in the sector or not.
ARMID - Static variable in class com.swath.cmd.DropTakeMines
Armid mines.
ARMID - Static variable in class com.swath.cmd.ShowDeployedMines
Armid mines.
ARMID_MINES - Static variable in class com.swath.cmd.BuyItems
The 'Space Mines' item type.
armidMines() - Method in class com.swath.Sector
Gets the number of armid mines in the sector.
armidMines() - Method in class com.swath.Ship
Gets the number of armid mines on the ship.
armidOwner() - Method in class com.swath.Sector
Gets the owner of the armid mines in this sector.
ATOMIC_DETONATORS - Static variable in class com.swath.cmd.BuyItems
The 'Atomic Detonators' item type.
atomicDevices() - Method in class com.swath.Ship
Gets the number of atomic detonators on the ship.
atPrompt(int) - Method in class com.swath.UserDefinedCommand
Checks if you are at any of the valid prompts.
atPrompt(int) - Method in class com.swath.UserDefinedScript
Checks if you are at any of the valid prompts.
atStarDock() - Method in class com.swath.event.ShipDockedAtPort
Indicates if the ship docked at the StarDock or not.
ATTACKED - Static variable in class com.swath.cmd.AttackPort
The port was attacked but still exists.
ATTACKED - Static variable in class com.swath.cmd.AttackShip
The ship was attacked but still got fighters/shields left.
ATTACKED - Static variable in class com.swath.cmd.AttackTrader
The trader was attacked but still got fighters/shields left.
AttackPort - Class in com.swath.cmd
Attack the port in the current sector.
AttackShip - Class in com.swath.cmd
Attack or capture an unmanned ship.
AttackTrader - Class in com.swath.cmd
Attack a trader.

B

backdoorSectors() - Method in class com.swath.Sector
Gets the backdoor sectors for this sector (if any).
basicHoldCost() - Method in class com.swath.ShipCategory
Gets the basic hold cost for the ship category.
beaconMessage() - Method in class com.swath.Sector
Indicates if there is a beacon in the sector or not.
beacons() - Method in class com.swath.Ship
Gets the number of marker beacons on the ship.
beginTurboCycle() - Method in class com.swath.UserDefinedScript
This marks the start of a turbo cycle.
BlowUpPlanet - Class in com.swath.cmd
Blow up the planet you are currently on.
BOOLEAN - Static variable in class com.swath.Parameter
The boolean value type.
BOOLEAN - Static variable in class com.swath.UserVariable
The boolean value type.
BOTH_WAY - Static variable in class com.swath.Sector
Indicates a warp that can be used both ways.
brand() - Method in class com.swath.Ship
Gets the brand of the ship.
Bubble - Class in com.swath
This class represents a bubble in TW.
bubbles() - Method in class com.swath.Sector
Gets all the bubbles that the sector is part of.
busted() - Method in class com.swath.Sector
Indicates if you are busted at the port in this sector or not.
BUTTON_CANCEL - Static variable in class com.swath.cmd.UserChoice
Cancel button pressed.
BUTTON_FIRST - Static variable in class com.swath.cmd.UserChoice
First button pressed.
BUTTON_SECOND - Static variable in class com.swath.cmd.UserChoice
Second button pressed.
BUTTON_THIRD - Static variable in class com.swath.cmd.UserChoice
Third button pressed.
BUYING - Static variable in class com.swath.Sector
The port is buying this product.
BuyItems - Class in com.swath.cmd
Buy items from StarDock or a class 0 port.
BuyShip - Class in com.swath.cmd
Buy a new ship at the Shipyards on StarDock.

C

CAPTURED - Static variable in class com.swath.cmd.AttackShip
The ship was captured and is now yours.
CARGO_HOLDS - Static variable in class com.swath.cmd.BuyItems
The 'Cargo Holds' item type.
CARGO_HOLDS - Static variable in class com.swath.Swath
The index and identifier used for Cargo holds.
centerWindow(Window) - Static method in class com.swath.Tools
Centers a window on the screen.
ceo() - Method in class com.swath.Corporation
Gets the current ceo of the corporation.
ChangeMilitaryLevel - Class in com.swath.cmd
Change the planet military reaction level.
ChangePersonalSettings - Class in com.swath.cmd
Change your personal settings.
ChangeQuasarCannonLevel - Class in com.swath.cmd
Change a planet quasar cannon level.
ChangeShipSettings - Class in com.swath.cmd
Change the ship settings.
CHOICE - Static variable in class com.swath.Parameter
The choice value type.
CIMDownload - Class in com.swath.cmd
Use the Computer Interrogation Mode (CIM) to download the latest sector warps and/or port reports.
CITADEL_PROMPT - Static variable in class com.swath.Swath
The planet citadel prompt.
ClaimPlanet - Class in com.swath.cmd
Claim ownership of the planet you are currently on.
class0ports() - Method in class com.swath.MainInfo
Gets the locations of the class 0 ports.
className() - Method in class com.swath.Planet
Gets the planet class name.
ClearAvoidedSectors - Class in com.swath.cmd
Clear avoided sectors.
clearConsole() - Static method in class com.swath.Swath
Clear the SWATH console window.
clearErrorMsg() - Static method in class com.swath.Swath
Clears the current error message.
clearUserDisplayValue(int) - Static method in class com.swath.Swath
Clears the user display value on the given row.
CLOAKING_DEVICES - Static variable in class com.swath.cmd.BuyItems
The 'Cloaking Devices' item type.
cloakingDevices() - Method in class com.swath.Ship
Gets the number of cloaking devices on the ship.
clone() - Method in class com.swath.Bubble
 
clone() - Method in class com.swath.Corporation
 
clone() - Method in class com.swath.Identity
 
clone() - Method in class com.swath.Planet
 
clone() - Method in class com.swath.PlanetClass
 
clone() - Method in class com.swath.Sector
 
clone() - Method in class com.swath.Ship
 
clone() - Method in class com.swath.ShipCategory
 
clone() - Method in class com.swath.Tools.PortSearchParameters
 
clone() - Method in class com.swath.Tools.SectorSearchParameters
 
clone() - Method in class com.swath.Tools.TextRange
 
clone() - Method in class com.swath.Trader
 
colonists() - Method in class com.swath.Planet
Gets the number of colonists at each product type on the planet (Fuel Ore, Organics and Equipment).
colonists() - Method in class com.swath.Ship
Gets total number of holds with colonists.
COLONISTS - Static variable in class com.swath.Swath
The index and identifier used for Colonists.
COLOR_BLACK - Static variable in class com.swath.cmd.SetTextMode
Color black.
COLOR_BLACK - Static variable in class com.swath.Swath
Color black.
COLOR_BLUE - Static variable in class com.swath.cmd.SetTextMode
Color blue.
COLOR_BLUE - Static variable in class com.swath.Swath
Color blue.
COLOR_CYAN - Static variable in class com.swath.cmd.SetTextMode
Color cyan.
COLOR_CYAN - Static variable in class com.swath.Swath
Color cyan.
COLOR_GREEN - Static variable in class com.swath.cmd.SetTextMode
Color green.
COLOR_GREEN - Static variable in class com.swath.Swath
Color green.
COLOR_MAGENTA - Static variable in class com.swath.cmd.SetTextMode
Color magenta.
COLOR_MAGENTA - Static variable in class com.swath.Swath
Color magenta.
COLOR_RED - Static variable in class com.swath.cmd.SetTextMode
Color red.
COLOR_RED - Static variable in class com.swath.Swath
Color red.
COLOR_WHITE - Static variable in class com.swath.cmd.SetTextMode
Color white.
COLOR_WHITE - Static variable in class com.swath.Swath
Color white.
COLOR_YELLOW - Static variable in class com.swath.cmd.SetTextMode
Color yellow.
COLOR_YELLOW - Static variable in class com.swath.Swath
Color yellow.
colos2build1() - Method in class com.swath.PlanetClass
Gets the number of colonists needed to build one unit of each product type (Fuel Ore, Organics and Equipment).
colos2build1ftr() - Method in class com.swath.PlanetClass
Gets the number of colonists needed to build one fighter.
com.swath - package com.swath
 
com.swath.cmd - package com.swath.cmd
 
com.swath.event - package com.swath.event
 
COMMAND_PROMPT - Static variable in class com.swath.Swath
The command prompt.
CommandException - Exception in com.swath
Command exception.
Thrown when the current command execution fails for some reason.
CommandException(CommandIfc, String) - Constructor for exception com.swath.CommandException
Constructor.
CommandIfc - Interface in com.swath
This is the Command interface.
COMPACT - Static variable in class com.swath.cmd.ChangePersonalSettings
Compact message display mode.
COMPUTER_PROMPT - Static variable in class com.swath.Swath
The computer command prompt.
computerCost() - Method in class com.swath.ShipCategory
Gets the computer cost for the ship category.
Connect - Class in com.swath.cmd
Connect to the TW game server.
Connected - Class in com.swath.event
The Connected event.
corbomite() - Method in class com.swath.Ship
Gets the number of corbomite transducers on the ship.
CORBOMITE_DEVICES - Static variable in class com.swath.cmd.BuyItems
The 'Corbomite Devices' item type.
corp() - Method in class com.swath.Trader
Deprecated.
Use the corporation() method instead.
CORP_PROMPT - Static variable in class com.swath.Swath
The corporate command prompt.
CORPORATE - Static variable in class com.swath.Swath
The corporate owner type.
Corporation - Class in com.swath
This class represents a corporation in TW.
corporation() - Method in class com.swath.Trader
Gets the trader's corporation.
createFrame(String, int, int) - Static method in class com.swath.Tools
Creates an AWT window frame.
createJFrame(String, int, int) - Static method in class com.swath.Tools
Creates a Swing window frame.
createJPanel() - Static method in class com.swath.Tools
Creates a Swing panel.
createPanel() - Static method in class com.swath.Tools
Creates an AWT panel.
creator() - Method in class com.swath.Planet
Gets the creator of the planet.
credits() - Method in class com.swath.Trader
Gets the amount of credits that the trader has.
currPlanet() - Method in class com.swath.MainInfo
Gets the current planet number.
currSector() - Method in class com.swath.MainInfo
Gets the current sector number.

D

DaemonException - Exception in com.swath
Daemon exception.
Thrown when a daemon fails for some reason.
You can throw this exception from your own daemon.
DaemonException(String) - Constructor for exception com.swath.DaemonException
Constructor.
dailyFighters() - Method in class com.swath.Planet
Gets the daily production of fighters on the planet.
dailyProduction() - Method in class com.swath.Planet
Gets the daily production amount for each product type (Fuel Ore, Organics and Equipment).
DamageReport - Class in com.swath.event
The DamageReport event.
dateBuilt() - Method in class com.swath.Ship
Gets the date when the ship was built.
DEFENSIVE_FTRS - Static variable in class com.swath.Swath
The defensive fighter type.
defensiveOdds() - Method in class com.swath.ShipCategory
Gets the defensive odds for the ship category.
delUserVariable(String, boolean) - Static method in class com.swath.Swath
Deletes a user variable.
density() - Method in class com.swath.Sector
Gets the density for the sector.
DENSITY_SCAN - Static variable in class com.swath.cmd.ScanSector
Density scan.
DENSITY_SCANNER - Static variable in class com.swath.cmd.BuyItems
The 'Density Scanner' item type.
DepositCredits - Class in com.swath.cmd
Deposit credits in your bank account.
depth() - Method in class com.swath.Bubble
Gets the depth of this bubble in number of sectors from the gate sector to the depest sector in the bubble.
DESTROYED - Static variable in class com.swath.cmd.AttackPort
The port was destroyed.
DESTROYED - Static variable in class com.swath.cmd.AttackShip
The ship was destroyed.
Disconnect - Class in com.swath.cmd
Disconnect from the TW game server.
Disconnected - Class in com.swath.event
The Disconnected event.
DisconnectedException - Exception in com.swath
Disconnected exception.
Thrown if SWATH is disconnected from the TW game server.
DisconnectedException() - Constructor for exception com.swath.DisconnectedException
 
DisconnectedException(String) - Constructor for exception com.swath.DisconnectedException
 
display() - Method in class com.swath.Planet
Displays this planet in the terminal window.
display() - Method in class com.swath.Sector
Displays this sector in the terminal window.
display() - Method in class com.swath.Ship
Displays this ship in the terminal window.
display() - Method in class com.swath.Trader
Displays this trader in the terminal window.
DisplayCurrentInfo - Class in com.swath.cmd
Display your current trader and ship information.
DisplaySector - Class in com.swath.cmd
Display the current sector.
distanceFromSector1() - Method in class com.swath.Bubble
Gets the distance from sector 1 to the bubble.
distanceFromStarDock() - Method in class com.swath.Bubble
Gets the distance from the StarDock to the bubble.
distanceToSector1() - Method in class com.swath.Bubble
Gets the distance from the bubble to sector 1.
distanceToStarDock() - Method in class com.swath.Bubble
Gets the distance from the bubble to the StarDock.
DOUBLE - Static variable in class com.swath.Parameter
The double value type.
DOUBLE - Static variable in class com.swath.UserVariable
The double value type.
DropTakeFighters - Class in com.swath.cmd
Drop/Take fighters in the current sector.
DropTakeMines - Class in com.swath.cmd
Drop/Take mines in the current sector.
dump() - Method in class com.swath.Bubble
Dumps the bubble info in the terminal window.
dump() - Method in class com.swath.Corporation
Dumps the corporation info in the terminal window.
dump() - Method in class com.swath.MainInfo
Dumps all the main info in the terminal window.
dump() - Method in class com.swath.Planet
Dumps the planet info in the terminal window.
dump() - Method in class com.swath.PlanetClass
Dumps the planet class info in the terminal window.
dump() - Method in class com.swath.Sector
Dumps the sector info in the terminal window.
dump() - Method in class com.swath.Ship
Dumps the ship info in the terminal window.
dump() - Method in class com.swath.ShipCategory
Dumps the ship category info in the terminal window.
dump() - Method in class com.swath.Trader
Dumps the trader info in the terminal window.

E

emptyHolds() - Method in class com.swath.Ship
Gets total number of empty holds on the ship.
enableEvents() - Method in class com.swath.UserDefinedDaemon
This method enables processing of events.
You must call this method from initDaemon.
If enabled, the onEvent method will be called for each new event in the SWATH event queue.
enableIncomingText() - Method in class com.swath.UserDefinedDaemon
This method enables processing of incoming text.
You must call this method from initDaemon.
If enabled, the onText method will be called when there is new text from the game server.
endCommand(boolean) - Method in class com.swath.UserDefinedCommand
Called by the framework when the command is finished.
You can override this method to clean up after the command if needed.
endCommand(boolean) - Method in class ExampleCommand1
 
endDaemon() - Method in class com.swath.UserDefinedDaemon
Called by the framework when the daemon is shut down.
You can override this method to clean up after the daemon if needed.
endDaemon() - Method in class ExampleDaemon1
 
endScript(boolean) - Method in class com.swath.UserDefinedScript
Called by the framework when the script is finished.
You can override this method to clean up after the script if needed.
endScript(boolean) - Method in class ExampleScript1
 
endScript(boolean) - Method in class ExampleScript2
 
endScript(boolean) - Method in class ExampleScript3
 
endScript(boolean) - Method in class ExampleScript4
 
endScript(boolean) - Method in class ExampleScript5
 
endScript(boolean) - Method in class ExampleScript6
 
endScript(boolean) - Method in class ExampleScript7
 
endScript(boolean) - Method in class ExampleScript8
 
endTurboCycle() - Method in class com.swath.UserDefinedScript
This marks the end of a turbo cycle.
ENEMY - Static variable in class com.swath.Swath
The trader/corp is an enemy of yours.
EnterCitadel - Class in com.swath.cmd
Enter the planet citadel.
EnterComputer - Class in com.swath.cmd
Enter the ship computer.
EnterCorporateMenu - Class in com.swath.cmd
Enter the corporate menu.
EnterTW - Class in com.swath.cmd
Enter a TradeWars game.
equals(Object) - Method in class com.swath.Bubble
 
equals(Object) - Method in class com.swath.Corporation
Compares this corporation to another one.
equals(Object) - Method in class com.swath.Identity
Compares this identity to another one.
equals(Object) - Method in class com.swath.Planet
 
equals(Object) - Method in class com.swath.PlanetClass
 
equals(Object) - Method in class com.swath.Sector
 
equals(Object) - Method in class com.swath.Ship
 
equals(Object) - Method in class com.swath.ShipCategory
 
equals(Object) - Method in class com.swath.Tools.PortSearchParameters
 
equals(Object) - Method in class com.swath.Tools.SectorSearchParameters
 
equals(Object) - Method in class com.swath.Tools.TextRange
 
equals(Object) - Method in class com.swath.Trader
Compares this trader to another one.
equipment() - Method in class com.swath.Ship
Gets total number of holds with equipment.
EQUIPMENT - Static variable in class com.swath.Swath
The index and identifier used for Equipment.
ETHER_PROBES - Static variable in class com.swath.cmd.BuyItems
The 'SubSpace Ether Probes' item type.
etherProbes() - Method in class com.swath.Ship
Gets the number of subspace ether probes on the ship.
EventIfc - Interface in com.swath
This is the Event interface.
ExampleCommand1 - Class in <Unnamed>
This is my first SWATH command.
ExampleCommand1() - Constructor for class ExampleCommand1
 
ExampleDaemon1 - Class in <Unnamed>
This is my first SWATH daemon.
ExampleDaemon1() - Constructor for class ExampleDaemon1
 
ExampleEvent1 - Class in <Unnamed>
This is my first SWATH event.
ExampleEvent1() - Constructor for class ExampleEvent1
 
ExampleEvent1(String, int) - Constructor for class ExampleEvent1
Constructs an ExampleEvent1 event.
ExampleScript1 - Class in <Unnamed>
This is my first SWATH script.
ExampleScript1() - Constructor for class ExampleScript1
 
ExampleScript2 - Class in <Unnamed>
This script trades a product between two ports.
ExampleScript2() - Constructor for class ExampleScript2
 
ExampleScript3 - Class in <Unnamed>
This script demonstrate how to retrieve data from SWATH.
ExampleScript3() - Constructor for class ExampleScript3
 
ExampleScript4 - Class in <Unnamed>
"The Sector Guard"
Shows how to wait for events and perform actions.
ExampleScript4() - Constructor for class ExampleScript4
 
ExampleScript5 - Class in <Unnamed>
This script shows how to create and display your own custom parameter window.
ExampleScript5() - Constructor for class ExampleScript5
 
ExampleScript6 - Class in <Unnamed>
This script demonstrates how to play sound files.
ExampleScript6() - Constructor for class ExampleScript6
 
ExampleScript7 - Class in <Unnamed>
This script shows how to wait for multiple events.
ExampleScript7() - Constructor for class ExampleScript7
 
ExampleScript8 - Class in <Unnamed>
This script shows how to handle events during script execution.
ExampleScript8() - Constructor for class ExampleScript8
 
exec() - Static method in class com.swath.cmd.ActiveShipScan
Perform an active ship scan.
exec(int) - Static method in class com.swath.cmd.AttackPort
Attack the port in the current sector.
exec(Ship, int) - Static method in class com.swath.cmd.AttackShip
Attack an unmanned ship with a specific amount of fighters.
exec(Ship) - Static method in class com.swath.cmd.AttackShip
Try to capture an unmanned ship.
exec(Trader, int) - Static method in class com.swath.cmd.AttackTrader
Attack a trader with a specific amount of fighters.
exec(Trader) - Static method in class com.swath.cmd.AttackTrader
Attack a trader with enough fighters to pod him/her and capture the ship.
exec() - Static method in class com.swath.cmd.BlowUpPlanet
Blow up the planet you are currently on.
exec(int, int) - Static method in class com.swath.cmd.BuyItems
Buy items from StarDock or a class 0 port.
exec(String, String, int, String) - Static method in class com.swath.cmd.BuyShip
Buy a new ship at the Shipyards on StarDock.
exec(int) - Static method in class com.swath.cmd.ChangeMilitaryLevel
Change the planet military reaction level.
exec(int, int, int, int, int, int, int) - Static method in class com.swath.cmd.ChangePersonalSettings
Change your personal settings.
exec(int, int, int, int, int, int, int, int, int, int, int) - Static method in class com.swath.cmd.ChangePersonalSettings
Change your personal settings.
exec(int, int) - Static method in class com.swath.cmd.ChangeQuasarCannonLevel
Change a planet quasar cannon level.
exec(String, int) - Static method in class com.swath.cmd.ChangeShipSettings
Change the ship settings of the current ship.
exec(boolean, boolean) - Static method in class com.swath.cmd.CIMDownload
Use the Computer Interrogation Mode (CIM) to download the latest sector warps and/or port reports.
exec(int) - Static method in class com.swath.cmd.ClaimPlanet
Claim ownership of the planet you are currently on.
exec() - Static method in class com.swath.cmd.ClearAvoidedSectors
Clear all of the avoided sectors.
exec(int) - Static method in class com.swath.cmd.ClearAvoidedSectors
Clear an avoided sector.
exec(int[]) - Static method in class com.swath.cmd.ClearAvoidedSectors
Clear avoided sectors.
exec(Sector) - Static method in class com.swath.cmd.ClearAvoidedSectors
Clear an avoided sector.
exec(Sector[]) - Static method in class com.swath.cmd.ClearAvoidedSectors
Clear avoided sectors.
exec() - Static method in class com.swath.cmd.Connect
Connect to the TW game server.
exec(UserDefinedScript) - Static method in class com.swath.cmd.Connect
Connect to the TW game server and run an auto-login script.
exec(int) - Static method in class com.swath.cmd.DepositCredits
Deposit credits in your bank account.
exec() - Static method in class com.swath.cmd.Disconnect
Disconnect from the TW game server.
exec() - Static method in class com.swath.cmd.DisplayCurrentInfo
Display your current trader and ship information.
exec(boolean) - Static method in class com.swath.cmd.DisplayCurrentInfo
Display your current trader and ship information.
exec() - Static method in class com.swath.cmd.DisplaySector
Display the current sector.
exec() - Static method in class com.swath.cmd.DropTakeFighters
Only pick up fighters in the current sector.
exec(int, int, int) - Static method in class com.swath.cmd.DropTakeFighters
Drop/Take fighters in the current sector.
exec(int) - Static method in class com.swath.cmd.DropTakeMines
Just pick up the mines in the current sector.
exec(int, int, int) - Static method in class com.swath.cmd.DropTakeMines
Drop/Take mines in the current sector.
exec() - Static method in class com.swath.cmd.EnterCitadel
Enter the planet citadel.
exec() - Static method in class com.swath.cmd.EnterComputer
Enter the ship computer.
exec() - Static method in class com.swath.cmd.EnterCorporateMenu
Enter the corporate menu.
exec() - Static method in class com.swath.cmd.EnterTW
Enter a TradeWars game.
exec(int) - Static method in class com.swath.cmd.FirePhotonMissile
Fire a photon missile into a sector.
exec(Sector) - Static method in class com.swath.cmd.FirePhotonMissile
Fire a photon missile into a sector.
exec() - Static method in class com.swath.cmd.GetAvoidedSectors
Get the current list of avoided sectors.
exec() - Static method in class com.swath.cmd.GetColonists
Get colonists from Terra and take as many as possible.
exec(int) - Static method in class com.swath.cmd.GetColonists
Get colonists from Terra.
exec() - Static method in class com.swath.cmd.GetNavPoints
Get the current user NavPoints.
exec() - Static method in class com.swath.cmd.JettisonCargo
Jettison all the cargo.
exec(int) - Static method in class com.swath.cmd.Land
Land on a planet in the current sector.
exec(Planet) - Static method in class com.swath.cmd.Land
Land on a planet in the current sector.
exec() - Static method in class com.swath.cmd.LandOnStarDock
Land on the StarDock.
exec(boolean) - Static method in class com.swath.cmd.LandOnStarDock
Land on the StarDock.
exec(int) - Static method in class com.swath.cmd.LaunchEtherProbe
Launch an ether probe.
exec(Sector) - Static method in class com.swath.cmd.LaunchEtherProbe
Launch an ether probe.
exec(String, int) - Static method in class com.swath.cmd.LaunchGenesisTorpedo
Launch a genesis torpedo in the current sector.
exec(int) - Static method in class com.swath.cmd.LaunchMineDisruptor
Launch a mine disruptor into a sector.
exec(Sector) - Static method in class com.swath.cmd.LaunchMineDisruptor
Launch a mine disruptor into a sector.
exec() - Static method in class com.swath.cmd.LeaveCitadel
Leave the planet citadel.
exec() - Static method in class com.swath.cmd.LeaveComputer
Leave the ship computer.
exec() - Static method in class com.swath.cmd.LeaveCorporateMenu
Leave the corporate menu.
exec() - Static method in class com.swath.cmd.LeaveStarDock
Leave the StarDock.
exec() - Static method in class com.swath.cmd.LiftOff
Lift off from the planet.
exec(String) - Static method in class com.swath.cmd.MakeAnnouncement
Make an announcement.
exec(String, String, int, int) - Static method in class com.swath.cmd.MessageBox
Display a message box to the user.
exec(int) - Static method in class com.swath.cmd.Move
Express move to another sector without scanning.
exec(Sector) - Static method in class com.swath.cmd.Move
Express move to another sector without scanning.
exec(int, boolean, boolean) - Static method in class com.swath.cmd.Move
Move to another sector and scan along the way.
exec(Sector, boolean, boolean) - Static method in class com.swath.cmd.Move
Move to another sector and scan along the way.
exec(int, int, int) - Static method in class com.swath.cmd.MoveColonists
Move colonists from one product to another on the current planet.
exec(int) - Static method in class com.swath.cmd.MoveToNavPoint
Express move to a given NavPoint without scanning.
exec(int, boolean, boolean) - Static method in class com.swath.cmd.MoveToNavPoint
Move to a given NavPoint and scan along the way.
exec(Planet) - Static method in class com.swath.cmd.PlanetaryTrade
Negotiate a planetary trade agreement at the port in the current sector.
exec(Planet, int, int, int) - Static method in class com.swath.cmd.PlanetaryTrade
Negotiate a planetary trade agreement at the port in the current sector.
exec(int) - Static method in class com.swath.cmd.PlanetTransport
Transport your ship to another sector using a planet transporter.
exec(Sector) - Static method in class com.swath.cmd.PlanetTransport
Transport your ship to another sector using a planet transporter.
exec(int) - Static method in class com.swath.cmd.PlanetWarp
Warp the current planet to another sector.
exec(Sector) - Static method in class com.swath.cmd.PlanetWarp
Warp the current planet to another sector.
exec(int, int) - Static method in class com.swath.cmd.PlotCourse
Plot the course between two sectors.
exec(Sector, Sector) - Static method in class com.swath.cmd.PlotCourse
Plot the course between two sectors.
exec(int) - Static method in class com.swath.cmd.PortReport
Get the current port report for a port.
exec(Sector) - Static method in class com.swath.cmd.PortReport
Get the current port report for a port.
exec(String) - Static method in class com.swath.cmd.PrintText
Print text in the terminal window.
exec(Exception) - Static method in class com.swath.cmd.PrintText
Print an exception and the complete stack trace in the terminal window.
exec() - Static method in class com.swath.cmd.QuitTW
Quit a TradeWars game.
exec(boolean) - Static method in class com.swath.cmd.QuitTW
Quit a TradeWars game.
exec() - Static method in class com.swath.cmd.ReEnterTW
Exit and re-enter a TradeWars game.
exec() - Static method in class com.swath.cmd.RefreshInfo
Refresh game information about traders, corps, ships, planets, fighters and mines.
exec(String) - Static method in class com.swath.cmd.ReleaseBeacon
Release a marker beacon in the current sector.
exec(boolean) - Static method in class com.swath.cmd.RemainOvernight
Remain in the citadel overnight.
exec() - Static method in class com.swath.cmd.Rob
Rob the port in the current sector and take as much credits as possible.
exec(int) - Static method in class com.swath.cmd.Rob
Rob the port in the current sector.
exec() - Static method in class com.swath.cmd.ScanCurrentShip
Scans the current ship information.
exec() - Static method in class com.swath.cmd.ScanPlanets
Scan the planets in the current sector using the planet scanner.
exec(int) - Static method in class com.swath.cmd.ScanSector
Perform a long range scan in the current sector.
exec(Ship, String) - Static method in class com.swath.cmd.SellShip
Sell a ship at the Shipyards on StarDock.
exec(String) - Static method in class com.swath.cmd.SendCorporateMemo
Send a memo to your corporation members.
exec(String) - Static method in class com.swath.cmd.SendFedCommMessage
Send a plain message on the Federation comm-link.
exec(String, boolean) - Static method in class com.swath.cmd.SendFedCommMessage
Send a message on the Federation comm-link.
exec(String) - Static method in class com.swath.cmd.SendMacro
Send a macro once to the TW server.
exec(String, int, boolean) - Static method in class com.swath.cmd.SendMacro
Send a macro one or more times to the TW server.
exec(Trader, String) - Static method in class com.swath.cmd.SendPrivateMessage
Send a plain message to a trader.
exec(Trader, String, boolean) - Static method in class com.swath.cmd.SendPrivateMessage
Send a private message to a trader.
exec(String) - Static method in class com.swath.cmd.SendSSRadioMessage
Send a plain message on the current sub-space radio band.
exec(String, boolean) - Static method in class com.swath.cmd.SendSSRadioMessage
Send a message on the current sub-space radio band.
exec(int) - Static method in class com.swath.cmd.SetAvoidedSectors
Set a new sector to avoid.
exec(int[]) - Static method in class com.swath.cmd.SetAvoidedSectors
Set new sectors to avoid.
exec(Sector) - Static method in class com.swath.cmd.SetAvoidedSectors
Set a new sector to avoid.
exec(Sector[]) - Static method in class com.swath.cmd.SetAvoidedSectors
Set new sectors to avoid.
exec(int, int) - Static method in class com.swath.cmd.SetNavPoint
Set a user NavPoint.
exec(int, Sector) - Static method in class com.swath.cmd.SetNavPoint
Set a user NavPoint.
exec() - Static method in class com.swath.cmd.SetTextMode
Reset the current text mode to the default setting.
exec(int, int, int) - Static method in class com.swath.cmd.SetTextMode
Set the current text mode.
exec() - Static method in class com.swath.cmd.ShowDeployedFighters
Show deployed fighters.
exec(int) - Static method in class com.swath.cmd.ShowDeployedMines
Show deployed mines.
exec() - Static method in class com.swath.cmd.ShowPersonalPlanets
Show personal planets.
exec() - Static method in class com.swath.cmd.ShowWhoIsPlaying
Show who is currently playing.
exec() - Static method in class com.swath.cmd.ShutOffTractorBeam
Shut off the tractor beam.
exec(int) - Static method in class com.swath.cmd.Steal
Steal products from the port in the current sector.
exec(int, int) - Static method in class com.swath.cmd.Steal
Steal products from the port in the current sector.
exec(int, int) - Static method in class com.swath.cmd.TakeLeaveColonists
Take or leave colonists on the current planet.
exec(int) - Static method in class com.swath.cmd.TakeLeaveCredits
Take or leave credits from/to the citadel treasury.
exec(int) - Static method in class com.swath.cmd.TakeLeaveFighters
Take or leave fighters on the current planet.
exec(int, int, int) - Static method in class com.swath.cmd.TakeLeaveProducts
Take and/or leave products on the current planet.
exec(int) - Static method in class com.swath.cmd.TakeLeaveShields
Take or leave shields from/to the planetary shield generator.
exec(int) - Static method in class com.swath.cmd.TowShip
Tow a ship in the current sector.
exec(Ship) - Static method in class com.swath.cmd.TowShip
Tow a ship in the current sector.
exec(int, int, int) - Static method in class com.swath.cmd.Trade
Trade at the port in the current sector.
exec(int) - Static method in class com.swath.cmd.Transport
Transport to another ship.
exec(Ship) - Static method in class com.swath.cmd.Transport
Transport to another ship.
exec(int) - Static method in class com.swath.cmd.TransWarp
TransWarp your ship to another sector.
exec(Sector) - Static method in class com.swath.cmd.TransWarp
TransWarp your ship to another sector.
exec() - Static method in class com.swath.cmd.UpgradePlanet
Upgrades the current planet to the next level if possible.
exec(int, int) - Static method in class com.swath.cmd.UpgradePort
Upgrades the port in the current sector.
exec(String, int) - Static method in class com.swath.cmd.UserAlert
Display a user alert window to the user and print the text in the SWATH console window.
exec(String, String, String, String, String) - Static method in class com.swath.cmd.UserChoice
Ask the user to choose between some options in a dialog box.
exec(String, String, String[]) - Static method in class com.swath.cmd.UserChoiceList
Ask the user to choose an item from a list in a dialog box.
exec(String) - Static method in class com.swath.cmd.UserInput
Ask the user to input a text string using a dialog box.
exec(String, String, String, boolean) - Static method in class com.swath.cmd.UserInput
Ask the user to input a text string using a dialog box.
exec(boolean) - Static method in class com.swath.cmd.VisualMap
Show or hide the Visual Map.
exec(int, boolean) - Static method in class com.swath.cmd.VisualMap
Display a sector in the Visual Map.
exec(Sector, boolean) - Static method in class com.swath.cmd.VisualMap
Display a sector in the Visual Map.
exec(Class) - Static method in class com.swath.cmd.WaitForEvent
Wait for a specific event with no timeout.
exec(Class[]) - Static method in class com.swath.cmd.WaitForEvent
Wait for one of several events with no timeout.
exec(Class, int) - Static method in class com.swath.cmd.WaitForEvent
Wait for a specific event or timeout.
exec(Class[], int) - Static method in class com.swath.cmd.WaitForEvent
Wait for one of several events or timeout.
exec(int) - Static method in class com.swath.cmd.WaitForPrompt
Wait for specific TW prompt(s) with no timeout.
exec(int, int) - Static method in class com.swath.cmd.WaitForPrompt
Wait for specific TW prompt(s) or timeout.
exec(int) - Static method in class com.swath.cmd.WithdrawCredits
Withdraw credits from your bank account.
exec(int, int, int) - Static method in class ExampleCommand1
Simple trading at the port in the current sector.
exec(int, Planet) - Static method in class ExampleScript1
Moves your ship to a sector and lands on a planet there.
execCommand(CommandIfc) - Static method in class com.swath.Swath
Executes a command.
Used by SWATH only!
execInstance() - Method in class com.swath.UserDefinedCommand
Executes a command instance.
Should only be called from static exec() methods.
execInstance() - Method in class com.swath.UserDefinedScript
Executes a script instance.
Should only be called from static exec() methods.
execSwathFunction(String) - Static method in class com.swath.Swath
Executes a SWATH menu function.
experience() - Method in class com.swath.Trader
Gets the trader's experience points.

F

FedCommMessage - Class in com.swath.event
The FedCommMessage event.
FIGHTERS - Static variable in class com.swath.cmd.BuyItems
The 'Fighters' item type.
fighters() - Method in class com.swath.Planet
Gets the number of fighters on the planet.
fighters() - Method in class com.swath.Sector
Gets the number of fighters in this sector.
fighters() - Method in class com.swath.Ship
Gets the number of fighters on the ship.
FIGHTERS - Static variable in class com.swath.Swath
The index and identifier used for Fighters.
FightersDestroyed - Class in com.swath.event
The FightersDestroyed event.
findPortPairs(Tools.PortSearchParameters, Tools.PortSearchParameters, boolean, int) - Static method in class com.swath.Tools
Finds port pairs in the SWATH database that matches the given parameters.
findPorts(Tools.PortSearchParameters, boolean, int) - Static method in class com.swath.Tools
Finds ports in the SWATH database that matches the given parameters.
findRoute(int, int) - Static method in class com.swath.Tools
Deprecated.
Use the other findRoute method instead.
findRoute(int, int, boolean) - Static method in class com.swath.Tools
Finds the route between two sectors by using the SWATH database.
findSectors(Tools.SectorSearchParameters) - Static method in class com.swath.Tools
Finds sectors in the SWATH database that matches the given parameters.
findText(String, String) - Static method in class com.swath.Tools
Searches for a given text in a string.
findText(String, String, String) - Static method in class com.swath.Tools
Searches for a text in a string given its start and end.
FirePhotonMissile - Class in com.swath.cmd
Fire a photon missile into a sector.
FLED - Static variable in class com.swath.cmd.AttackTrader
The trader fled to an adjacent sector.
FRIENDLY - Static variable in class com.swath.Swath
The sector is friendly to you.
ftrDestroyed() - Method in class com.swath.Sector
Indicates if your fighters in this sector has been destroyed and if so, who did destroy them.
ftrOwner() - Method in class com.swath.Sector
Gets the owner of the fighters in this sector.
ftrTimestamp() - Method in class com.swath.Sector
Gets the timestamp when the fighters were placed or first discovered.
ftrType() - Method in class com.swath.Sector
Gets the type of fighters in this sector.
fuel() - Method in class com.swath.Ship
Gets total number of holds with fuel ore.
FUEL_ORE - Static variable in class com.swath.Swath
The index and indentifier used for Fuel Ore.
FUNC_ABORT_COMMAND - Static variable in class com.swath.Swath
 
FUNC_ABORT_SCRIPT - Static variable in class com.swath.Swath
 
FUNC_ABOUT_SWATH - Static variable in class com.swath.Swath
 
FUNC_ADJACENT_SECTORS - Static variable in class com.swath.Swath
 
FUNC_BUBBLE_FINDER - Static variable in class com.swath.Swath
 
FUNC_BUST_LIST - Static variable in class com.swath.Swath
 
FUNC_COM_WINDOW - Static variable in class com.swath.Swath
 
FUNC_COMPILE_JAVA_CODE - Static variable in class com.swath.Swath
 
FUNC_CONNECT - Static variable in class com.swath.Swath
 
FUNC_COPY - Static variable in class com.swath.Swath
 
FUNC_DISCONNECT - Static variable in class com.swath.Swath
 
FUNC_EXIT - Static variable in class com.swath.Swath
 
FUNC_EXPORT - Static variable in class com.swath.Swath
 
FUNC_FIGHTER_LIST - Static variable in class com.swath.Swath
 
FUNC_FIND - Static variable in class com.swath.Swath
 
FUNC_FIND_NEAREST - Static variable in class com.swath.Swath
 
FUNC_FIND_ROUTE - Static variable in class com.swath.Swath
 
FUNC_GAME_INFO - Static variable in class com.swath.Swath
 
FUNC_GAME_NOTES - Static variable in class com.swath.Swath
 
FUNC_GAME_OPTIONS - Static variable in class com.swath.Swath
 
FUNC_GAME_SETTINGS - Static variable in class com.swath.Swath
 
FUNC_GENERATE_CRASH_REPORT - Static variable in class com.swath.Swath
 
FUNC_HELP_TOPICS - Static variable in class com.swath.Swath
 
FUNC_HELPER_MODE - Static variable in class com.swath.Swath
 
FUNC_IMPORT - Static variable in class com.swath.Swath
 
FUNC_INFO_BAR - Static variable in class com.swath.Swath
 
FUNC_JAWS_MODE - Static variable in class com.swath.Swath
 
FUNC_LICENSE_STATUS - Static variable in class com.swath.Swath
 
FUNC_MACRO_LIST - Static variable in class com.swath.Swath
 
FUNC_MINE_LIST - Static variable in class com.swath.Swath
 
FUNC_NEW - Static variable in class com.swath.Swath
 
FUNC_OPEN - Static variable in class com.swath.Swath
 
FUNC_PARSE_INCOMING_TEXT - Static variable in class com.swath.Swath
 
FUNC_PASTE - Static variable in class com.swath.Swath
 
FUNC_PLANET_LIST - Static variable in class com.swath.Swath
 
FUNC_PLAY_QUICK_MACRO - Static variable in class com.swath.Swath
 
FUNC_PORT_FINDER - Static variable in class com.swath.Swath
 
FUNC_PREFERENCES - Static variable in class com.swath.Swath
 
FUNC_PROXY_MODE - Static variable in class com.swath.Swath
 
FUNC_RECORD_QUICK_MACRO - Static variable in class com.swath.Swath
 
FUNC_REGISTRATION_TOOL - Static variable in class com.swath.Swath
 
FUNC_RELOAD_ALL_SCRIPTS - Static variable in class com.swath.Swath
 
FUNC_RESET - Static variable in class com.swath.Swath
 
FUNC_RUNNING_SCRIPT_HELP - Static variable in class com.swath.Swath
 
FUNC_SAVE - Static variable in class com.swath.Swath
 
FUNC_SAVE_AS - Static variable in class com.swath.Swath
 
FUNC_SCRIPT_DEBUG_MODE - Static variable in class com.swath.Swath
 
FUNC_SECTOR_FINDER - Static variable in class com.swath.Swath
 
FUNC_SECTOR_INFO - Static variable in class com.swath.Swath
 
FUNC_SECTOR_NOTE - Static variable in class com.swath.Swath
 
FUNC_SHIP_LIST - Static variable in class com.swath.Swath
 
FUNC_STATUS_BAR - Static variable in class com.swath.Swath
 
FUNC_SUPPRESS_TEXT_OUTPUT - Static variable in class com.swath.Swath
 
FUNC_SWATH_FAQ - Static variable in class com.swath.Swath
 
FUNC_SWATH_FORUM - Static variable in class com.swath.Swath
 
FUNC_SWATH_HOMEPAGE - Static variable in class com.swath.Swath
 
FUNC_TIME_INDEX_LOG_MODE - Static variable in class com.swath.Swath
 
FUNC_TRADERS_AND_CORPS - Static variable in class com.swath.Swath
 
FUNC_TRIGGER_LIST - Static variable in class com.swath.Swath
 
FUNC_TWXSYNC_DEBUG_MODE - Static variable in class com.swath.Swath
 
FUNC_VISUAL_MAP - Static variable in class com.swath.Swath
 

G

gameId() - Method in class com.swath.MainInfo
Gets the current game id letter.
GameLoaded - Class in com.swath.event
The GameLoaded event.
gameName() - Method in class com.swath.MainInfo
Gets the current game name.
gamePath() - Method in class com.swath.MainInfo
Gets the current game path.
gameSettings() - Method in class com.swath.MainInfo
Gets all known game settings.
GameVariables - Class in com.swath
This class contains methods for accessing the game variables.
gameVariables() - Method in class com.swath.MainInfo
Gets all the game variables.
gameVersion() - Method in class com.swath.MainInfo
Gets the current game version.
gates() - Method in class com.swath.Bubble
Gets the gate sector(s) for the bubble.
GENESIS_TORPEDOES - Static variable in class com.swath.cmd.BuyItems
The 'Genesis Torpedoes' item type.
genesisTorpedos() - Method in class com.swath.Ship
Gets the number of genesis torpedos on the ship.
getAllCorporations() - Static method in class com.swath.Swath
Gets an array with all corporations.
getAllPlanetClasses() - Static method in class com.swath.Swath
Gets an array with all planet classes.
getAllPlanets() - Static method in class com.swath.Swath
Gets an array with all planets.
getAllShipCategories() - Static method in class com.swath.Swath
Gets an array with all ship categories.
getAllShips() - Static method in class com.swath.Swath
Gets an array with all ships.
getAllTraders() - Static method in class com.swath.Swath
Gets an array with all traders.
GetAvoidedSectors - Class in com.swath.cmd
Get the current list of avoided sectors.
getBoolean() - Method in class com.swath.Parameter
Gets a boolean value.
getBoolean() - Method in class com.swath.UserVariable
Gets a boolean value.
getBubbles(int) - Static method in class com.swath.Swath
Gets all bubbles of a specific type.
getButton() - Method in class com.swath.event.UserButtonPressed
Gets the user toolbar button that was pressed.
getChoice(int) - Method in class com.swath.Parameter
Gets a choice value for a specific key.
getClassName() - Method in interface com.swath.CommandIfc
Gets the command class name.
getClassName() - Method in interface com.swath.EventIfc
Gets the event class name.
getClassName(Class) - Static method in class com.swath.Tools
Gets the class name.
getClassName() - Method in class com.swath.UserDefinedCommand
 
getClassName() - Method in class com.swath.UserDefinedDaemon
Gets the class name.
getClassName() - Method in class com.swath.UserDefinedEvent
 
getClassName() - Method in class com.swath.UserDefinedScript
Gets the class name.
GetColonists - Class in com.swath.cmd
Get colonists from Terra.
getCommand() - Method in exception com.swath.CommandException
Returns the command.
getCommandName() - Method in exception com.swath.CommandException
Returns the command name.
getCommandName() - Static method in class com.swath.Swath
Gets the name of the running command.
getCorporation() - Method in class com.swath.Identity
Returns the corporation.
getCorporation(int) - Static method in class com.swath.Swath
Gets a corporation.
getCurrentChoice() - Method in class com.swath.Parameter
Gets the current choice value.
getDamage() - Method in class com.swath.event.DamageReport
Gets the amount of damage reported by the ship.
getDescription() - Method in class com.swath.UserDefinedScript
Called by the framework to get the description of the script.
You should override this method to provide a script description.

The script description can be an URL to a HTML page or file.
getDescription() - Method in class ExampleScript1
 
getDescription() - Method in class ExampleScript2
 
getDescription() - Method in class ExampleScript3
 
getDescription() - Method in class ExampleScript4
 
getDescription() - Method in class ExampleScript5
 
getDescription() - Method in class ExampleScript6
 
getDescription() - Method in class ExampleScript7
 
getDescription() - Method in class ExampleScript8
 
getDistance(int, int, boolean) - Static method in class com.swath.Tools
Gets the distance between two sectors by using the SWATH database.
getDouble() - Method in class com.swath.Parameter
Gets a double value.
getDouble() - Method in class com.swath.UserVariable
Gets a double value.
getDoubleMax() - Method in class com.swath.Parameter
Gets the maximum double value limit.
getDoubleMin() - Method in class com.swath.Parameter
Gets the minimum double value limit.
getDuration() - Method in class com.swath.event.PhotonWave
Gets the duration of the wave in seconds.
getEndIndex() - Method in class com.swath.Tools.TextRange
Gets the end index of the text.
getEventClasses() - Method in class com.swath.cmd.WaitForEvent
Returns the event classes.
Used by SWATH only!
getExploredSectors() - Static method in class com.swath.Swath
Gets an array of all explored sectors.
getFighters() - Method in class com.swath.event.FightersDestroyed
Gets the number of fighters destroyed.
getHelpText() - Method in class com.swath.Parameter
Gets the help text for this parameter.
getHolds() - Method in class ExampleEvent1
Gets the number of holds on the ship.
getInteger() - Method in class com.swath.Parameter
Gets an integer value.
getInteger(String) - Static method in class com.swath.Tools
Gets the integer value of a given text string.
getInteger() - Method in class com.swath.UserVariable
Gets an integer value.
getIntegerMax() - Method in class com.swath.Parameter
Gets the maximum integer value limit.
getIntegerMin() - Method in class com.swath.Parameter
Gets the minimum integer value limit.
getKey() - Method in class com.swath.event.HotKeyPressed
Gets the key that was pressed.
getKey() - Method in class com.swath.event.HotKeyReleased
Gets the key that was released.
getKeys() - Method in class com.swath.Parameter
Gets an enumeration of the choice value keys.
getMaxStringLength() - Method in class com.swath.Parameter
Gets the maximum string length.
getMessage() - Method in class com.swath.event.FedCommMessage
Gets the message text.
getMessage() - Method in class com.swath.event.PrivateMessage
Gets the message text.
getMessage() - Method in class com.swath.event.SSRadioMessage
Gets the message text.
getMessage() - Method in class com.swath.event.TradeWarsMessage
Gets the game message text.
getModifiers() - Method in class com.swath.event.HotKeyPressed
Gets the key modifiers that were in use.
getModifiers() - Method in class com.swath.event.HotKeyReleased
Gets the key modifiers that were in use.
getName() - Method in interface com.swath.CommandIfc
Gets the name of the command.
getName() - Method in class com.swath.UserDefinedCommand
Called by the framework to get the name of the command.
You should override this method.
getName() - Method in class com.swath.UserDefinedDaemon
Called by the framework to get the name of the daemon.
You should override this method.
getName() - Method in class com.swath.UserDefinedScript
Called by the framework to get the name of the script.
You should override this method.
getName() - Method in class ExampleCommand1
 
getName() - Method in class ExampleDaemon1
 
getName() - Method in class ExampleScript1
 
getName() - Method in class ExampleScript2
 
getName() - Method in class ExampleScript3
 
getName() - Method in class ExampleScript4
 
getName() - Method in class ExampleScript5
 
getName() - Method in class ExampleScript6
 
getName() - Method in class ExampleScript7
 
getName() - Method in class ExampleScript8
 
GetNavPoints - Class in com.swath.cmd
Get the current user NavPoints.
getNewSector() - Method in class com.swath.event.YouEnteredSector
Gets the sector you entered.
getOldEvent() - Method in class com.swath.event.HistoryEvent
Gets the old event that happened in the past.
getOldSector() - Method in class com.swath.event.YouEnteredSector
Gets the sector you left.
getOwner() - Method in class com.swath.event.YouDestroyedProbe
Gets the owner of the ether probe that was destroyed.
getParams() - Method in interface com.swath.CommandIfc
Gets the command parameters.
getParams() - Method in class com.swath.UserDefinedCommand
Gets the command parameters.
getParams() - Method in class com.swath.UserDefinedScript
Gets the script parameters.
getPlanet() - Method in class com.swath.event.ShipLandedOnPlanet
Gets the planet where the ship landed.
getPlanet() - Method in class com.swath.event.ShipLeftPlanet
Gets the planet where the ship left from.
getPlanet(int) - Static method in class com.swath.Swath
Gets a planet.
getPlanetClass(String) - Static method in class com.swath.Swath
Gets a planet class.
getProductName(int) - Method in class com.swath.Tools
Gets the product name for a given product type (Fuel Ore, Organics or Equipment).
getResource(String) - Static method in class com.swath.Tools
Finds a resource with a given name.
getResource(String) - Method in class com.swath.UserDefinedCommand
Finds a resource with a given name.
getResource(String) - Method in class com.swath.UserDefinedDaemon
Finds a resource with a given name.
getResource(String) - Method in class com.swath.UserDefinedScript
Finds a resource with a given name.
getScriptName() - Static method in class com.swath.Swath
Gets the name of the running script.
getSector() - Method in class com.swath.event.FightersDestroyed
Gets the sector where the fighters were destroyed.
getSector() - Method in class com.swath.event.LimpetActivated
Gets the sector where the limpet mine was activated.
getSector() - Method in class com.swath.event.PhotonWave
Gets the sector where the photon wave was detected.
getSector() - Method in class com.swath.event.ProbeDestroyed
Gets the sector where the ether probe was destroyed.
getSector() - Method in class com.swath.event.ProbeEnteredSector
Gets the sector where the ether probe entered.
getSector() - Method in class com.swath.event.ProbeSelfDestructed
Gets the sector where the ether probe self destructed.
getSector() - Method in class com.swath.event.ShipDockedAtPort
Gets the sector where the ship docked at the port.
getSector() - Method in class com.swath.event.ShipEnteredSector
Gets the sector where the ship entered.
getSector() - Method in class com.swath.event.ShipLandedOnPlanet
Gets the sector where the planet is.
getSector() - Method in class com.swath.event.ShipLeftPlanet
Gets the sector where the planet is.
getSector() - Method in class com.swath.event.ShipLeftPort
Gets the sector where the ship left the port.
getSector() - Method in class com.swath.event.ShipLeftSector
Gets the sector that the ship left.
getSector() - Method in class com.swath.event.TraderClearedBust
Gets the sector where the bust was cleared.
getSector() - Method in class com.swath.event.TraderIsAttacking
Gets the sector where the fighters are being attacked.
getSector() - Method in class com.swath.event.TraderPaidToll
Gets the sector where the toll was paid.
getSector() - Method in class com.swath.event.TraderRetreated
Gets the sector that the trader retreated from.
getSector() - Method in class com.swath.event.YouAreBusted
Gets the sector where you got busted.
getSector() - Method in class com.swath.event.YouDestroyedProbe
Gets the sector where the ether probe was destroyed.
getSector(int) - Static method in class com.swath.Swath
Gets a sector.
getSectors(int[]) - Static method in class com.swath.Swath
Gets an array of sectors.
getSender() - Method in class com.swath.event.FedCommMessage
Gets the sender of the message.
getSender() - Method in class com.swath.event.PrivateMessage
Gets the sender of the message.
getSender() - Method in class com.swath.event.SSRadioMessage
Gets the sender of the message.
getSender() - Method in class com.swath.event.TradeWarsMessage
Gets the sender of the game message.
getShip() - Method in class com.swath.event.ShipDockedAtPort
Gets the ship that docked.
getShip() - Method in class com.swath.event.ShipEnteredSector
Gets the ship that entered.
getShip() - Method in class com.swath.event.ShipLandedOnPlanet
Gets the ship that landed.
getShip() - Method in class com.swath.event.ShipLeftPlanet
Gets the ship that left.
getShip() - Method in class com.swath.event.ShipLeftPort
Gets the ship that left.
getShip() - Method in class com.swath.event.ShipLeftSector
Gets the ship that left.
getShip(int) - Static method in class com.swath.Swath
Gets a ship.
getShipCategory(String) - Static method in class com.swath.Swath
Gets a ship category.
getShipName() - Method in class ExampleEvent1
Gets the name of the ship.
getStartIndex() - Method in class com.swath.Tools.TextRange
Gets the start index of the text.
getString() - Method in class com.swath.Parameter
Gets a string value.
getString() - Method in class com.swath.UserVariable
Gets a string value.
getText() - Method in class com.swath.Parameter
Gets the text for this parameter.
getText(String, Tools.TextRange) - Static method in class com.swath.Tools
Gets text from a string given a text range.
getToll() - Method in class com.swath.event.TraderPaidToll
Gets the toll paid by the trader.
getTrader() - Method in class com.swath.event.FightersDestroyed
Gets the trader that destroyed your fighters.
getTrader() - Method in class com.swath.event.ShipDockedAtPort
Gets the trader that docked.
getTrader() - Method in class com.swath.event.ShipEnteredSector
Gets the trader that entered.
getTrader() - Method in class com.swath.event.ShipLandedOnPlanet
Gets the trader that landed.
getTrader() - Method in class com.swath.event.ShipLeftPlanet
Gets the trader that left.
getTrader() - Method in class com.swath.event.ShipLeftPort
Gets the trader that left.
getTrader() - Method in class com.swath.event.ShipLeftSector
Gets the trader that left.
getTrader() - Method in class com.swath.event.TraderClearedBust
Gets the trader that cleared your bust.
getTrader() - Method in class com.swath.event.TraderEnteredGame
Gets the trader that entered the game.
getTrader() - Method in class com.swath.event.TraderIsAttacking
Gets the trader that is attacking the fighters.
getTrader() - Method in class com.swath.event.TraderLeftGame
Gets the trader that left the game.
getTrader() - Method in class com.swath.event.TraderPaidToll
Gets the trader that paid the toll.
getTrader() - Method in class com.swath.event.TraderPowersUpWeapons
Gets the trader that is preparing to attack.
getTrader() - Method in class com.swath.event.TraderRetreated
Gets the trader that retreated from your fighters.
getTrader() - Method in class com.swath.Identity
Returns the trader.
getTrader(String) - Static method in class com.swath.Swath
Gets a trader.
getType() - Method in class com.swath.Parameter
Gets the type of this parameter.
getType() - Method in class com.swath.UserVariable
Gets the type of this user variable.
getUnexploredSectors() - Static method in class com.swath.Swath
Gets an array of all unexplored sectors.
getUserEvents() - Method in class com.swath.cmd.WaitForEvent
Returns the user events.
Used by SWATH only!
getUserVariable(String, boolean) - Static method in class com.swath.Swath
Gets a user variable.
getValue() - Method in class com.swath.Parameter
Gets the value as an object.
getValue() - Method in class com.swath.UserVariable
Gets the value as an object.
getVisitedSectors() - Static method in class com.swath.Swath
Gets an array of all visited sectors.
getWords(String) - Static method in class com.swath.Tools
Splits a given text string into words.

H

hasDensityScanner() - Method in class com.swath.Ship
Indicates if the ship has a density scanner or not.
hasHoloScanner() - Method in class com.swath.Ship
Indicates if the ship has a holographic scanner or not.
hasInterdictor() - Method in class com.swath.Planet
Indicates if the planet has an Interdictor generator or not.
hasInterdictor() - Method in class com.swath.Ship
Indicates if the ship has an interdictor generator or not.
hasPlanetScanner() - Method in class com.swath.Ship
Indicates if the ship has a planet scanner or not.
hasPsychicProbe() - Method in class com.swath.Ship
Indicates if the ship has a psychic probe or not.
HistoryEvent - Class in com.swath.event
The HistoryEvent event.
holds() - Method in class com.swath.Ship
Gets total number of holds on the ship.
HOLO_SCAN - Static variable in class com.swath.cmd.ScanSector
Holographic scan.
HOLO_SCANNER - Static variable in class com.swath.cmd.BuyItems
The 'Holographic Scanner' item type.
HOSTILE - Static variable in class com.swath.Swath
The sector is hostile to you.
hostname() - Method in class com.swath.MainInfo
Gets the name or IP address of the game server.
HotKeyPressed - Class in com.swath.event
The HotKeyPressed event.
HotKeyReleased - Class in com.swath.event
The HotKeyReleased event.

I

ICON_ERROR - Static variable in class com.swath.cmd.MessageBox
An 'error' icon.
ICON_EXCLAMATION - Static variable in class com.swath.cmd.MessageBox
An 'exclamation' icon.
ICON_INFORMATION - Static variable in class com.swath.cmd.MessageBox
An 'information' icon.
ICON_QUESTION - Static variable in class com.swath.cmd.MessageBox
A 'question' icon.
ICON_STOP - Static variable in class com.swath.cmd.MessageBox
A 'stop' icon.
ICON_WARNING - Static variable in class com.swath.cmd.MessageBox
A 'warning' icon.
id() - Method in class com.swath.Corporation
Gets the corporation identification number.
id() - Method in class com.swath.Planet
Gets the planet identification number.
id() - Method in class com.swath.Ship
Gets the ship identification number.
id() - Method in class com.swath.Trader
Gets the internal trader identification number in SWATH.
ID_ALIEN - Static variable in class com.swath.Swath
This is the trader id for 'Alien'.
ID_FEDERAL - Static variable in class com.swath.Swath
This is the trader id for 'Federation'.
ID_FERRENGI - Static variable in class com.swath.Swath
This is the trader id for 'Ferrengi'.
ID_NOBODY - Static variable in class com.swath.Swath
This is the trader id for 'Nobody'.
ID_UNKNOWN - Static variable in class com.swath.Swath
This is the trader id for 'Unknown'.
ID_YOU - Static variable in class com.swath.Swath
This is your trader id.
Identity - Class in com.swath
This class represents an identity and is either a trader or a corporation.
InactivityWarning - Class in com.swath.event
The InactivityWarning event.
index() - Method in class com.swath.Bubble
Gets the bubble index.
Info - Class in com.swath
This is an abstract base class for information access used by SWATH.
initCommand() - Method in class com.swath.cmd.ActiveShipScan
 
initCommand() - Method in class com.swath.cmd.AttackPort
 
initCommand() - Method in class com.swath.cmd.AttackShip
 
initCommand() - Method in class com.swath.cmd.AttackTrader
 
initCommand() - Method in class com.swath.cmd.BlowUpPlanet
 
initCommand() - Method in class com.swath.cmd.BuyItems
 
initCommand() - Method in class com.swath.cmd.BuyShip
 
initCommand() - Method in class com.swath.cmd.ChangeMilitaryLevel
 
initCommand() - Method in class com.swath.cmd.ChangePersonalSettings
 
initCommand() - Method in class com.swath.cmd.ChangeQuasarCannonLevel
 
initCommand() - Method in class com.swath.cmd.ChangeShipSettings
 
initCommand() - Method in class com.swath.cmd.CIMDownload
 
initCommand() - Method in class com.swath.cmd.ClaimPlanet
 
initCommand() - Method in class com.swath.cmd.ClearAvoidedSectors
 
initCommand() - Method in class com.swath.cmd.Connect
 
initCommand() - Method in class com.swath.cmd.DepositCredits
 
initCommand() - Method in class com.swath.cmd.Disconnect
 
initCommand() - Method in class com.swath.cmd.DisplayCurrentInfo
 
initCommand() - Method in class com.swath.cmd.DisplaySector
 
initCommand() - Method in class com.swath.cmd.DropTakeFighters
 
initCommand() - Method in class com.swath.cmd.DropTakeMines
 
initCommand() - Method in class com.swath.cmd.EnterCitadel
 
initCommand() - Method in class com.swath.cmd.EnterComputer
 
initCommand() - Method in class com.swath.cmd.EnterCorporateMenu
 
initCommand() - Method in class com.swath.cmd.EnterTW
 
initCommand() - Method in class com.swath.cmd.FirePhotonMissile
 
initCommand() - Method in class com.swath.cmd.GetAvoidedSectors
 
initCommand() - Method in class com.swath.cmd.GetColonists
 
initCommand() - Method in class com.swath.cmd.GetNavPoints
 
initCommand() - Method in class com.swath.cmd.JettisonCargo
 
initCommand() - Method in class com.swath.cmd.Land
 
initCommand() - Method in class com.swath.cmd.LandOnStarDock
 
initCommand() - Method in class com.swath.cmd.LaunchEtherProbe
 
initCommand() - Method in class com.swath.cmd.LaunchGenesisTorpedo
 
initCommand() - Method in class com.swath.cmd.LaunchMineDisruptor
 
initCommand() - Method in class com.swath.cmd.LeaveCitadel
 
initCommand() - Method in class com.swath.cmd.LeaveComputer
 
initCommand() - Method in class com.swath.cmd.LeaveCorporateMenu
 
initCommand() - Method in class com.swath.cmd.LeaveStarDock
 
initCommand() - Method in class com.swath.cmd.LiftOff
 
initCommand() - Method in class com.swath.cmd.MakeAnnouncement
 
initCommand() - Method in class com.swath.cmd.MessageBox
 
initCommand() - Method in class com.swath.cmd.Move
 
initCommand() - Method in class com.swath.cmd.MoveColonists
 
initCommand() - Method in class com.swath.cmd.MoveToNavPoint
 
initCommand() - Method in class com.swath.cmd.PlanetaryTrade
 
initCommand() - Method in class com.swath.cmd.PlanetTransport
 
initCommand() - Method in class com.swath.cmd.PlanetWarp
 
initCommand() - Method in class com.swath.cmd.PlotCourse
 
initCommand() - Method in class com.swath.cmd.PortReport
 
initCommand() - Method in class com.swath.cmd.PrintText
 
initCommand() - Method in class com.swath.cmd.QuitTW
 
initCommand() - Method in class com.swath.cmd.ReEnterTW
 
initCommand() - Method in class com.swath.cmd.RefreshInfo
 
initCommand() - Method in class com.swath.cmd.ReleaseBeacon
 
initCommand() - Method in class com.swath.cmd.RemainOvernight
 
initCommand() - Method in class com.swath.cmd.Rob
 
initCommand() - Method in class com.swath.cmd.ScanCurrentShip
 
initCommand() - Method in class com.swath.cmd.ScanPlanets
 
initCommand() - Method in class com.swath.cmd.ScanSector
 
initCommand() - Method in class com.swath.cmd.SellShip
 
initCommand() - Method in class com.swath.cmd.SendCorporateMemo
 
initCommand() - Method in class com.swath.cmd.SendFedCommMessage
 
initCommand() - Method in class com.swath.cmd.SendMacro
 
initCommand() - Method in class com.swath.cmd.SendPrivateMessage
 
initCommand() - Method in class com.swath.cmd.SendSSRadioMessage
 
initCommand() - Method in class com.swath.cmd.SetAvoidedSectors
 
initCommand() - Method in class com.swath.cmd.SetNavPoint
 
initCommand() - Method in class com.swath.cmd.SetTextMode
 
initCommand() - Method in class com.swath.cmd.ShowDeployedFighters
 
initCommand() - Method in class com.swath.cmd.ShowDeployedMines
 
initCommand() - Method in class com.swath.cmd.ShowPersonalPlanets
 
initCommand() - Method in class com.swath.cmd.ShowWhoIsPlaying
 
initCommand() - Method in class com.swath.cmd.ShutOffTractorBeam
 
initCommand() - Method in class com.swath.cmd.Steal
 
initCommand() - Method in class com.swath.cmd.TakeLeaveColonists
 
initCommand() - Method in class com.swath.cmd.TakeLeaveCredits
 
initCommand() - Method in class com.swath.cmd.TakeLeaveFighters
 
initCommand() - Method in class com.swath.cmd.TakeLeaveProducts
 
initCommand() - Method in class com.swath.cmd.TakeLeaveShields
 
initCommand() - Method in class com.swath.cmd.TowShip
 
initCommand() - Method in class com.swath.cmd.Trade
 
initCommand() - Method in class com.swath.cmd.Transport
 
initCommand() - Method in class com.swath.cmd.TransWarp
 
initCommand() - Method in class com.swath.cmd.UpgradePlanet
 
initCommand() - Method in class com.swath.cmd.UpgradePort
 
initCommand() - Method in class com.swath.cmd.UserAlert
 
initCommand() - Method in class com.swath.cmd.UserChoice
 
initCommand() - Method in class com.swath.cmd.UserChoiceList
 
initCommand() - Method in class com.swath.cmd.UserInput
 
initCommand() - Method in class com.swath.cmd.VisualMap
 
initCommand() - Method in class com.swath.cmd.WaitForEvent
 
initCommand() - Method in class com.swath.cmd.WaitForPrompt
 
initCommand() - Method in class com.swath.cmd.WithdrawCredits
 
initCommand() - Method in class com.swath.UserDefinedCommand
Called by the framework to initialise the command.
You should override this method to make your own initialisation.
initCommand() - Method in class ExampleCommand1
 
initDaemon() - Method in class com.swath.UserDefinedDaemon
Called by the framework to initialise the daemon.
You should override this method to make your own initialisation.
initDaemon() - Method in class ExampleDaemon1
 
initHolds() - Method in class com.swath.ShipCategory
Gets the initial number of holds for the ship category.
initInstance() - Method in class com.swath.UserDefinedCommand
Initialises a command instance.
Should only be called from static exec() methods.
initInstance() - Method in class com.swath.UserDefinedScript
Initialises a script instance.
Should only be called from static exec() methods.
initScript() - Method in class com.swath.UserDefinedScript
Called by the framework to initialise the script.
You should override this method to make your own initialisation.
initScript() - Method in class ExampleScript1
 
initScript() - Method in class ExampleScript2
 
initScript() - Method in class ExampleScript3
 
initScript() - Method in class ExampleScript4
 
initScript() - Method in class ExampleScript5
 
initScript() - Method in class ExampleScript6
 
initScript() - Method in class ExampleScript7
 
initScript() - Method in class ExampleScript8
 
INTEGER - Static variable in class com.swath.Parameter
The integer value type.
INTEGER - Static variable in class com.swath.UserVariable
The integer value type.
isAvoided() - Method in class com.swath.Sector
Indicates if the sector is avoided or not.
isConnected() - Method in class com.swath.MainInfo
Indicates if SWATH is connected to a game server or not.
isCorporation() - Method in class com.swath.Identity
Indicates if the identity is a corporation or not.
isCorpPlanet() - Method in class com.swath.Planet
Indicates if the planet is corporate or personal.
isCorpShip() - Method in class com.swath.Ship
Indicates if the ship is corporate or personal.
isDockedAtPort() - Method in class com.swath.Ship
Indicates if the ship is docked at the port or not.
isDockedAtPort() - Method in class com.swath.Trader
Indicates if the trader is docked at the port or not.
isEmpty() - Method in class com.swath.Sector
Indicates if the sector is empty or not.
isEventClass(Class) - Method in interface com.swath.EventIfc
Indicates if this event matches a given event class.
isEventClass(Class) - Method in class com.swath.UserDefinedEvent
 
isFedSpace() - Method in class com.swath.Sector
Indicates if the sector is located in FedSpace or not.
isGoldGame() - Method in class com.swath.MainInfo
Indicates if the current TradeWars game is Gold enabled.
isHelperMode() - Method in class com.swath.MainInfo
Indicates if the SWATH helper mode is active or not.
isInterdictorActive() - Method in class com.swath.Planet
Indicates if the planet's Interdictor generator is active or not.
isInterdictorActive() - Method in class com.swath.Ship
Indicates if the ship's interdictor generator is active or not.
isInternal() - Method in class com.swath.cmd.Connect
 
isInternal() - Method in class com.swath.cmd.Disconnect
 
isInternal() - Method in class com.swath.cmd.MessageBox
 
isInternal() - Method in class com.swath.cmd.PrintText
 
isInternal() - Method in class com.swath.cmd.SetTextMode
 
isInternal() - Method in class com.swath.cmd.UserAlert
 
isInternal() - Method in class com.swath.cmd.UserChoice
 
isInternal() - Method in class com.swath.cmd.UserChoiceList
 
isInternal() - Method in class com.swath.cmd.UserInput
 
isInternal() - Method in class com.swath.cmd.VisualMap
 
isInternal() - Method in class com.swath.cmd.WaitForEvent
 
isInternal() - Method in interface com.swath.CommandIfc
Indicates if this is an internal SWATH command or not.
isInternal() - Method in class com.swath.UserDefinedCommand
 
isMBBSGame() - Method in class com.swath.MainInfo
Indicates if the current TradeWars game is MBBS enabled.
isOnline() - Method in class com.swath.Corporation
Indicates if some member of this corporation is currently online.
isOnline() - Method in class com.swath.Trader
Indicates if the trader is online or not.
isParsingText() - Method in class com.swath.MainInfo
Indicates if SWATH is parsing incoming text or not.
isProxyMode() - Method in class com.swath.MainInfo
Indicates if the proxy mode is active or not.
isRealPlayer() - Method in class com.swath.Identity
Indicates if this is a real player or a computer controlled trader.
isRealPlayer() - Method in class com.swath.Trader
Indicates if this is a real player or a computer controlled trader.
isStarDock() - Method in class com.swath.Sector
Indicates if the StarDock is located in this sector or not.
isTextOutputSuppressed() - Method in class com.swath.MainInfo
Indicates if text output is suppressed or not.
isTrader() - Method in class com.swath.Identity
Indicates if the identity is a trader or not.
isUnexplored() - Method in class com.swath.Sector
Indicates if the sector is unexplored or not.
isUnknown() - Method in class com.swath.Identity
Indicates if the identity is unknown or not.
isUserDefined() - Method in interface com.swath.CommandIfc
Indicates if this command is user defined or not.
isUserDefined() - Method in interface com.swath.EventIfc
Indicates if this event is user defined or not.
isUserDefined() - Method in class com.swath.UserDefinedCommand
 
isUserDefined() - Method in class com.swath.UserDefinedEvent
 
isValid() - Method in class com.swath.Parameter
Indicates if the parameter is valid or not.
isValid() - Method in class com.swath.UserVariable
Indicates if the user variable is valid or not.
isVisited() - Method in class com.swath.Sector
Indicates if the sector has been visited or not.
isYou() - Method in class com.swath.Identity
Indicates if this is you or not.
isYou() - Method in class com.swath.Trader
Indicates if this is you or not.
isYourCorporation() - Method in class com.swath.Corporation
Indicates if this is your corporation or not.
isYourCorporation() - Method in class com.swath.Identity
Indicates if this is your corporation or not.

J

JettisonCargo - Class in com.swath.cmd
Jettison all the cargo.

K

KILLED - Static variable in class com.swath.cmd.AttackTrader
The trader was killed and the ship is destroyed.

L

Land - Class in com.swath.cmd
Land on a planet in the current sector.
LandOnStarDock - Class in com.swath.cmd
Land on the StarDock.
lastPortUpdate() - Method in class com.swath.Sector
Gets the timestamp when the port information was last updated.
lastRobStealSector() - Method in class com.swath.MainInfo
Gets the last sector where you robbed or stole from the port.
lastSectorUpdate() - Method in class com.swath.Sector
Gets the timestamp when the sector information was last updated.
lastUpdate() - Method in class com.swath.Corporation
Gets the timestamp when the corporation information was last updated.
lastUpdate() - Method in class com.swath.Planet
Gets the timestamp when the planet information was last updated.
lastUpdate() - Method in class com.swath.Ship
Gets the timestamp when the ship information was last updated.
lastUpdate() - Method in class com.swath.Trader
Gets the timestamp when the trader information was last updated.
LaunchEtherProbe - Class in com.swath.cmd
Launch an ether probe.
LaunchGenesisTorpedo - Class in com.swath.cmd
Launch a genesis torpedo in the current sector.
LaunchMineDisruptor - Class in com.swath.cmd
Launch a mine disruptor into a sector.
LeaveCitadel - Class in com.swath.cmd
Leave the planet citadel.
LeaveComputer - Class in com.swath.cmd
Leave the ship computer.
LeaveCorporateMenu - Class in com.swath.cmd
Leave the corporate menu.
LeaveStarDock - Class in com.swath.cmd
Leave the StarDock.
leftStarDock() - Method in class com.swath.event.ShipLeftPort
Indicates if the ship left the StarDock or not.
level() - Method in class com.swath.Planet
Gets the current planet level: 0 = No citadel 1 = Citadel 2 = Combat computer 3 = Quasar Cannon 4 = TransWarp drive 5 = Shield generator 6 = Interdictor control
LiftOff - Class in com.swath.cmd
Lift off from the planet.
LIMPET - Static variable in class com.swath.cmd.DropTakeMines
Limpet mines.
LIMPET - Static variable in class com.swath.cmd.ShowDeployedMines
Limpet mines.
LIMPET_MINES - Static variable in class com.swath.cmd.BuyItems
The 'Limpet Tracking Mines' item type.
LimpetActivated - Class in com.swath.event
The LimpetActivated event.
limpetMines() - Method in class com.swath.Sector
Gets the number of limpet mines in the sector.
limpetMines() - Method in class com.swath.Ship
Gets the number of limpet mines on the ship.
limpetOwner() - Method in class com.swath.Sector
Gets the owner of the limpet mines in this sector.
LimpetWarning - Class in com.swath.event
The LimpetWarning event.
LONG - Static variable in class com.swath.cmd.ChangePersonalSettings
Long message display mode.
longRangeScanner() - Method in class com.swath.ShipCategory
Indicates if the ship category can have a Long range scanner or not.

M

main - Static variable in class com.swath.Swath
Get main game and SWATH information here.
mainDriveCost() - Method in class com.swath.ShipCategory
Gets the main drive cost for the ship category.
MainInfo - Class in com.swath
This class contains methods for accessing main game and SWATH information.
MakeAnnouncement - Class in com.swath.cmd
Make an announcement.
MARKER_BEACONS - Static variable in class com.swath.cmd.BuyItems
The 'Marker Beacons' item type.
maxAmounts() - Method in class com.swath.PlanetClass
Gets the maximum amount of products that the planet class can have for each product type (Fuel Ore, Organics and Equipment).
maxArmidMines() - Method in class com.swath.ShipCategory
Gets the maximum number of Armid mines for the ship category.
maxBeacons() - Method in class com.swath.ShipCategory
Gets the maximum number of Marker beacons for the ship category.
maxColonists() - Method in class com.swath.PlanetClass
Gets the maximum number of colonists that the planet can contain for each product type (Fuel Ore, Organics and Equipment).
maxFighters() - Method in class com.swath.PlanetClass
Gets the maximum amount of fighters that the planet can have.
maxFighters() - Method in class com.swath.ShipCategory
Gets the maximum number of fighters for the ship category.
maxFightersPerAttack() - Method in class com.swath.ShipCategory
Gets the maximum number of fighters per attack for the ship category.
maxGenesisTorpedos() - Method in class com.swath.ShipCategory
Gets the maximum number of Genesis torpedos for the ship category.
maxHolds() - Method in class com.swath.ShipCategory
Gets the maximum number of holds for the ship category.
maxShields() - Method in class com.swath.ShipCategory
Gets the maximum number of shields for the ship category.
MERCHENARY_FTRS - Static variable in class com.swath.Swath
The merchenary fighter type.
MessageBox - Class in com.swath.cmd
Display a message box to the user.
militaryLevel() - Method in class com.swath.Planet
Gets the current military reaction level (0-100%).
MINE_DISRUPTORS - Static variable in class com.swath.cmd.BuyItems
The 'Mine Disruptors' item type.
mineDisruptors() - Method in class com.swath.Ship
Gets the number of mine disruptors on the ship.
minTradePercentage() - Method in class com.swath.GameVariables
Gets the minimum trade percentage.
MOD_FLAG_ALT - Static variable in class com.swath.event.HotKeyPressed
The ALT modifier flag.
MOD_FLAG_ALT - Static variable in class com.swath.event.HotKeyReleased
The ALT modifier flag.
MOD_FLAG_CTRL - Static variable in class com.swath.event.HotKeyPressed
The CTRL modifier flag.
MOD_FLAG_CTRL - Static variable in class com.swath.event.HotKeyReleased
The CTRL modifier flag.
MOD_FLAG_SHIFT - Static variable in class com.swath.event.HotKeyPressed
The SHIFT modifier flag.
MOD_FLAG_SHIFT - Static variable in class com.swath.event.HotKeyReleased
The SHIFT modifier flag.
MODE_BLINK - Static variable in class com.swath.cmd.SetTextMode
Blink mode.
MODE_HIGHLIGHT - Static variable in class com.swath.cmd.SetTextMode
Highlight mode.
MODE_NORMAL - Static variable in class com.swath.cmd.SetTextMode
Normal mode.
Move - Class in com.swath.cmd
Move to another sector.
MoveColonists - Class in com.swath.cmd
Move colonists from one product to another on the current planet.
MoveToNavPoint - Class in com.swath.cmd
Move to a given NavPoint.

N

N_A - Static variable in class com.swath.Swath
Indicates 'N/A'.
name() - Method in class com.swath.Corporation
Gets the name of the corporation.
name() - Method in class com.swath.Planet
Gets the name of the planet.
name() - Method in class com.swath.PlanetClass
Gets the planet class name.
name() - Method in class com.swath.Ship
Gets the name of the ship.
name() - Method in class com.swath.Trader
Gets the name of the trader.
NAV_POINT_1 - Static variable in class com.swath.cmd.MoveToNavPoint
The first user NavPoint.
NAV_POINT_1 - Static variable in class com.swath.cmd.SetNavPoint
The first user NavPoint.
NAV_POINT_2 - Static variable in class com.swath.cmd.MoveToNavPoint
The second user NavPoint.
NAV_POINT_2 - Static variable in class com.swath.cmd.SetNavPoint
The second user NavPoint.
NAV_POINT_3 - Static variable in class com.swath.cmd.MoveToNavPoint
The third user NavPoint.
NAV_POINT_3 - Static variable in class com.swath.cmd.SetNavPoint
The third user NavPoint.
NAV_POINT_4 - Static variable in class com.swath.cmd.MoveToNavPoint
The fourth user NavPoint.
NAV_POINT_4 - Static variable in class com.swath.cmd.SetNavPoint
The fourth user NavPoint.
NAV_POINT_STARDOCK - Static variable in class com.swath.cmd.MoveToNavPoint
The 'StarDock' NavPoint.
NAV_POINT_TERRA - Static variable in class com.swath.cmd.MoveToNavPoint
The 'Terra' NavPoint.
navHaz() - Method in class com.swath.Sector
Gets the navigational hazard for the sector (0-100%).
NEUTRAL - Static variable in class com.swath.Swath
The trader/corp/sector is neutral to you.
NEW_LINE - Static variable in class com.swath.cmd.PrintText
The new line character (0x0A).
NO - Static variable in class com.swath.Swath
Indicates 'No'.
NO_ATTACK - Static variable in class com.swath.cmd.AttackPort
No attack was made for some reason.
NO_ATTACK - Static variable in class com.swath.cmd.AttackShip
No attack was made for some reason.
NO_ATTACK - Static variable in class com.swath.cmd.AttackTrader
No attack was made for some reason.
NO_CHANGE - Static variable in class com.swath.Swath
Indicates 'No change'.
NO_PORT - Static variable in class com.swath.Sector
There is no port in this sector.
NO_PROMPT - Static variable in class com.swath.Swath
No prompt.
NO_RADIO - Static variable in class com.swath.cmd.ChangePersonalSettings
No sub-space radio.
NO_TWD - Static variable in class com.swath.Ship
The ship has no TransWarp drive.
NONE - Static variable in class com.swath.Parameter
No value type.
NONE - Static variable in class com.swath.UserVariable
No value type.

O

OFF - Static variable in class com.swath.Swath
Indicates 'Off'.
OFFENSIVE_FTRS - Static variable in class com.swath.Swath
The offensive fighter type.
offensiveOdds() - Method in class com.swath.ShipCategory
Gets the offensive odds for the ship category.
ON - Static variable in class com.swath.Swath
Indicates 'On'.
ONE_SHIP_TW_DRIVE - Static variable in class com.swath.cmd.BuyItems
The 'One Ship TransWarp Drive' item type.
ONE_SHIP_TWD - Static variable in class com.swath.Ship
The ship has a TransWarp drive for one ship.
ONE_WAY - Static variable in class com.swath.Sector
Indicates a one way warp.
oneShipTransWarpRange() - Method in class com.swath.Ship
Gets the current range of a one ship TransWarp.
onEvent(EventIfc) - Method in class com.swath.UserDefinedCommand
This method is called for each posted event.
You can override this method to handle events.
onEvent(EventIfc) - Method in class com.swath.UserDefinedDaemon
This method is called for each posted event.
You can override this method to handle events.
onEvent(EventIfc) - Method in class com.swath.UserDefinedScript
This method is called for each posted event.
You can override this method to handle events.

You can execute commands during the event handling and they will all be executed in one sequence between normal script commands.
onEvent(EventIfc) - Method in class ExampleCommand1
 
onEvent(EventIfc) - Method in class ExampleDaemon1
 
onEvent(EventIfc) - Method in class ExampleScript8
 
oneWays() - Method in class com.swath.Sector
Indicates if a warp sector is one-way or not.
onPlanet() - Method in class com.swath.Ship
If the ship has landed on a planet, this method will return it.
onPlanet() - Method in class com.swath.Trader
If the trader has landed on a planet, this method will return it.
onText(String, String) - Method in class com.swath.UserDefinedCommand
This method is called when new text has arrived from the game server.
You can override this method to scan for incoming text.

The current text buffer contains both the previous text and the new text that just arrived.
onText(String, String) - Method in class com.swath.UserDefinedDaemon
This method is called when new text has arrived from the game server.
You can override this method to handle incoming text.
You must call setIncomingTextMode to enable this callback method.

The current text buffer contains both the previous text and the new text that just arrived.
onText(String, String) - Method in class com.swath.UserDefinedEvent
This method is called when new text has arrived from the game server.
You can override this method to handle incoming text.

Text will only be received during the WaitForEvent command.
onText(String, String) - Method in class ExampleCommand1
 
onText(String, String) - Method in class ExampleDaemon1
 
onText(String, String) - Method in class ExampleEvent1
 
onTimer(Date) - Method in class com.swath.UserDefinedDaemon
This method is called when the timer is triggered.
onTimer(Date) - Method in class ExampleDaemon1
 
optimalColonists() - Method in class com.swath.PlanetClass
Gets the optimal number of colonists for each product type (Fuel Ore, Organics and Equipment).
organics() - Method in class com.swath.Ship
Gets total number of holds with organics.
ORGANICS - Static variable in class com.swath.Swath
The index and identifier used for Organics.
owner() - Method in class com.swath.Planet
Gets the current planet owner.
owner() - Method in class com.swath.Ship
Gets the current owner of the ship.

P

Parameter - Class in com.swath
This class represents a parameter.
Parameter() - Constructor for class com.swath.Parameter
Constructor.
Parameter(String) - Constructor for class com.swath.Parameter
Constructor.
parseText(String, String) - Static method in class com.swath.Tools
Parses a text string using a given pattern.
partOfMajorSpaceLane() - Method in class com.swath.Sector
Indicates if the sector is part of a major space lane or not.
password() - Method in class com.swath.MainInfo
Gets the current game password.
PERSONAL - Static variable in class com.swath.Swath
The personal owner type.
PHOTON_MISSILES - Static variable in class com.swath.cmd.BuyItems
The 'Photon Missiles' item type.
photonMissiles() - Method in class com.swath.Ship
Gets the number of photon missiles on the ship.
photonMissiles() - Method in class com.swath.ShipCategory
Indicates if the ship category can have Photon missiles or not.
PhotonWave - Class in com.swath.event
The PhotonWave event.
Planet - Class in com.swath
This class represents a planet in TW.
PLANET_PROMPT - Static variable in class com.swath.Swath
The planet prompt.
PLANET_SCANNER - Static variable in class com.swath.cmd.BuyItems
The 'Planet Scanner' item type.
PlanetaryTrade - Class in com.swath.cmd
Negotiate a planetary trade agreement at the port in the current sector.
planetClass() - Method in class com.swath.Planet
Gets the planet class.
PlanetClass - Class in com.swath
This class represents a planet class in TW.
planets() - Method in class com.swath.Sector
Gets all the planets in the sector.
planetScanner() - Method in class com.swath.ShipCategory
Indicates if the ship category can have a Planet scanner or not.
PlanetTransport - Class in com.swath.cmd
Transport your ship to another sector using a planet transporter.
PlanetWarp - Class in com.swath.cmd
Warp the current planet to another sector.
playSoundFile(File) - Static method in class com.swath.Tools
Plays the sound from a given file.
playSoundFileAsync(File) - Static method in class com.swath.Tools
Plays the sound from a given file asynchronously.
playSoundURL(URL) - Static method in class com.swath.Tools
Plays the sound from a given URL.
playSoundURLAsync(URL) - Static method in class com.swath.Tools
Plays the sound from a given URL asynchronously.
PlotCourse - Class in com.swath.cmd
Plot the course between two sectors.
PODDED - Static variable in class com.swath.cmd.AttackTrader
The trader left the ship in an escape pod.
port() - Method in class com.swath.MainInfo
Gets the port number of the game server.
PORT_AVAILABLE - Static variable in class com.swath.Sector
There is a port in this sector, ready to use.
PORT_BLOCKED - Static variable in class com.swath.Sector
There seems to be a blocked port in this sector.
PORT_DESTROYED - Static variable in class com.swath.Sector
Warning, there is a destroyed port in this sector.
PORT_UNDER_CONSTRUCTION - Static variable in class com.swath.Sector
There is a port under construction in this sector.
portAmounts() - Method in class com.swath.Sector
Gets the amount of product available at the port for each product type (Fuel Ore, Organics and Equipment).
portClass() - Method in class com.swath.Sector
Gets the port class.
portConstructionStatus() - Method in class com.swath.Sector
Gets the current construction status of the port.
portDockingLog() - Method in class com.swath.Sector
Gets the name of the last ship that docked at the port.
portDockingTimestamp() - Method in class com.swath.Sector
Gets the timestamp when the last ship docked at the port.
portInfo() - Method in class com.swath.Sector
Gets the port buy/sell information for each product type (Fuel Ore, Organics and Equipment).
portMcicValues() - Method in class com.swath.Sector
Gets the port MCIC values for each product type (Fuel Ore, Organics and Equipment).
portName() - Method in class com.swath.Sector
Gets the name of the port in the sector.
portPercentages() - Method in class com.swath.Sector
Gets the amount of product available at the port in percentage of the maximal amount for each product type (Fuel Ore, Organics and Equipment).
PortReport - Class in com.swath.cmd
Get the current port report for a port.
PortSearchParameters() - Constructor for class com.swath.Tools.PortSearchParameters
 
portStatus() - Method in class com.swath.Sector
Gets the sector port status.
postEvent(UserDefinedEvent) - Static method in class com.swath.Swath
This method posts an event in the SWATH event queue.
postEvent(UserDefinedEvent) - Method in class com.swath.UserDefinedCommand
This method posts an event in the SWATH event queue.
postEvent(UserDefinedEvent) - Method in class com.swath.UserDefinedDaemon
This method posts an event in the SWATH event queue.
postEvent(UserDefinedEvent) - Method in class com.swath.UserDefinedScript
This method posts an event in the SWATH event queue.
PrintText - Class in com.swath.cmd
Print text in the terminal window.
printTrace(String) - Static method in class com.swath.Swath
Print trace text in the SWATH console window.
printTrace(Exception) - Static method in class com.swath.Swath
Print an exception and the complete stack trace in the SWATH console window.
printTrace(String) - Method in class com.swath.UserDefinedCommand
Print trace text in the SWATH console window.
printTrace(Exception) - Method in class com.swath.UserDefinedCommand
Print an exception and the complete stack trace in the SWATH console window.
printTrace(String) - Method in class com.swath.UserDefinedDaemon
Print trace text in the SWATH console window.
printTrace(Exception) - Method in class com.swath.UserDefinedDaemon
Print an exception and the complete stack trace in the SWATH console window.
printTrace(String) - Method in class com.swath.UserDefinedEvent
Print trace text in the SWATH console window.
printTrace(Exception) - Method in class com.swath.UserDefinedEvent
Print an exception and the complete stack trace in the SWATH console window.
printTrace(String) - Method in class com.swath.UserDefinedScript
Print trace text in the SWATH console window.
printTrace(Exception) - Method in class com.swath.UserDefinedScript
Print an exception and the complete stack trace in the SWATH console window.
PrivateMessage - Class in com.swath.event
The PrivateMessage event.
ProbeDestroyed - Class in com.swath.event
The ProbeDestroyed event.
ProbeEnteredSector - Class in com.swath.event
The ProbeEnteredSector event.
ProbeSelfDestructed - Class in com.swath.event
The ProbeSelfDestructed event.
productAmounts() - Method in class com.swath.Planet
Gets the amount of products for each product type on the planet (Fuel Ore, Organics and Equipment).
prompt() - Method in class com.swath.MainInfo
Gets the current prompt.
PSYCHIC_PROBE - Static variable in class com.swath.cmd.BuyItems
The 'Psychic Probe' item type.

Q

qcAtmosLevel() - Method in class com.swath.Planet
Gets the Quasar cannon atmospheric level (0-100%).
qcSectorLevel() - Method in class com.swath.Planet
Gets the Quasar cannon sector level (0-100%).
QuitTW - Class in com.swath.cmd
Quit a TradeWars game.

R

rank() - Method in class com.swath.Corporation
Gets the current rank of the corporation.
rank() - Method in class com.swath.Trader
Gets the current rank of the trader.
ReEnterTW - Class in com.swath.cmd
Exit and re-enter a TradeWars game.
RefreshInfo - Class in com.swath.cmd
Refresh game information about traders, corps, ships, planets, fighters and mines.
registerParam(Parameter) - Method in class com.swath.UserDefinedCommand
This method is used to register a command parameter.
registerParam(Parameter) - Method in class com.swath.UserDefinedScript
This method is used to register a script parameter.
relation() - Method in class com.swath.Corporation
Gets the current relation between you and this corporation.
relation() - Method in class com.swath.Trader
Gets the current relation between you and this trader.
ReleaseBeacon - Class in com.swath.cmd
Release a marker beacon in the current sector.
RemainOvernight - Class in com.swath.cmd
Remain in the citadel overnight.
removeChoice(int) - Method in class com.swath.Parameter
Removes a choice value.
repeatTurboCycle() - Method in class com.swath.UserDefinedScript
This method will repeat the recorded turbo cycle.
RES_ABORT - Static variable in class com.swath.cmd.MessageBox
Return value 'Abort'.
RES_CANCEL - Static variable in class com.swath.cmd.MessageBox
Return value 'Cancel'.
RES_IGNORE - Static variable in class com.swath.cmd.MessageBox
Return value 'Ignore'.
RES_NO - Static variable in class com.swath.cmd.MessageBox
Return value 'No'.
RES_OK - Static variable in class com.swath.cmd.MessageBox
Return value 'Ok'.
RES_RETRY - Static variable in class com.swath.cmd.MessageBox
Return value 'Retry'.
RES_YES - Static variable in class com.swath.cmd.MessageBox
Return value 'Yes'.
RETURN_KEY - Static variable in class com.swath.UserDefinedCommand
The return key character (0x0D).
Rob - Class in com.swath.cmd
Rob the port in the current sector.
robFactor() - Method in class com.swath.GameVariables
Deprecated.
Use the robMultiplier method instead.
robMinLevel() - Method in class com.swath.GameVariables
Gets the lowest amount of credits to rob.
robMultiplier() - Method in class com.swath.GameVariables
Gets the rob multiplier.
runScript() - Method in class com.swath.UserDefinedScript
Called by the framework to run the script.
You should override this method to define the script body.
runScript() - Method in class ExampleScript1
 
runScript() - Method in class ExampleScript2
 
runScript() - Method in class ExampleScript3
 
runScript() - Method in class ExampleScript4
 
runScript() - Method in class ExampleScript5
 
runScript() - Method in class ExampleScript6
 
runScript() - Method in class ExampleScript7
 
runScript() - Method in class ExampleScript8
 

S

ScanCurrentShip - Class in com.swath.cmd
Scans the current ship information.
ScanPlanets - Class in com.swath.cmd
Scan the planets in the current sector using the planet scanner.
ScanSector - Class in com.swath.cmd
Perform a long range scan in the current sector.
ScriptAborted - Class in com.swath.event
The ScriptAborted event.
ScriptException - Exception in com.swath
Script exception.
Thrown when the current script execution fails for some reason.
You can throw this exception from your own script.
ScriptException(String) - Constructor for exception com.swath.ScriptException
Constructor.
ScriptFinished - Class in com.swath.event
The ScriptFinished event.
sector() - Method in class com.swath.Planet
Gets the sector number where the planet is currently located.
Sector - Class in com.swath
This class represents a sector in TW.
sector() - Method in class com.swath.Sector
Gets the sector number.
sector() - Method in class com.swath.Ship
Gets the sector number where the ship is currently located.
sector - Static variable in class com.swath.Swath
Get the current sector information here.
sector() - Method in class com.swath.Trader
Gets the sector number where the trader is currently located.
sectorNote() - Method in class com.swath.Sector
Gets the sector note.
sectors() - Method in class com.swath.Bubble
Gets the bubble sectors.
sectors() - Method in class com.swath.MainInfo
Gets the total number of sectors in the database.
SectorSearchParameters() - Constructor for class com.swath.Tools.SectorSearchParameters
 
secure() - Method in class com.swath.Bubble
Indicates if the bubble is secure or not.
SELLING - Static variable in class com.swath.Sector
The port is selling this product.
SellShip - Class in com.swath.cmd
Sell a ship at the Shipyards on StarDock.
SendCorporateMemo - Class in com.swath.cmd
Send a memo to your corporation members.
SendFedCommMessage - Class in com.swath.cmd
Send a message on the Federation comm-link.
SendMacro - Class in com.swath.cmd
Send a macro to the TW server.
SendPrivateMessage - Class in com.swath.cmd
Send a private message to a trader.
SendSSRadioMessage - Class in com.swath.cmd
Send a message on the current sub-space radio band.
sendString(String) - Method in class com.swath.UserDefinedCommand
Sends a string to the TW server.
setAnomaly() - Method in class com.swath.Tools.SectorSearchParameters
Search for sectors with anomalies.
setArmidMines(boolean, int) - Method in class com.swath.Tools.SectorSearchParameters
Sets the minimum or maximum number of armid mines to search for.
setArmidOwner(Identity) - Method in class com.swath.Tools.SectorSearchParameters
Search for armid mines with a specific owner.
SetAvoidedSectors - Class in com.swath.cmd
Set new sectors to avoid.
setBackdoor() - Method in class com.swath.Tools.SectorSearchParameters
Search for sectors with backdoors.
setBeaconText(String) - Method in class com.swath.Tools.SectorSearchParameters
Sets the beacon text to search for.
setBoolean(boolean) - Method in class com.swath.Parameter
Sets a boolean value.
setBoolean(boolean) - Method in class com.swath.UserVariable
Sets a boolean value.
setBufferText(String) - Method in class com.swath.UserDefinedCommand
Sets the current text buffer content.
setBufferText(String) - Method in class com.swath.UserDefinedDaemon
Sets the current text buffer content.
setBufferText(String) - Method in class com.swath.UserDefinedEvent
Sets the current text buffer content.
setCurrentChoice(int) - Method in class com.swath.Parameter
Sets the current choice value.
setDensity(boolean, int) - Method in class com.swath.Tools.SectorSearchParameters
Sets the minimum or maximum sector density to search for.
setDouble(double) - Method in class com.swath.Parameter
Sets a double value.
setDouble(double) - Method in class com.swath.UserVariable
Sets a double value.
setDoubleRange(double, double) - Method in class com.swath.Parameter
Sets the double value range.
setErrorMsg(String) - Static method in class com.swath.Swath
Sets the current error message.
setErrorMsg(Throwable) - Static method in class com.swath.Swath
Sets the current error message.
setExplored() - Method in class com.swath.Tools.SectorSearchParameters
Search for sectors that are explored.
setFighterAmount(boolean, int) - Method in class com.swath.Tools.SectorSearchParameters
Sets the minimum or maximum number of fighters to search for.
setFighterOwner(Identity) - Method in class com.swath.Tools.SectorSearchParameters
Search for fighters with a specific owner.
setFighterType(int) - Method in class com.swath.Tools.SectorSearchParameters
Sets the type of fighters to search for.
setFriendly() - Method in class com.swath.Tools.SectorSearchParameters
Search for friendly sectors.
setHelpText(String) - Method in class com.swath.Parameter
Sets the help text for this parameter.
setHostile() - Method in class com.swath.Tools.SectorSearchParameters
Search for hostile sectors.
setInteger(int) - Method in class com.swath.Parameter
Sets an integer value.
setInteger(int) - Method in class com.swath.UserVariable
Sets an integer value.
setIntegerRange(int, int) - Method in class com.swath.Parameter
Sets the integer value range.
setLimpetMines(boolean, int) - Method in class com.swath.Tools.SectorSearchParameters
Sets the minimum or maximum number of limpet mines to search for.
setLimpetOwner(Identity) - Method in class com.swath.Tools.SectorSearchParameters
Search for limpet mines with a specific owner.
setMaxAmount(int, int) - Method in class com.swath.Tools.PortSearchParameters
Sets the maximum amount of a product to search for.
setMaxPercentage(int, int) - Method in class com.swath.Tools.PortSearchParameters
Sets the maximum percentage of a product to search for.
setMaxStringLength(int) - Method in class com.swath.Parameter
Sets the maximum string length.
setMinAmount(int, int) - Method in class com.swath.Tools.PortSearchParameters
Sets the minimum amount of a product to search for.
setMinPercentage(int, int) - Method in class com.swath.Tools.PortSearchParameters
Sets the minimum percentage of a product to search for.
setNavHaz(boolean, int) - Method in class com.swath.Tools.SectorSearchParameters
Sets the minimum or maximum navigational hazard to search for.
SetNavPoint - Class in com.swath.cmd
Set a user NavPoint.
setPlanets() - Method in class com.swath.Tools.SectorSearchParameters
Search for sectors with planets.
setPortName(String) - Method in class com.swath.Tools.SectorSearchParameters
Sets the port name to search for.
setPortOption(int, boolean) - Method in class com.swath.Tools.PortSearchParameters
Sets if the port should be buying or selling a specific product.
setPortType(int) - Method in class com.swath.Tools.SectorSearchParameters
Sets the port type to search for.
setResult(Object) - Method in class com.swath.UserDefinedCommand
Sets the result value that will be returned when the command is finished.
setSectorNote(String) - Method in class com.swath.Sector
Sets the sector note.
setSectorNote(String) - Method in class com.swath.Tools.SectorSearchParameters
Sets the sector note to search for.
setShips() - Method in class com.swath.Tools.SectorSearchParameters
Search for sectors with ships.
setSpaceName(String) - Method in class com.swath.Tools.SectorSearchParameters
Sets the space name to search for.
setString(String) - Method in class com.swath.Parameter
Sets a string value.
setString(String) - Method in class com.swath.UserVariable
Sets a string value.
setText(String) - Method in class com.swath.Parameter
Sets the text for this parameter.
SetTextMode - Class in com.swath.cmd
Set the current text mode.
setTimer(Date) - Method in class com.swath.UserDefinedDaemon
This method sets the timer.
setTimer(long) - Method in class com.swath.UserDefinedDaemon
This method sets the timer to the current time plus the delay.
setTraders() - Method in class com.swath.Tools.SectorSearchParameters
Search for sectors with traders.
setType(int) - Method in class com.swath.Parameter
Sets the type of this parameter.
setUnexplored() - Method in class com.swath.Tools.SectorSearchParameters
Search for sectors that are unexplored.
setUserDisplayValue(int, String, int, int) - Static method in class com.swath.Swath
Sets the user display value on the given row.
setUserVariable(String, UserVariable, boolean) - Static method in class com.swath.Swath
Sets a user variable.
setVisited() - Method in class com.swath.Tools.SectorSearchParameters
Search for sectors that you have visited.
setWarps(boolean, int) - Method in class com.swath.Tools.SectorSearchParameters
Sets the minimum or maximum number of warps to search for.
SHIELDS - Static variable in class com.swath.cmd.BuyItems
The 'Shields' item type.
shields() - Method in class com.swath.Planet
Gets the number of planetary shields.
shields() - Method in class com.swath.Ship
Gets the number of shields on the ship.
SHIELDS - Static variable in class com.swath.Swath
The index and identifier used for Shields.
Ship - Class in com.swath
This class represents a ship in TW.
ship - Static variable in class com.swath.Swath
Get your current ship information here.
ship() - Method in class com.swath.Trader
Gets the trader's current ship.
shipBaseCost() - Method in class com.swath.ShipCategory
Gets the ship base cost for the ship category.
shipCategory() - Method in class com.swath.Ship
Gets the ship category.
ShipCategory - Class in com.swath
This class represents a ship category in TW.
ShipDockedAtPort - Class in com.swath.event
The ShipDockedAtPort event.
ShipEnteredSector - Class in com.swath.event
The ShipEnteredSector event.
shipHullCost() - Method in class com.swath.ShipCategory
Gets the ship hull cost for the ship category.
ShipLandedOnPlanet - Class in com.swath.event
The ShipLandedOnPlanet event.
ShipLeftPlanet - Class in com.swath.event
The ShipLeftPlanet event.
ShipLeftPort - Class in com.swath.event
The ShipLeftPort event.
ShipLeftSector - Class in com.swath.event
The ShipLeftSector event.
ships() - Method in class com.swath.Sector
Gets all the unmanned ships in the sector.
ShowDeployedFighters - Class in com.swath.cmd
Show deployed fighters.
ShowDeployedMines - Class in com.swath.cmd
Show deployed mines.
ShowPersonalPlanets - Class in com.swath.cmd
Show personal planets.
showUserParamWindow(Panel, int, int) - Method in class com.swath.UserDefinedScript
Displays an AWT frame window for script parameter input.
showUserParamWindow(JPanel, int, int) - Method in class com.swath.UserDefinedScript
Displays a Swing frame window for script parameter input.
ShowWhoIsPlaying - Class in com.swath.cmd
Show who is currently playing.
ShutOffTractorBeam - Class in com.swath.cmd
Shut off the tractor beam.
size() - Method in class com.swath.Bubble
Gets the number of sectors behind the gate sector(s).
skipBufferText(int) - Method in class com.swath.UserDefinedCommand
Removes characters from the current text buffer.
skipBufferText(int) - Method in class com.swath.UserDefinedDaemon
Removes characters from the current text buffer.
skipBufferText(int) - Method in class com.swath.UserDefinedEvent
Removes characters from the current text buffer.
sleep(long) - Method in class com.swath.UserDefinedScript
Wait and sleep for a while.
SPACE - Static variable in class com.swath.cmd.ChangePersonalSettings
Space key abort display.
spaceName() - Method in class com.swath.Sector
Gets the name of the space that the sector occupies.
SSRadioMessage - Class in com.swath.event
The SSRadioMessage event.
stardock() - Method in class com.swath.MainInfo
Gets the StarDock location.
STARDOCK_PROMPT - Static variable in class com.swath.Swath
The StarDock prompt.
startCommand() - Method in class com.swath.UserDefinedCommand
Called by the framework to start executing the command.
You should override this method.

Normally you send some text to the TW server and then handle all incoming text and events using the methods onText and onEvent.
startCommand() - Method in class ExampleCommand1
 
status() - Method in class com.swath.Sector
Indicates if the sector is friendly, neutral or hostile to you.
Steal - Class in com.swath.cmd
Steal products from the port in the current sector.
stealDivisor() - Method in class com.swath.GameVariables
Gets the steal divisor.
stealFactor() - Method in class com.swath.GameVariables
Deprecated.
Use the stealDivisor method instead.
stealMinLevel() - Method in class com.swath.GameVariables
Gets the lowest amount of units to steal.
STRING - Static variable in class com.swath.Parameter
The string value type.
STRING - Static variable in class com.swath.UserVariable
The string value type.
Swath - Class in com.swath
This is the main SWATH class.
swathPath() - Method in class com.swath.MainInfo
Gets the path to the SWATH installation.
swathVersion() - Method in class com.swath.MainInfo
Gets the current SWATH version.

T

TakeLeaveColonists - Class in com.swath.cmd
Take or leave colonists on the current planet.
TakeLeaveCredits - Class in com.swath.cmd
Take or leave credits from/to the citadel treasury.
TakeLeaveFighters - Class in com.swath.cmd
Take or leave fighters on the current planet.
TakeLeaveProducts - Class in com.swath.cmd
Take and/or leave products on the current planet.
TakeLeaveShields - Class in com.swath.cmd
Take or leave shields from/to the planetary shield generator.
TextRange(int, int) - Constructor for class com.swath.Tools.TextRange
 
timeOnline() - Method in class com.swath.MainInfo
Returns how long time SWATH has been connected to the current game server.
TimeoutException - Exception in com.swath
Timeout exception.
Thrown when there is a timeout.
TimeoutException() - Constructor for exception com.swath.TimeoutException
 
TimeoutException(String) - Constructor for exception com.swath.TimeoutException
 
TOLL_FTRS - Static variable in class com.swath.Swath
The toll fighter type.
Tools - Class in com.swath
This class contains help functions that can be useful when writing scripts.
Tools.PortSearchParameters - Class in com.swath
This class contains parameters used when searching for ports and port pairs.
Tools.SectorSearchParameters - Class in com.swath
This class contains parameters used when searching for sectors.
Tools.TextRange - Class in com.swath
This class contains the start and end index for a text range.
toString() - Method in class com.swath.Bubble
 
toString() - Method in class com.swath.Corporation
 
toString() - Method in class com.swath.GameVariables
 
toString() - Method in class com.swath.Parameter
Returns a string representation of the parameter.
toString() - Method in class com.swath.Planet
 
toString() - Method in class com.swath.PlanetClass
 
toString() - Method in class com.swath.Sector
 
toString() - Method in class com.swath.Ship
 
toString() - Method in class com.swath.ShipCategory
 
toString() - Method in class com.swath.Tools.PortSearchParameters
 
toString() - Method in class com.swath.Tools.SectorSearchParameters
 
toString() - Method in class com.swath.Tools.TextRange
 
toString() - Method in class com.swath.Trader
 
toString() - Method in class com.swath.UserVariable
Returns a string representation of the user variable.
towingShip() - Method in class com.swath.Ship
Indicates if the ship is towing another ship or not.
TowShip - Class in com.swath.cmd
Tow a ship in the current sector.
Trade - Class in com.swath.cmd
Trade at the port in the current sector.
tradeFactor() - Method in class com.swath.GameVariables
Gets the trade factor.
tradeInitBuy() - Method in class com.swath.GameVariables
Gets the initial buy percentage.
tradeInitSell() - Method in class com.swath.GameVariables
Gets the initial sell percentage.
tradeInitWorst() - Method in class com.swath.GameVariables
Gets the initial worst percentage.
Trader - Class in com.swath
This class represents a trader in TW.
TraderClearedBust - Class in com.swath.event
The TraderClearedBust event.
TraderEnteredGame - Class in com.swath.event
The TraderEnteredGame event.
TraderIsAttacking - Class in com.swath.event
The TraderIsAttacking event.
TraderLeftGame - Class in com.swath.event
The TraderLeftGame event.
TraderPaidToll - Class in com.swath.event
The TraderPaidToll event.
TraderPowersUpWeapons - Class in com.swath.event
The TraderPowersUpWeapons event.
TraderRetreated - Class in com.swath.event
The TraderRetreated event.
traders() - Method in class com.swath.Sector
Gets all the traders in the sector.
TradeWarsMessage - Class in com.swath.event
The TradeWarsMessage event.
Transport - Class in com.swath.cmd
Transport to another ship.
transportRange() - Method in class com.swath.Planet
Gets the current planet transporter range.
transportRange() - Method in class com.swath.ShipCategory
Gets the range of the transporter for the ship category.
TransWarp - Class in com.swath.cmd
TransWarp your ship to another sector.
transWarpDrive() - Method in class com.swath.Ship
Indicates if the ship has a TransWarp drive or not and gets the type of TransWarp drive if the ship has one.
transWarpDrive() - Method in class com.swath.ShipCategory
Indicates if the ship category can have a TransWarp drive or not.
treasury() - Method in class com.swath.Planet
Gets the amount of credits in the planet treasury.
turns() - Method in class com.swath.Trader
Gets the number of turns that the trader has left.
turns2warp() - Method in class com.swath.Ship
Gets the current number of turns the ship needs to warp.
turnsPerWarp() - Method in class com.swath.ShipCategory
Gets the number of turns per warp for the ship category.
TWO_SHIP_TW_DRIVE - Static variable in class com.swath.cmd.BuyItems
The 'Two Ship TransWarp Drive' item type.
TWO_SHIP_TWD - Static variable in class com.swath.Ship
The ship has a TransWarp drive for two ships.
twoShipTransWarpRange() - Method in class com.swath.Ship
Gets the current range of a two ship TransWarp.
type() - Method in class com.swath.Bubble
Gets the bubble type.
type() - Method in class com.swath.Planet
Gets the planet class type.
type() - Method in class com.swath.PlanetClass
Gets the planet class type.
type() - Method in class com.swath.Ship
Gets the type of the ship.
type() - Method in class com.swath.ShipCategory
Gets the ship type.
TYPE_ABORT_RETRY_IGNORE - Static variable in class com.swath.cmd.MessageBox
'Abort-Retry-Ignore' message box.
TYPE_ATMOSPHERIC - Static variable in class com.swath.cmd.ChangeQuasarCannonLevel
Atmospheric quasar control.
TYPE_BLACK_HOLE - Static variable in class com.swath.Bubble
This is a black hole.
TYPE_DEAD_END - Static variable in class com.swath.Bubble
This is a dead end/tunnel.
TYPE_ERROR - Static variable in class com.swath.cmd.UserAlert
User error alert.
TYPE_INFORMATION - Static variable in class com.swath.cmd.UserAlert
User information alert.
TYPE_NORMAL - Static variable in class com.swath.Bubble
This is a normal bubble.
TYPE_OK - Static variable in class com.swath.cmd.MessageBox
'Ok' message box.
TYPE_OK_CANCEL - Static variable in class com.swath.cmd.MessageBox
'Ok-Cancel' message box.
TYPE_RETRY_CANCEL - Static variable in class com.swath.cmd.MessageBox
'Retry-Cancel' message box.
TYPE_SECTOR - Static variable in class com.swath.cmd.ChangeQuasarCannonLevel
Sector quasar control.
TYPE_WARNING - Static variable in class com.swath.cmd.UserAlert
User warning alert.
TYPE_YES_NO - Static variable in class com.swath.cmd.MessageBox
'Yes-No' message box.
TYPE_YES_NO_CANCEL - Static variable in class com.swath.cmd.MessageBox
'Yes-No-Cancel' message box.

U

UNKNOWN - Static variable in class com.swath.Swath
Indicates 'Unknown'.
upgradeAmountsNeeded() - Method in class com.swath.Planet
Gets the upgrade amount for each product type and the number of colonists needed for upgrading the planet to the next level.
UpgradePlanet - Class in com.swath.cmd
Upgrades the current planet to the next level if possible.
UpgradePort - Class in com.swath.cmd
Upgrades the port in the current sector.
upgradeStatus() - Method in class com.swath.Planet
Gets the current upgrade status of the planet.
user() - Method in class com.swath.Ship
Gets the current user of the ship.
UserAbortException - Exception in com.swath
User abort exception.
Thrown if the user aborted the current script/command.
UserAbortException() - Constructor for exception com.swath.UserAbortException
 
UserAbortException(String) - Constructor for exception com.swath.UserAbortException
 
UserAlert - Class in com.swath.cmd
Display a user alert window to the user and print the text in the SWATH console window.
userAlert(String, int) - Static method in class com.swath.Swath
Display a user alert window to the user and print the text in the SWATH console window.
UserButtonPressed - Class in com.swath.event
The UserButtonPressed event.
UserChoice - Class in com.swath.cmd
Ask the user to choose between some options in a dialog box.
UserChoiceList - Class in com.swath.cmd
Ask the user to choose an item from a list in a dialog box.
UserDefinedCommand - Class in com.swath
User Defined Command base class.
UserDefinedCommand() - Constructor for class com.swath.UserDefinedCommand
Constructor.
UserDefinedDaemon - Class in com.swath
User Defined Daemon base class.
UserDefinedDaemon() - Constructor for class com.swath.UserDefinedDaemon
Constructor.
UserDefinedEvent - Class in com.swath
User Defined Event base class.
UserDefinedEvent() - Constructor for class com.swath.UserDefinedEvent
Constructor.
UserDefinedScript - Class in com.swath
User Defined Script base class.
UserDefinedScript() - Constructor for class com.swath.UserDefinedScript
Constructor.
UserInput - Class in com.swath.cmd
Ask the user to input a text string using a dialog box.
username() - Method in class com.swath.MainInfo
Gets the current game username.
UserVariable - Class in com.swath
This class represents a user variable.
UserVariable() - Constructor for class com.swath.UserVariable
Constructor.

V

VisualMap - Class in com.swath.cmd
Control the Visual Map.

W

WaitForEvent - Class in com.swath.cmd
Wait for specific event(s).
WaitForPrompt - Class in com.swath.cmd
Wait for specific TW prompt(s).
warps() - Method in class com.swath.Sector
Gets the number of warps from this sector.
warpSectors() - Method in class com.swath.Sector
Gets the sectors you can warp to from this sector.
wasEncrypted() - Method in class com.swath.event.FedCommMessage
Indicates if the message was encrypted or not.
wasEncrypted() - Method in class com.swath.event.PrivateMessage
Indicates if the message was encrypted or not.
wasEncrypted() - Method in class com.swath.event.SSRadioMessage
Indicates if the message was encrypted or not.
WITH_YOU - Static variable in class com.swath.Swath
The trader/corp is playing together with you.
WithdrawCredits - Class in com.swath.cmd
Withdraw credits from your bank account.

Y

YES - Static variable in class com.swath.Swath
Indicates 'Yes'.
you - Static variable in class com.swath.Swath
Get your own trader information here.
YouAreBusted - Class in com.swath.event
The YouAreBusted event.
YouDestroyedProbe - Class in com.swath.event
The YouDestroyedProbe event.
YouEnteredGame - Class in com.swath.event
The YouEnteredGame event.
YouEnteredSector - Class in com.swath.event
The YouEnteredSector event.
YouLeftGame - Class in com.swath.event
The YouLeftGame event.
A B C D E F G H I J K L M N O P Q R S T U V W Y 
Skip navigation links