XmlUnitTemplate

public class XmlUnitTemplate extends XmlTemplate

Java class for UnitTemplate complex type.

The following schema fragment specifies the expected content contained within this class.

<complexType name="UnitTemplate">
  <complexContent>
    <extension base="{}Template">
      <sequence>
        <element name="baseHealth" type="{http://www.w3.org/2001/XMLSchema}int"/>
        <element name="baseAttack" type="{http://www.w3.org/2001/XMLSchema}int"/>
        <element name="piercingAttack" type="{http://www.w3.org/2001/XMLSchema}int"/>
        <element name="range" type="{http://www.w3.org/2001/XMLSchema}int"/>
        <element name="armor" type="{http://www.w3.org/2001/XMLSchema}int"/>
        <element name="sightRange" type="{http://www.w3.org/2001/XMLSchema}int"/>
        <element name="canGather" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
        <element name="canBuild" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
        <element name="canMove" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
        <element name="canAcceptGold" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
        <element name="canAcceptWood" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
        <element name="foodProvided" type="{http://www.w3.org/2001/XMLSchema}int"/>
        <element name="character" type="{http://www.w3.org/2001/XMLSchema}short"/>
        <element name="goldGatherRate" type="{http://www.w3.org/2001/XMLSchema}int"/>
        <element name="woodGatherRate" type="{http://www.w3.org/2001/XMLSchema}int"/>
        <element name="durationGatherWood" type="{http://www.w3.org/2001/XMLSchema}int"/>
        <element name="durationGatherGold" type="{http://www.w3.org/2001/XMLSchema}int"/>
        <element name="durationMove" type="{http://www.w3.org/2001/XMLSchema}int"/>
        <element name="durationAttack" type="{http://www.w3.org/2001/XMLSchema}int"/>
        <element name="durationDeposit" type="{http://www.w3.org/2001/XMLSchema}int"/>
        <sequence maxOccurs="unbounded" minOccurs="0">
          <element name="produces" type="{http://www.w3.org/2001/XMLSchema}int"/>
        </sequence>
      </sequence>
    </extension>
  </complexContent>
</complexType>

Fields

armor

protected int armor

baseAttack

protected int baseAttack

baseHealth

protected int baseHealth

canAcceptGold

protected boolean canAcceptGold

canAcceptWood

protected boolean canAcceptWood

canBuild

protected boolean canBuild

canGather

protected boolean canGather

canMove

protected boolean canMove

character

protected short character

durationAttack

protected int durationAttack

durationDeposit

protected int durationDeposit

durationGatherGold

protected int durationGatherGold

durationGatherWood

protected int durationGatherWood

durationMove

protected int durationMove

foodProvided

protected int foodProvided

goldGatherRate

protected int goldGatherRate

piercingAttack

protected int piercingAttack

produces

protected List<Integer> produces

range

protected int range

sightRange

protected int sightRange

woodGatherRate

protected int woodGatherRate

Methods

getArmor

public int getArmor()

Gets the value of the armor property.

getBaseAttack

public int getBaseAttack()

Gets the value of the baseAttack property.

getBaseHealth

public int getBaseHealth()

Gets the value of the baseHealth property.

getCharacter

public short getCharacter()

Gets the value of the character property.

getDurationAttack

public int getDurationAttack()

Gets the value of the durationAttack property.

getDurationDeposit

public int getDurationDeposit()

Gets the value of the durationDeposit property.

getDurationGatherGold

public int getDurationGatherGold()

Gets the value of the durationGatherGold property.

getDurationGatherWood

public int getDurationGatherWood()

Gets the value of the durationGatherWood property.

getDurationMove

public int getDurationMove()

Gets the value of the durationMove property.

getFoodProvided

public int getFoodProvided()

Gets the value of the foodProvided property.

getGoldGatherRate

public int getGoldGatherRate()

Gets the value of the goldGatherRate property.

getPiercingAttack

public int getPiercingAttack()

Gets the value of the piercingAttack property.

getProduces

public List<Integer> getProduces()

Gets the value of the produces property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the produces property.

For example, to add a new item, do as follows:

getProduces().add(newItem);

Objects of the following type(s) are allowed in the list Integer

getRange

public int getRange()

Gets the value of the range property.

getSightRange

public int getSightRange()

Gets the value of the sightRange property.

getWoodGatherRate

public int getWoodGatherRate()

Gets the value of the woodGatherRate property.

isCanAcceptGold

public boolean isCanAcceptGold()

Gets the value of the canAcceptGold property.

isCanAcceptWood

public boolean isCanAcceptWood()

Gets the value of the canAcceptWood property.

isCanBuild

public boolean isCanBuild()

Gets the value of the canBuild property.

isCanGather

public boolean isCanGather()

Gets the value of the canGather property.

isCanMove

public boolean isCanMove()

Gets the value of the canMove property.

setArmor

public void setArmor(int value)

Sets the value of the armor property.

setBaseAttack

public void setBaseAttack(int value)

Sets the value of the baseAttack property.

setBaseHealth

public void setBaseHealth(int value)

Sets the value of the baseHealth property.

setCanAcceptGold

public void setCanAcceptGold(boolean value)

Sets the value of the canAcceptGold property.

setCanAcceptWood

public void setCanAcceptWood(boolean value)

Sets the value of the canAcceptWood property.

setCanBuild

public void setCanBuild(boolean value)

Sets the value of the canBuild property.

setCanGather

public void setCanGather(boolean value)

Sets the value of the canGather property.

setCanMove

public void setCanMove(boolean value)

Sets the value of the canMove property.

setCharacter

public void setCharacter(short value)

Sets the value of the character property.

setDurationAttack

public void setDurationAttack(int value)

Sets the value of the durationAttack property.

setDurationDeposit

public void setDurationDeposit(int value)

Sets the value of the durationDeposit property.

setDurationGatherGold

public void setDurationGatherGold(int value)

Sets the value of the durationGatherGold property.

setDurationGatherWood

public void setDurationGatherWood(int value)

Sets the value of the durationGatherWood property.

setDurationMove

public void setDurationMove(int value)

Sets the value of the durationMove property.

setFoodProvided

public void setFoodProvided(int value)

Sets the value of the foodProvided property.

setGoldGatherRate

public void setGoldGatherRate(int value)

Sets the value of the goldGatherRate property.

setPiercingAttack

public void setPiercingAttack(int value)

Sets the value of the piercingAttack property.

setRange

public void setRange(int value)

Sets the value of the range property.

setSightRange

public void setSightRange(int value)

Sets the value of the sightRange property.

setWoodGatherRate

public void setWoodGatherRate(int value)

Sets the value of the woodGatherRate property.