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¶
Methods¶
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.
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
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.
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.