games.strategy.triplea.oddsCalculator.zengland
Class OCUnit

java.lang.Object
  extended by games.strategy.triplea.oddsCalculator.zengland.OCUnit

public class OCUnit
extends java.lang.Object


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

Field Detail

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
Constructor Detail

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)
Method Detail

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)