com.swath
Class GameVariables

java.lang.Object
  extended by com.swath.Info
      extended by com.swath.GameVariables

public final class GameVariables
extends Info

This class contains methods for accessing the game variables.

Since:
SWATH 1.9.5
See Also:
MainInfo.gameVariables()

Method Summary
 int minTradePercentage()
          Gets the minimum trade percentage.
 double robFactor()
          Gets the rob factor.
 int robMinLevel()
          Gets the lowest amount of credits to rob.
 double stealFactor()
          Gets the steal factor.
 int stealMinLevel()
          Gets the lowest amount of units to steal.
 java.lang.String toString()
           
 int tradeFactor()
          Gets the trade factor.
 int tradeInitBuy()
          Gets the initial buy percentage.
 int tradeInitSell()
          Gets the initial sell percentage.
 int tradeInitWorst()
          Gets the initial worst percentage.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

robFactor

public double robFactor()
                 throws java.lang.Exception
Gets the rob factor. The rob factor is used to calculate the amount of credits that can be robbed safely from a port. Credits to rob = Rob factor * Experience.

Returns:
The rob factor.
Throws:
java.lang.Exception
Since:
SWATH 1.9.5

robMinLevel

public int robMinLevel()
                throws java.lang.Exception
Gets the lowest amount of credits to rob.

Returns:
The minimum rob level.
Throws:
java.lang.Exception
Since:
SWATH 1.9.5

stealFactor

public double stealFactor()
                   throws java.lang.Exception
Gets the steal factor. The steal factor is used to calculate the number of units that can be stolen safely from a port. Units to steal = Experience / Steal factor.

Returns:
The steal factor.
Throws:
java.lang.Exception
Since:
SWATH 1.9.5

stealMinLevel

public int stealMinLevel()
                  throws java.lang.Exception
Gets the lowest amount of units to steal.

Returns:
The minimum steal level.
Throws:
java.lang.Exception
Since:
SWATH 1.9.5

tradeInitBuy

public int tradeInitBuy()
                 throws java.lang.Exception
Gets the initial buy percentage. Used to calculate the first offer when buying something at a port using the best price haggle mode. Your first offer will be the port's first offer multiplied with this percentage.

Returns:
The initial buy percentage.
Throws:
java.lang.Exception
Since:
SWATH 1.9.5

tradeInitSell

public int tradeInitSell()
                  throws java.lang.Exception
Gets the initial sell percentage. Used to calculate the first offer when selling something at a port using the best price haggle mode. Your first offer will be the port's first offer multiplied with this percentage.

Returns:
The initial sell percentage.
Throws:
java.lang.Exception
Since:
SWATH 1.9.5

tradeInitWorst

public int tradeInitWorst()
                   throws java.lang.Exception
Gets the initial worst percentage. Used to calculate the first offer when buying something at a port using the worst price haggle mode. Your first offer will be the port's first offer multiplied with this percentage.

Returns:
The initial worst percentage.
Throws:
java.lang.Exception
Since:
SWATH 1.9.5

tradeFactor

public int tradeFactor()
                throws java.lang.Exception
Gets the trade factor. The trade factor is used to calculate the amount of credits to adjust your last offer with when you haggle at a port.

Returns:
The trade factor.
Throws:
java.lang.Exception
Since:
SWATH 1.9.5

minTradePercentage

public int minTradePercentage()
                       throws java.lang.Exception
Gets the minimum trade percentage. Defines how low the products at a port should be traded down (in percentage).

Returns:
The minimum trade percentage.
Throws:
java.lang.Exception
Since:
SWATH 1.9.5