games.strategy.triplea.oddsCalculator.zengland
Class OCUnit
java.lang.Object
games.strategy.triplea.oddsCalculator.zengland.OCUnit
public class OCUnit
- extends java.lang.Object
|
Constructor Summary |
OCUnit(int cost,
int attackValue,
int defendValue,
int moveValue,
java.lang.String name,
boolean noRetaliationHit,
int unitType,
boolean supportShot,
boolean canHitAir)
|
OCUnit(int cost,
int attackValue,
int defendValue,
int moveValue,
java.lang.String name,
boolean noRetaliationHit,
int unitType,
boolean supportShot,
boolean canHitAir,
int maxHits,
int maxRolls,
int maxHp,
boolean blocksNoRetHit,
boolean boostsInfAtt,
boolean boostAmphib)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LANDUNIT
public static final int LANDUNIT
- See Also:
- Constant Field Values
AIRUNIT
public static final int AIRUNIT
- See Also:
- Constant Field Values
SEAUNIT
public static final int SEAUNIT
- See Also:
- Constant Field Values
AAUNIT
public static final int AAUNIT
- See Also:
- Constant Field Values
OCUnit
public OCUnit(int cost,
int attackValue,
int defendValue,
int moveValue,
java.lang.String name,
boolean noRetaliationHit,
int unitType,
boolean supportShot,
boolean canHitAir,
int maxHits,
int maxRolls,
int maxHp,
boolean blocksNoRetHit,
boolean boostsInfAtt,
boolean boostAmphib)
OCUnit
public OCUnit(int cost,
int attackValue,
int defendValue,
int moveValue,
java.lang.String name,
boolean noRetaliationHit,
int unitType,
boolean supportShot,
boolean canHitAir)
isBoostAmphib
public boolean isBoostAmphib()
setBoostAmphib
public void setBoostAmphib(boolean boostAmphib)
isBoostsInfAtt
public boolean isBoostsInfAtt()
setBoostsInfAtt
public void setBoostsInfAtt(boolean boostsInfAtt)
isBlockNoRetalHit
public boolean isBlockNoRetalHit()
setBlockNoRetalHit
public void setBlockNoRetalHit(boolean blockNoRetalHit)
getHp
public int getHp()
setHp
public void setHp(int hp)
getMaxHP
public int getMaxHP()
setMaxHP
public void setMaxHP(int maxHP)
getMaxHits
public int getMaxHits()
setMaxHits
public void setMaxHits(int maxHits)
getMaxRolls
public int getMaxRolls()
setMaxRolls
public void setMaxRolls(int maxRolls)
isCanHitAir
public boolean isCanHitAir()
setCanHitAir
public void setCanHitAir(boolean canHitAir)
newBB
public static OCUnit newBB()
newTwoHitBB
public static OCUnit newTwoHitBB()
newAC
public static OCUnit newAC()
newSub
public static OCUnit newSub()
newTrn
public static OCUnit newTrn()
newIC
public static OCUnit newIC()
newArm
public static OCUnit newArm()
newInf
public static OCUnit newInf()
newAA
public static OCUnit newAA()
newFighter
public static OCUnit newFighter()
newBomber
public static OCUnit newBomber()
newHeavyBomber
public static OCUnit newHeavyBomber()
newRevisedHeavyBomber
public static OCUnit newRevisedHeavyBomber()
newDestroyer
public static OCUnit newDestroyer()
newRtl
public static OCUnit newRtl()
getName
public java.lang.String getName()
setName
public void setName(java.lang.String name)
getAttackValue
public int getAttackValue()
setAttackValue
public void setAttackValue(int attackValue)
getCost
public int getCost()
setCost
public void setCost(int cost)
getDefendValue
public int getDefendValue()
setDefendValue
public void setDefendValue(int defendValue)
getMoveValue
public int getMoveValue()
setMoveValue
public void setMoveValue(int moveValue)
isNoRetaliationHit
public boolean isNoRetaliationHit()
setNoRetaliationHit
public void setNoRetaliationHit(boolean noRetaliationHit)
getUnitType
public int getUnitType()
setUnitType
public void setUnitType(int unitType)
roll
public int roll(int hitAt)
isSupportShot
public boolean isSupportShot()
setSupportShot
public void setSupportShot(boolean supportShot)
rollAttack
public int rollAttack()
rollDefend
public int rollDefend()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
main
public static void main(java.lang.String[] args)