soc.util
Class SOCRobotParameters
java.lang.Object
soc.util.SOCRobotParameters
- public class SOCRobotParameters
- extends java.lang.Object
This is a class to store a list of robot parameters.
I put it in soc.util because the SOCServer and the
SOCDBHelper needed to use it, but I didn't think
they should have to include the soc.robot package.
- Author:
- Robert S. Thomas
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
maxGameLength
protected int maxGameLength
maxETA
protected int maxETA
etaBonusFactor
protected float etaBonusFactor
adversarialFactor
protected float adversarialFactor
leaderAdversarialFactor
protected float leaderAdversarialFactor
devCardMultiplier
protected float devCardMultiplier
threatMultiplier
protected float threatMultiplier
strategyType
protected int strategyType
tradeFlag
protected int tradeFlag
SOCRobotParameters
public SOCRobotParameters(int mgl,
int me,
float ebf,
float af,
float laf,
float dcm,
float tm,
int st,
int tf)
- constructor
- Parameters:
mgl
- the max game lengthme
- the max etaebf
- the eta bonus factoraf
- the adversarial factorlaf
- the leader adversarial factordcm
- the dev card multipliertm
- the threat multiplierst
- the strategy typetf
- the trade flag
SOCRobotParameters
public SOCRobotParameters(SOCRobotParameters params)
- constructor
- Parameters:
params
- the robot parameters
getMaxGameLength
public int getMaxGameLength()
- Returns:
- maxGameLength
getMaxETA
public int getMaxETA()
- Returns:
- maxETA
getETABonusFactor
public float getETABonusFactor()
- Returns:
- etaBonusFactor
getAdversarialFactor
public float getAdversarialFactor()
- Returns:
- adversarialFactor
getLeaderAdversarialFactor
public float getLeaderAdversarialFactor()
- Returns:
- leaderAdversarialFactor
getDevCardMultiplier
public float getDevCardMultiplier()
- Returns:
- devCardMultiplier
getThreatMultiplier
public float getThreatMultiplier()
- Returns:
- threatMultiplier
getStrategyType
public int getStrategyType()
- Returns:
- strategyType
getTradeFlag
public int getTradeFlag()
- Returns:
- tradeFlag
toString
public java.lang.String toString()
- Returns:
- a human readable form of the data