mirror of
https://github.com/Rogiel/l2jserver2
synced 2025-12-06 07:32:46 +00:00
Fixes issue loading teleportation templates
This commit is contained in:
@@ -5,33 +5,9 @@
|
||||
This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-b10
|
||||
See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
|
||||
Any modifications to this file will be lost upon recompilation of the source schema.
|
||||
Generated on: 2012.03.25 at 01:03:28 PM BRT
|
||||
Generated on: 2012.05.03 at 07:58:30 PM BRT
|
||||
|
||||
-->
|
||||
<jaxb:bindings scd="x-schema::tns" xmlns:tns="http://schemas.l2jserver2.com/item">
|
||||
<jaxb:schemaBindings map="false">
|
||||
<jaxb:package name="com.l2jserver.model.template"/>
|
||||
</jaxb:schemaBindings>
|
||||
<jaxb:bindings scd="tns:item">
|
||||
<jaxb:class ref="com.l2jserver.model.template.ItemTemplate"/>
|
||||
</jaxb:bindings>
|
||||
</jaxb:bindings>
|
||||
<jaxb:bindings scd="x-schema::tns" xmlns:tns="http://schemas.l2jserver2.com/npc">
|
||||
<jaxb:schemaBindings map="false">
|
||||
<jaxb:package name="com.l2jserver.model.template"/>
|
||||
</jaxb:schemaBindings>
|
||||
<jaxb:bindings scd="tns:npc">
|
||||
<jaxb:class ref="com.l2jserver.model.template.NPCTemplate"/>
|
||||
</jaxb:bindings>
|
||||
</jaxb:bindings>
|
||||
<jaxb:bindings scd="x-schema::tns" xmlns:tns="http://schemas.l2jserver2.com/teleport">
|
||||
<jaxb:schemaBindings map="false">
|
||||
<jaxb:package name="com.l2jserver.model.template"/>
|
||||
</jaxb:schemaBindings>
|
||||
<jaxb:bindings scd="tns:teleports">
|
||||
<jaxb:class ref="com.l2jserver.model.template.Teleports"/>
|
||||
</jaxb:bindings>
|
||||
</jaxb:bindings>
|
||||
<jaxb:bindings scd="x-schema::">
|
||||
<jaxb:schemaBindings map="false">
|
||||
<jaxb:package name="com.l2jserver.model.template"/>
|
||||
@@ -43,7 +19,7 @@ Generated on: 2012.03.25 at 01:03:28 PM BRT
|
||||
<jaxb:class ref="com.l2jserver.model.template.AbstractTemplate"/>
|
||||
</jaxb:bindings>
|
||||
<jaxb:bindings scd="~Coordinate">
|
||||
<jaxb:class ref="com.l2jserver.model.template.Coordinate"/>
|
||||
<jaxb:class ref="com.l2jserver.model.template.TemplateCoordinate"/>
|
||||
</jaxb:bindings>
|
||||
<jaxb:bindings scd="~ActorTemplate">
|
||||
<jaxb:class ref="com.l2jserver.model.template.ActorTemplate"/>
|
||||
@@ -52,6 +28,14 @@ Generated on: 2012.03.25 at 01:03:28 PM BRT
|
||||
<jaxb:class ref="com.l2jserver.model.template.CalculatorFunctionOperation"/>
|
||||
</jaxb:bindings>
|
||||
</jaxb:bindings>
|
||||
<jaxb:bindings scd="x-schema::tns" xmlns:tns="http://schemas.l2jserver2.com/npc">
|
||||
<jaxb:schemaBindings map="false">
|
||||
<jaxb:package name="com.l2jserver.model.template"/>
|
||||
</jaxb:schemaBindings>
|
||||
<jaxb:bindings scd="tns:npc">
|
||||
<jaxb:class ref="com.l2jserver.model.template.NPCTemplate"/>
|
||||
</jaxb:bindings>
|
||||
</jaxb:bindings>
|
||||
<jaxb:bindings scd="x-schema::tns" xmlns:tns="http://schemas.l2jserver2.com/character">
|
||||
<jaxb:schemaBindings map="false">
|
||||
<jaxb:package name="com.l2jserver.model.template"/>
|
||||
@@ -60,14 +44,6 @@ Generated on: 2012.03.25 at 01:03:28 PM BRT
|
||||
<jaxb:class ref="com.l2jserver.model.template.CharacterTemplate"/>
|
||||
</jaxb:bindings>
|
||||
</jaxb:bindings>
|
||||
<jaxb:bindings scd="x-schema::tns" xmlns:tns="http://schemas.l2jserver2.com/skill">
|
||||
<jaxb:schemaBindings map="false">
|
||||
<jaxb:package name="com.l2jserver.model.template"/>
|
||||
</jaxb:schemaBindings>
|
||||
<jaxb:bindings scd="tns:skill">
|
||||
<jaxb:class ref="com.l2jserver.model.template.SkillTemplate"/>
|
||||
</jaxb:bindings>
|
||||
</jaxb:bindings>
|
||||
<jaxb:bindings scd="x-schema::tns" xmlns:tns="zones">
|
||||
<jaxb:schemaBindings map="false">
|
||||
<jaxb:package name="com.l2jserver.model.template"/>
|
||||
@@ -79,5 +55,32 @@ Generated on: 2012.03.25 at 01:03:28 PM BRT
|
||||
<jaxb:class ref="com.l2jserver.model.template.ZoneType"/>
|
||||
</jaxb:bindings>
|
||||
</jaxb:bindings>
|
||||
<jaxb:bindings scd="x-schema::tns" xmlns:tns="http://schemas.l2jserver2.com/item">
|
||||
<jaxb:schemaBindings map="false">
|
||||
<jaxb:package name="com.l2jserver.model.template"/>
|
||||
</jaxb:schemaBindings>
|
||||
<jaxb:bindings scd="tns:item">
|
||||
<jaxb:class ref="com.l2jserver.model.template.ItemTemplate"/>
|
||||
</jaxb:bindings>
|
||||
</jaxb:bindings>
|
||||
<jaxb:bindings scd="x-schema::tns" xmlns:tns="http://schemas.l2jserver2.com/skill">
|
||||
<jaxb:schemaBindings map="false">
|
||||
<jaxb:package name="com.l2jserver.model.template"/>
|
||||
</jaxb:schemaBindings>
|
||||
<jaxb:bindings scd="tns:skill">
|
||||
<jaxb:class ref="com.l2jserver.model.template.SkillTemplate"/>
|
||||
</jaxb:bindings>
|
||||
</jaxb:bindings>
|
||||
<jaxb:bindings scd="x-schema::tns" xmlns:tns="http://schemas.l2jserver2.com/teleport">
|
||||
<jaxb:schemaBindings map="false">
|
||||
<jaxb:package name="com.l2jserver.model.template"/>
|
||||
</jaxb:schemaBindings>
|
||||
<jaxb:bindings scd="~tns:TeleportationTemplate">
|
||||
<jaxb:class ref="com.l2jserver.model.template.TeleportationTemplate"/>
|
||||
</jaxb:bindings>
|
||||
<jaxb:bindings scd="tns:teleports">
|
||||
<jaxb:class ref="com.l2jserver.model.template.Teleports"/>
|
||||
</jaxb:bindings>
|
||||
</jaxb:bindings>
|
||||
</jaxb:bindings>
|
||||
|
||||
|
||||
@@ -2,9 +2,10 @@
|
||||
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-b10
|
||||
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
|
||||
// Any modifications to this file will be lost upon recompilation of the source schema.
|
||||
// Generated on: 2012.03.25 at 01:03:28 PM BRT
|
||||
// Generated on: 2012.05.03 at 07:58:30 PM BRT
|
||||
//
|
||||
|
||||
|
||||
package com.l2jserver.model.template;
|
||||
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
@@ -12,13 +13,11 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlSeeAlso;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Java class for AbstractTemplate complex type.
|
||||
* <p>Java class for AbstractTemplate complex type.
|
||||
*
|
||||
* <p>
|
||||
* The following schema fragment specifies the expected content contained within
|
||||
* this class.
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType name="AbstractTemplate">
|
||||
@@ -35,8 +34,15 @@ import javax.xml.bind.annotation.XmlType;
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "AbstractTemplate")
|
||||
@XmlSeeAlso({ ItemTemplate.class, ActorTemplate.class, SkillTemplate.class,
|
||||
com.l2jserver.model.template.Teleports.Teleport.class })
|
||||
public abstract class AbstractTemplate implements Template {
|
||||
@XmlSeeAlso({
|
||||
ItemTemplate.class,
|
||||
ActorTemplate.class,
|
||||
SkillTemplate.class,
|
||||
TeleportationTemplate.class
|
||||
})
|
||||
public abstract class AbstractTemplate
|
||||
implements Template
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -2,9 +2,10 @@
|
||||
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-b10
|
||||
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
|
||||
// Any modifications to this file will be lost upon recompilation of the source schema.
|
||||
// Generated on: 2012.03.25 at 01:03:28 PM BRT
|
||||
// Generated on: 2012.05.03 at 07:58:30 PM BRT
|
||||
//
|
||||
|
||||
|
||||
package com.l2jserver.model.template;
|
||||
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
@@ -12,13 +13,11 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlSeeAlso;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Java class for ActorTemplate complex type.
|
||||
* <p>Java class for ActorTemplate complex type.
|
||||
*
|
||||
* <p>
|
||||
* The following schema fragment specifies the expected content contained within
|
||||
* this class.
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType name="ActorTemplate">
|
||||
@@ -33,7 +32,13 @@ import javax.xml.bind.annotation.XmlType;
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "ActorTemplate")
|
||||
@XmlSeeAlso({ CharacterTemplate.class, NPCTemplate.class })
|
||||
public abstract class ActorTemplate extends AbstractTemplate {
|
||||
@XmlSeeAlso({
|
||||
CharacterTemplate.class,
|
||||
NPCTemplate.class
|
||||
})
|
||||
public abstract class ActorTemplate
|
||||
extends AbstractTemplate
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -2,22 +2,21 @@
|
||||
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-b10
|
||||
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
|
||||
// Any modifications to this file will be lost upon recompilation of the source schema.
|
||||
// Generated on: 2012.03.25 at 01:03:28 PM BRT
|
||||
// Generated on: 2012.05.03 at 07:58:30 PM BRT
|
||||
//
|
||||
|
||||
|
||||
package com.l2jserver.model.template;
|
||||
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Java class for CalculatorFunction complex type.
|
||||
* <p>Java class for CalculatorFunction complex type.
|
||||
*
|
||||
* <p>
|
||||
* The following schema fragment specifies the expected content contained within
|
||||
* this class.
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType name="CalculatorFunction">
|
||||
@@ -37,97 +36,113 @@ import javax.xml.bind.annotation.XmlType;
|
||||
*
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "CalculatorFunction", propOrder = { "set", "add", "subtract",
|
||||
"random" })
|
||||
@XmlType(name = "CalculatorFunction", propOrder = {
|
||||
"set",
|
||||
"add",
|
||||
"subtract",
|
||||
"random"
|
||||
})
|
||||
public class CalculatorFunction {
|
||||
|
||||
protected CalculatorFunctionOperation set;
|
||||
protected CalculatorFunctionOperation add;
|
||||
protected CalculatorFunctionOperation subtract;
|
||||
protected CalculatorFunctionOperation random;
|
||||
protected CalculatorFunctionOperation set;
|
||||
protected CalculatorFunctionOperation add;
|
||||
protected CalculatorFunctionOperation subtract;
|
||||
protected CalculatorFunctionOperation random;
|
||||
|
||||
/**
|
||||
* Gets the value of the set property.
|
||||
*
|
||||
* @return possible object is {@link CalculatorFunctionOperation }
|
||||
*
|
||||
*/
|
||||
public CalculatorFunctionOperation getSet() {
|
||||
return set;
|
||||
}
|
||||
/**
|
||||
* Gets the value of the set property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link CalculatorFunctionOperation }
|
||||
*
|
||||
*/
|
||||
public CalculatorFunctionOperation getSet() {
|
||||
return set;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the set property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is {@link CalculatorFunctionOperation }
|
||||
*
|
||||
*/
|
||||
public void setSet(CalculatorFunctionOperation value) {
|
||||
this.set = value;
|
||||
}
|
||||
/**
|
||||
* Sets the value of the set property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link CalculatorFunctionOperation }
|
||||
*
|
||||
*/
|
||||
public void setSet(CalculatorFunctionOperation value) {
|
||||
this.set = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the add property.
|
||||
*
|
||||
* @return possible object is {@link CalculatorFunctionOperation }
|
||||
*
|
||||
*/
|
||||
public CalculatorFunctionOperation getAdd() {
|
||||
return add;
|
||||
}
|
||||
/**
|
||||
* Gets the value of the add property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link CalculatorFunctionOperation }
|
||||
*
|
||||
*/
|
||||
public CalculatorFunctionOperation getAdd() {
|
||||
return add;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the add property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is {@link CalculatorFunctionOperation }
|
||||
*
|
||||
*/
|
||||
public void setAdd(CalculatorFunctionOperation value) {
|
||||
this.add = value;
|
||||
}
|
||||
/**
|
||||
* Sets the value of the add property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link CalculatorFunctionOperation }
|
||||
*
|
||||
*/
|
||||
public void setAdd(CalculatorFunctionOperation value) {
|
||||
this.add = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the subtract property.
|
||||
*
|
||||
* @return possible object is {@link CalculatorFunctionOperation }
|
||||
*
|
||||
*/
|
||||
public CalculatorFunctionOperation getSubtract() {
|
||||
return subtract;
|
||||
}
|
||||
/**
|
||||
* Gets the value of the subtract property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link CalculatorFunctionOperation }
|
||||
*
|
||||
*/
|
||||
public CalculatorFunctionOperation getSubtract() {
|
||||
return subtract;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the subtract property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is {@link CalculatorFunctionOperation }
|
||||
*
|
||||
*/
|
||||
public void setSubtract(CalculatorFunctionOperation value) {
|
||||
this.subtract = value;
|
||||
}
|
||||
/**
|
||||
* Sets the value of the subtract property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link CalculatorFunctionOperation }
|
||||
*
|
||||
*/
|
||||
public void setSubtract(CalculatorFunctionOperation value) {
|
||||
this.subtract = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the random property.
|
||||
*
|
||||
* @return possible object is {@link CalculatorFunctionOperation }
|
||||
*
|
||||
*/
|
||||
public CalculatorFunctionOperation getRandom() {
|
||||
return random;
|
||||
}
|
||||
/**
|
||||
* Gets the value of the random property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link CalculatorFunctionOperation }
|
||||
*
|
||||
*/
|
||||
public CalculatorFunctionOperation getRandom() {
|
||||
return random;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the random property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is {@link CalculatorFunctionOperation }
|
||||
*
|
||||
*/
|
||||
public void setRandom(CalculatorFunctionOperation value) {
|
||||
this.random = value;
|
||||
}
|
||||
/**
|
||||
* Sets the value of the random property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link CalculatorFunctionOperation }
|
||||
*
|
||||
*/
|
||||
public void setRandom(CalculatorFunctionOperation value) {
|
||||
this.random = value;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -2,25 +2,23 @@
|
||||
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-b10
|
||||
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
|
||||
// Any modifications to this file will be lost upon recompilation of the source schema.
|
||||
// Generated on: 2012.03.25 at 01:03:28 PM BRT
|
||||
// Generated on: 2012.05.03 at 07:58:30 PM BRT
|
||||
//
|
||||
|
||||
|
||||
package com.l2jserver.model.template;
|
||||
|
||||
import java.math.BigInteger;
|
||||
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Java class for CalculatorFunctionOperation complex type.
|
||||
* <p>Java class for CalculatorFunctionOperation complex type.
|
||||
*
|
||||
* <p>
|
||||
* The following schema fragment specifies the expected content contained within
|
||||
* this class.
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType name="CalculatorFunctionOperation">
|
||||
@@ -39,46 +37,49 @@ import javax.xml.bind.annotation.XmlType;
|
||||
@XmlType(name = "CalculatorFunctionOperation")
|
||||
public class CalculatorFunctionOperation {
|
||||
|
||||
@XmlAttribute(name = "order", required = true)
|
||||
protected BigInteger order;
|
||||
@XmlAttribute(name = "value", required = true)
|
||||
protected double value;
|
||||
@XmlAttribute(name = "order", required = true)
|
||||
protected BigInteger order;
|
||||
@XmlAttribute(name = "value", required = true)
|
||||
protected double value;
|
||||
|
||||
/**
|
||||
* Gets the value of the order property.
|
||||
*
|
||||
* @return possible object is {@link BigInteger }
|
||||
*
|
||||
*/
|
||||
public BigInteger getOrder() {
|
||||
return order;
|
||||
}
|
||||
/**
|
||||
* Gets the value of the order property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link BigInteger }
|
||||
*
|
||||
*/
|
||||
public BigInteger getOrder() {
|
||||
return order;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the order property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is {@link BigInteger }
|
||||
*
|
||||
*/
|
||||
public void setOrder(BigInteger value) {
|
||||
this.order = value;
|
||||
}
|
||||
/**
|
||||
* Sets the value of the order property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link BigInteger }
|
||||
*
|
||||
*/
|
||||
public void setOrder(BigInteger value) {
|
||||
this.order = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the value property.
|
||||
*
|
||||
*/
|
||||
public double getValue() {
|
||||
return value;
|
||||
}
|
||||
/**
|
||||
* Gets the value of the value property.
|
||||
*
|
||||
*/
|
||||
public double getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the value property.
|
||||
*
|
||||
*/
|
||||
public void setValue(double value) {
|
||||
this.value = value;
|
||||
}
|
||||
/**
|
||||
* Sets the value of the value property.
|
||||
*
|
||||
*/
|
||||
public void setValue(double value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -2,529 +2,534 @@
|
||||
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-b10
|
||||
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
|
||||
// Any modifications to this file will be lost upon recompilation of the source schema.
|
||||
// Generated on: 2012.03.25 at 01:03:28 PM BRT
|
||||
// Generated on: 2012.05.03 at 07:58:30 PM BRT
|
||||
//
|
||||
|
||||
|
||||
package com.l2jserver.model.template;
|
||||
|
||||
import javax.xml.bind.annotation.XmlRegistry;
|
||||
|
||||
|
||||
/**
|
||||
* This object contains factory methods for each Java content interface and Java
|
||||
* element interface generated in the com.l2jserver.model.template package.
|
||||
* <p>
|
||||
* An ObjectFactory allows you to programatically construct new instances of the
|
||||
* Java representation for XML content. The Java representation of XML content
|
||||
* can consist of schema derived interfaces and classes representing the binding
|
||||
* of schema type definitions, element declarations and model groups. Factory
|
||||
* methods for each of these are provided in this class.
|
||||
* This object contains factory methods for each
|
||||
* Java content interface and Java element interface
|
||||
* generated in the com.l2jserver.model.template package.
|
||||
* <p>An ObjectFactory allows you to programatically
|
||||
* construct new instances of the Java representation
|
||||
* for XML content. The Java representation of XML
|
||||
* content can consist of schema derived interfaces
|
||||
* and classes representing the binding of schema
|
||||
* type definitions, element declarations and model
|
||||
* groups. Factory methods for each of these are
|
||||
* provided in this class.
|
||||
*
|
||||
*/
|
||||
@XmlRegistry
|
||||
public class ObjectFactory {
|
||||
|
||||
/**
|
||||
* Create a new ObjectFactory that can be used to create new instances of
|
||||
* schema derived classes for package: com.l2jserver.model.template
|
||||
*
|
||||
*/
|
||||
public ObjectFactory() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate createNPCTemplate() {
|
||||
return new NPCTemplate();
|
||||
}
|
||||
/**
|
||||
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.l2jserver.model.template
|
||||
*
|
||||
*/
|
||||
public ObjectFactory() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Droplist }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Droplist createNPCTemplateDroplist() {
|
||||
return new NPCTemplate.Droplist();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate createNPCTemplate() {
|
||||
return new NPCTemplate();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Droplist.Item }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Droplist.Item createNPCTemplateDroplistItem() {
|
||||
return new NPCTemplate.Droplist.Item();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Droplist }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Droplist createNPCTemplateDroplist() {
|
||||
return new NPCTemplate.Droplist();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link Teleports }
|
||||
*
|
||||
*/
|
||||
public Teleports createTeleports() {
|
||||
return new Teleports();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Droplist.Item }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Droplist.Item createNPCTemplateDroplistItem() {
|
||||
return new NPCTemplate.Droplist.Item();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link Zones }
|
||||
*
|
||||
*/
|
||||
public Zones createZones() {
|
||||
return new Zones();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link Zones }
|
||||
*
|
||||
*/
|
||||
public Zones createZones() {
|
||||
return new Zones();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link ZoneType }
|
||||
*
|
||||
*/
|
||||
public ZoneType createZoneType() {
|
||||
return new ZoneType();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link ZoneType }
|
||||
*
|
||||
*/
|
||||
public ZoneType createZoneType() {
|
||||
return new ZoneType();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link Zones.Castle }
|
||||
*
|
||||
*/
|
||||
public Zones.Castle createZonesCastle() {
|
||||
return new Zones.Castle();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link Zones.Castle }
|
||||
*
|
||||
*/
|
||||
public Zones.Castle createZonesCastle() {
|
||||
return new Zones.Castle();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link Teleports.Teleport }
|
||||
*
|
||||
*/
|
||||
public Teleports.Teleport createTeleportsTeleport() {
|
||||
return new Teleports.Teleport();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link TeleportationTemplate }
|
||||
*
|
||||
*/
|
||||
public TeleportationTemplate createTeleportationTemplate() {
|
||||
return new TeleportationTemplate();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Skills }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Skills createNPCTemplateSkills() {
|
||||
return new NPCTemplate.Skills();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Skills }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Skills createNPCTemplateSkills() {
|
||||
return new NPCTemplate.Skills();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Talk }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Talk createNPCTemplateTalk() {
|
||||
return new NPCTemplate.Talk();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Talk }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Talk createNPCTemplateTalk() {
|
||||
return new NPCTemplate.Talk();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Info }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Info createNPCTemplateInfo() {
|
||||
return new NPCTemplate.Info();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Info }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Info createNPCTemplateInfo() {
|
||||
return new NPCTemplate.Info();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Info.Stats }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Info.Stats createNPCTemplateInfoStats() {
|
||||
return new NPCTemplate.Info.Stats();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Info.Stats }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Info.Stats createNPCTemplateInfoStats() {
|
||||
return new NPCTemplate.Info.Stats();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Info.Stats.Defense }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Info.Stats.Defense createNPCTemplateInfoStatsDefense() {
|
||||
return new NPCTemplate.Info.Stats.Defense();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Info.Stats.Defense }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Info.Stats.Defense createNPCTemplateInfoStatsDefense() {
|
||||
return new NPCTemplate.Info.Stats.Defense();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Info.Stats.Attack }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Info.Stats.Attack createNPCTemplateInfoStatsAttack() {
|
||||
return new NPCTemplate.Info.Stats.Attack();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Info.Stats.Attack }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Info.Stats.Attack createNPCTemplateInfoStatsAttack() {
|
||||
return new NPCTemplate.Info.Stats.Attack();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link ItemTemplate }
|
||||
*
|
||||
*/
|
||||
public ItemTemplate createItemTemplate() {
|
||||
return new ItemTemplate();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link ItemTemplate }
|
||||
*
|
||||
*/
|
||||
public ItemTemplate createItemTemplate() {
|
||||
return new ItemTemplate();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link ItemTemplate.Armor }
|
||||
*
|
||||
*/
|
||||
public ItemTemplate.Armor createItemTemplateArmor() {
|
||||
return new ItemTemplate.Armor();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link ItemTemplate.Armor }
|
||||
*
|
||||
*/
|
||||
public ItemTemplate.Armor createItemTemplateArmor() {
|
||||
return new ItemTemplate.Armor();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link ItemTemplate.Attributes }
|
||||
*
|
||||
*/
|
||||
public ItemTemplate.Attributes createItemTemplateAttributes() {
|
||||
return new ItemTemplate.Attributes();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link ItemTemplate.Attributes }
|
||||
*
|
||||
*/
|
||||
public ItemTemplate.Attributes createItemTemplateAttributes() {
|
||||
return new ItemTemplate.Attributes();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link CharacterTemplate }
|
||||
*
|
||||
*/
|
||||
public CharacterTemplate createCharacterTemplate() {
|
||||
return new CharacterTemplate();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link CharacterTemplate }
|
||||
*
|
||||
*/
|
||||
public CharacterTemplate createCharacterTemplate() {
|
||||
return new CharacterTemplate();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link CharacterTemplate.Collision }
|
||||
*
|
||||
*/
|
||||
public CharacterTemplate.Collision createCharacterTemplateCollision() {
|
||||
return new CharacterTemplate.Collision();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link CharacterTemplate.Collision }
|
||||
*
|
||||
*/
|
||||
public CharacterTemplate.Collision createCharacterTemplateCollision() {
|
||||
return new CharacterTemplate.Collision();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link CharacterTemplate.Stats }
|
||||
*
|
||||
*/
|
||||
public CharacterTemplate.Stats createCharacterTemplateStats() {
|
||||
return new CharacterTemplate.Stats();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link CharacterTemplate.Stats }
|
||||
*
|
||||
*/
|
||||
public CharacterTemplate.Stats createCharacterTemplateStats() {
|
||||
return new CharacterTemplate.Stats();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link CharacterTemplate.Stats.Defense }
|
||||
*
|
||||
*/
|
||||
public CharacterTemplate.Stats.Defense createCharacterTemplateStatsDefense() {
|
||||
return new CharacterTemplate.Stats.Defense();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link CharacterTemplate.Stats.Defense }
|
||||
*
|
||||
*/
|
||||
public CharacterTemplate.Stats.Defense createCharacterTemplateStatsDefense() {
|
||||
return new CharacterTemplate.Stats.Defense();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link CharacterTemplate.Stats.Attack }
|
||||
*
|
||||
*/
|
||||
public CharacterTemplate.Stats.Attack createCharacterTemplateStatsAttack() {
|
||||
return new CharacterTemplate.Stats.Attack();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link CharacterTemplate.Stats.Attack }
|
||||
*
|
||||
*/
|
||||
public CharacterTemplate.Stats.Attack createCharacterTemplateStatsAttack() {
|
||||
return new CharacterTemplate.Stats.Attack();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link CalculatorFunction }
|
||||
*
|
||||
*/
|
||||
public CalculatorFunction createCalculatorFunction() {
|
||||
return new CalculatorFunction();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link CalculatorFunction }
|
||||
*
|
||||
*/
|
||||
public CalculatorFunction createCalculatorFunction() {
|
||||
return new CalculatorFunction();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link Coordinate }
|
||||
*
|
||||
*/
|
||||
public Coordinate createCoordinate() {
|
||||
return new Coordinate();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link TemplateCoordinate }
|
||||
*
|
||||
*/
|
||||
public TemplateCoordinate createTemplateCoordinate() {
|
||||
return new TemplateCoordinate();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link CalculatorFunctionOperation }
|
||||
*
|
||||
*/
|
||||
public CalculatorFunctionOperation createCalculatorFunctionOperation() {
|
||||
return new CalculatorFunctionOperation();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link CalculatorFunctionOperation }
|
||||
*
|
||||
*/
|
||||
public CalculatorFunctionOperation createCalculatorFunctionOperation() {
|
||||
return new CalculatorFunctionOperation();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link SkillTemplate }
|
||||
*
|
||||
*/
|
||||
public SkillTemplate createSkillTemplate() {
|
||||
return new SkillTemplate();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link SkillTemplate }
|
||||
*
|
||||
*/
|
||||
public SkillTemplate createSkillTemplate() {
|
||||
return new SkillTemplate();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link ZoneType.Point }
|
||||
*
|
||||
*/
|
||||
public ZoneType.Point createZoneTypePoint() {
|
||||
return new ZoneType.Point();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link Teleports }
|
||||
*
|
||||
*/
|
||||
public Teleports createTeleports() {
|
||||
return new Teleports();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link Zones.Castle.Siege }
|
||||
*
|
||||
*/
|
||||
public Zones.Castle.Siege createZonesCastleSiege() {
|
||||
return new Zones.Castle.Siege();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link ZoneType.Point }
|
||||
*
|
||||
*/
|
||||
public ZoneType.Point createZoneTypePoint() {
|
||||
return new ZoneType.Point();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link Teleports.Teleport.Restrictions }
|
||||
*
|
||||
*/
|
||||
public Teleports.Teleport.Restrictions createTeleportsTeleportRestrictions() {
|
||||
return new Teleports.Teleport.Restrictions();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link Zones.Castle.Siege }
|
||||
*
|
||||
*/
|
||||
public Zones.Castle.Siege createZonesCastleSiege() {
|
||||
return new Zones.Castle.Siege();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Ai }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Ai createNPCTemplateAi() {
|
||||
return new NPCTemplate.Ai();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link TeleportationTemplate.Restrictions }
|
||||
*
|
||||
*/
|
||||
public TeleportationTemplate.Restrictions createTeleportationTemplateRestrictions() {
|
||||
return new TeleportationTemplate.Restrictions();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Skills.Skill }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Skills.Skill createNPCTemplateSkillsSkill() {
|
||||
return new NPCTemplate.Skills.Skill();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Ai }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Ai createNPCTemplateAi() {
|
||||
return new NPCTemplate.Ai();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Talk.Chat }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Talk.Chat createNPCTemplateTalkChat() {
|
||||
return new NPCTemplate.Talk.Chat();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Skills.Skill }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Skills.Skill createNPCTemplateSkillsSkill() {
|
||||
return new NPCTemplate.Skills.Skill();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Info.Name }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Info.Name createNPCTemplateInfoName() {
|
||||
return new NPCTemplate.Info.Name();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Talk.Chat }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Talk.Chat createNPCTemplateTalkChat() {
|
||||
return new NPCTemplate.Talk.Chat();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Info.Title }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Info.Title createNPCTemplateInfoTitle() {
|
||||
return new NPCTemplate.Info.Title();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Info.Name }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Info.Name createNPCTemplateInfoName() {
|
||||
return new NPCTemplate.Info.Name();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Info.Item }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Info.Item createNPCTemplateInfoItem() {
|
||||
return new NPCTemplate.Info.Item();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Info.Title }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Info.Title createNPCTemplateInfoTitle() {
|
||||
return new NPCTemplate.Info.Title();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Info.Collision }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Info.Collision createNPCTemplateInfoCollision() {
|
||||
return new NPCTemplate.Info.Collision();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Info.Item }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Info.Item createNPCTemplateInfoItem() {
|
||||
return new NPCTemplate.Info.Item();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Info.Stats.Hp }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Info.Stats.Hp createNPCTemplateInfoStatsHp() {
|
||||
return new NPCTemplate.Info.Stats.Hp();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Info.Collision }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Info.Collision createNPCTemplateInfoCollision() {
|
||||
return new NPCTemplate.Info.Collision();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Info.Stats.Mp }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Info.Stats.Mp createNPCTemplateInfoStatsMp() {
|
||||
return new NPCTemplate.Info.Stats.Mp();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Info.Stats.Hp }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Info.Stats.Hp createNPCTemplateInfoStatsHp() {
|
||||
return new NPCTemplate.Info.Stats.Hp();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Info.Stats.Move }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Info.Stats.Move createNPCTemplateInfoStatsMove() {
|
||||
return new NPCTemplate.Info.Stats.Move();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Info.Stats.Mp }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Info.Stats.Mp createNPCTemplateInfoStatsMp() {
|
||||
return new NPCTemplate.Info.Stats.Mp();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Info.Stats.Base }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Info.Stats.Base createNPCTemplateInfoStatsBase() {
|
||||
return new NPCTemplate.Info.Stats.Base();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Info.Stats.Move }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Info.Stats.Move createNPCTemplateInfoStatsMove() {
|
||||
return new NPCTemplate.Info.Stats.Move();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Info.Stats.Defense.Physical }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Info.Stats.Defense.Physical createNPCTemplateInfoStatsDefensePhysical() {
|
||||
return new NPCTemplate.Info.Stats.Defense.Physical();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Info.Stats.Base }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Info.Stats.Base createNPCTemplateInfoStatsBase() {
|
||||
return new NPCTemplate.Info.Stats.Base();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Info.Stats.Defense.Magical }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Info.Stats.Defense.Magical createNPCTemplateInfoStatsDefenseMagical() {
|
||||
return new NPCTemplate.Info.Stats.Defense.Magical();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Info.Stats.Defense.Physical }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Info.Stats.Defense.Physical createNPCTemplateInfoStatsDefensePhysical() {
|
||||
return new NPCTemplate.Info.Stats.Defense.Physical();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Info.Stats.Attack.Physical }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Info.Stats.Attack.Physical createNPCTemplateInfoStatsAttackPhysical() {
|
||||
return new NPCTemplate.Info.Stats.Attack.Physical();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Info.Stats.Defense.Magical }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Info.Stats.Defense.Magical createNPCTemplateInfoStatsDefenseMagical() {
|
||||
return new NPCTemplate.Info.Stats.Defense.Magical();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Info.Stats.Attack.Magical }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Info.Stats.Attack.Magical createNPCTemplateInfoStatsAttackMagical() {
|
||||
return new NPCTemplate.Info.Stats.Attack.Magical();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Info.Stats.Attack.Physical }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Info.Stats.Attack.Physical createNPCTemplateInfoStatsAttackPhysical() {
|
||||
return new NPCTemplate.Info.Stats.Attack.Physical();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link ItemTemplate.Controller }
|
||||
*
|
||||
*/
|
||||
public ItemTemplate.Controller createItemTemplateController() {
|
||||
return new ItemTemplate.Controller();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link NPCTemplate.Info.Stats.Attack.Magical }
|
||||
*
|
||||
*/
|
||||
public NPCTemplate.Info.Stats.Attack.Magical createNPCTemplateInfoStatsAttackMagical() {
|
||||
return new NPCTemplate.Info.Stats.Attack.Magical();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link ItemTemplate.Effect }
|
||||
*
|
||||
*/
|
||||
public ItemTemplate.Effect createItemTemplateEffect() {
|
||||
return new ItemTemplate.Effect();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link ItemTemplate.Controller }
|
||||
*
|
||||
*/
|
||||
public ItemTemplate.Controller createItemTemplateController() {
|
||||
return new ItemTemplate.Controller();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link ItemTemplate.EtcItem }
|
||||
*
|
||||
*/
|
||||
public ItemTemplate.EtcItem createItemTemplateEtcItem() {
|
||||
return new ItemTemplate.EtcItem();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link ItemTemplate.Effect }
|
||||
*
|
||||
*/
|
||||
public ItemTemplate.Effect createItemTemplateEffect() {
|
||||
return new ItemTemplate.Effect();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link ItemTemplate.Weapon }
|
||||
*
|
||||
*/
|
||||
public ItemTemplate.Weapon createItemTemplateWeapon() {
|
||||
return new ItemTemplate.Weapon();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link ItemTemplate.EtcItem }
|
||||
*
|
||||
*/
|
||||
public ItemTemplate.EtcItem createItemTemplateEtcItem() {
|
||||
return new ItemTemplate.EtcItem();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link ItemTemplate.Armor.Cost }
|
||||
*
|
||||
*/
|
||||
public ItemTemplate.Armor.Cost createItemTemplateArmorCost() {
|
||||
return new ItemTemplate.Armor.Cost();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link ItemTemplate.Weapon }
|
||||
*
|
||||
*/
|
||||
public ItemTemplate.Weapon createItemTemplateWeapon() {
|
||||
return new ItemTemplate.Weapon();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link ItemTemplate.Armor.Equipment }
|
||||
*
|
||||
*/
|
||||
public ItemTemplate.Armor.Equipment createItemTemplateArmorEquipment() {
|
||||
return new ItemTemplate.Armor.Equipment();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link ItemTemplate.Armor.Cost }
|
||||
*
|
||||
*/
|
||||
public ItemTemplate.Armor.Cost createItemTemplateArmorCost() {
|
||||
return new ItemTemplate.Armor.Cost();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link ItemTemplate.Attributes.Cost }
|
||||
*
|
||||
*/
|
||||
public ItemTemplate.Attributes.Cost createItemTemplateAttributesCost() {
|
||||
return new ItemTemplate.Attributes.Cost();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link ItemTemplate.Armor.Equipment }
|
||||
*
|
||||
*/
|
||||
public ItemTemplate.Armor.Equipment createItemTemplateArmorEquipment() {
|
||||
return new ItemTemplate.Armor.Equipment();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link CharacterTemplate.Collision.Male }
|
||||
*
|
||||
*/
|
||||
public CharacterTemplate.Collision.Male createCharacterTemplateCollisionMale() {
|
||||
return new CharacterTemplate.Collision.Male();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link ItemTemplate.Attributes.Cost }
|
||||
*
|
||||
*/
|
||||
public ItemTemplate.Attributes.Cost createItemTemplateAttributesCost() {
|
||||
return new ItemTemplate.Attributes.Cost();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link CharacterTemplate.Collision.Female }
|
||||
*
|
||||
*/
|
||||
public CharacterTemplate.Collision.Female createCharacterTemplateCollisionFemale() {
|
||||
return new CharacterTemplate.Collision.Female();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link CharacterTemplate.Collision.Male }
|
||||
*
|
||||
*/
|
||||
public CharacterTemplate.Collision.Male createCharacterTemplateCollisionMale() {
|
||||
return new CharacterTemplate.Collision.Male();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link CharacterTemplate.Stats.Hp }
|
||||
*
|
||||
*/
|
||||
public CharacterTemplate.Stats.Hp createCharacterTemplateStatsHp() {
|
||||
return new CharacterTemplate.Stats.Hp();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link CharacterTemplate.Collision.Female }
|
||||
*
|
||||
*/
|
||||
public CharacterTemplate.Collision.Female createCharacterTemplateCollisionFemale() {
|
||||
return new CharacterTemplate.Collision.Female();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link CharacterTemplate.Stats.Mp }
|
||||
*
|
||||
*/
|
||||
public CharacterTemplate.Stats.Mp createCharacterTemplateStatsMp() {
|
||||
return new CharacterTemplate.Stats.Mp();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link CharacterTemplate.Stats.Hp }
|
||||
*
|
||||
*/
|
||||
public CharacterTemplate.Stats.Hp createCharacterTemplateStatsHp() {
|
||||
return new CharacterTemplate.Stats.Hp();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link CharacterTemplate.Stats.Cp }
|
||||
*
|
||||
*/
|
||||
public CharacterTemplate.Stats.Cp createCharacterTemplateStatsCp() {
|
||||
return new CharacterTemplate.Stats.Cp();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link CharacterTemplate.Stats.Mp }
|
||||
*
|
||||
*/
|
||||
public CharacterTemplate.Stats.Mp createCharacterTemplateStatsMp() {
|
||||
return new CharacterTemplate.Stats.Mp();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link CharacterTemplate.Stats.Move }
|
||||
*
|
||||
*/
|
||||
public CharacterTemplate.Stats.Move createCharacterTemplateStatsMove() {
|
||||
return new CharacterTemplate.Stats.Move();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link CharacterTemplate.Stats.Cp }
|
||||
*
|
||||
*/
|
||||
public CharacterTemplate.Stats.Cp createCharacterTemplateStatsCp() {
|
||||
return new CharacterTemplate.Stats.Cp();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link CharacterTemplate.Stats.Base }
|
||||
*
|
||||
*/
|
||||
public CharacterTemplate.Stats.Base createCharacterTemplateStatsBase() {
|
||||
return new CharacterTemplate.Stats.Base();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link CharacterTemplate.Stats.Move }
|
||||
*
|
||||
*/
|
||||
public CharacterTemplate.Stats.Move createCharacterTemplateStatsMove() {
|
||||
return new CharacterTemplate.Stats.Move();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link CharacterTemplate.Stats.Defense.Physical }
|
||||
*
|
||||
*/
|
||||
public CharacterTemplate.Stats.Defense.Physical createCharacterTemplateStatsDefensePhysical() {
|
||||
return new CharacterTemplate.Stats.Defense.Physical();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link CharacterTemplate.Stats.Base }
|
||||
*
|
||||
*/
|
||||
public CharacterTemplate.Stats.Base createCharacterTemplateStatsBase() {
|
||||
return new CharacterTemplate.Stats.Base();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link CharacterTemplate.Stats.Defense.Magical }
|
||||
*
|
||||
*/
|
||||
public CharacterTemplate.Stats.Defense.Magical createCharacterTemplateStatsDefenseMagical() {
|
||||
return new CharacterTemplate.Stats.Defense.Magical();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link CharacterTemplate.Stats.Defense.Physical }
|
||||
*
|
||||
*/
|
||||
public CharacterTemplate.Stats.Defense.Physical createCharacterTemplateStatsDefensePhysical() {
|
||||
return new CharacterTemplate.Stats.Defense.Physical();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link CharacterTemplate.Stats.Attack.Physical }
|
||||
*
|
||||
*/
|
||||
public CharacterTemplate.Stats.Attack.Physical createCharacterTemplateStatsAttackPhysical() {
|
||||
return new CharacterTemplate.Stats.Attack.Physical();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link CharacterTemplate.Stats.Defense.Magical }
|
||||
*
|
||||
*/
|
||||
public CharacterTemplate.Stats.Defense.Magical createCharacterTemplateStatsDefenseMagical() {
|
||||
return new CharacterTemplate.Stats.Defense.Magical();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link CharacterTemplate.Stats.Attack.Magical }
|
||||
*
|
||||
*/
|
||||
public CharacterTemplate.Stats.Attack.Magical createCharacterTemplateStatsAttackMagical() {
|
||||
return new CharacterTemplate.Stats.Attack.Magical();
|
||||
}
|
||||
/**
|
||||
* Create an instance of {@link CharacterTemplate.Stats.Attack.Physical }
|
||||
*
|
||||
*/
|
||||
public CharacterTemplate.Stats.Attack.Physical createCharacterTemplateStatsAttackPhysical() {
|
||||
return new CharacterTemplate.Stats.Attack.Physical();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an instance of {@link CharacterTemplate.Stats.Attack.Magical }
|
||||
*
|
||||
*/
|
||||
public CharacterTemplate.Stats.Attack.Magical createCharacterTemplateStatsAttackMagical() {
|
||||
return new CharacterTemplate.Stats.Attack.Magical();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -2,9 +2,10 @@
|
||||
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-b10
|
||||
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
|
||||
// Any modifications to this file will be lost upon recompilation of the source schema.
|
||||
// Generated on: 2012.03.25 at 01:03:28 PM BRT
|
||||
// Generated on: 2012.05.03 at 07:58:30 PM BRT
|
||||
//
|
||||
|
||||
|
||||
package com.l2jserver.model.template;
|
||||
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
@@ -13,17 +14,14 @@ import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
|
||||
|
||||
import com.l2jserver.model.id.template.SkillTemplateID;
|
||||
import com.l2jserver.util.jaxb.SkillTemplateIDAdapter;
|
||||
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Java class for skill element declaration.
|
||||
* <p>Java class for skill element declaration.
|
||||
*
|
||||
* <p>
|
||||
* The following schema fragment specifies the expected content contained within
|
||||
* this class.
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <element name="skill">
|
||||
@@ -46,109 +44,119 @@ import com.l2jserver.util.jaxb.SkillTemplateIDAdapter;
|
||||
*
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "", propOrder = { "maximumLevel" })
|
||||
@XmlType(name = "", propOrder = {
|
||||
"maximumLevel"
|
||||
})
|
||||
@XmlRootElement(name = "skill", namespace = "http://schemas.l2jserver2.com/skill")
|
||||
public class SkillTemplate extends AbstractTemplate {
|
||||
public class SkillTemplate
|
||||
extends AbstractTemplate
|
||||
{
|
||||
|
||||
protected int maximumLevel;
|
||||
@XmlAttribute(name = "id", required = true)
|
||||
@XmlJavaTypeAdapter(SkillTemplateIDAdapter.class)
|
||||
protected SkillTemplateID id;
|
||||
@XmlAttribute(name = "name", required = true)
|
||||
protected String name;
|
||||
@XmlAttribute(name = "delay", required = true)
|
||||
protected int delay;
|
||||
@XmlAttribute(name = "cooldown", required = true)
|
||||
protected int cooldown;
|
||||
protected int maximumLevel;
|
||||
@XmlAttribute(name = "id", required = true)
|
||||
@XmlJavaTypeAdapter(SkillTemplateIDAdapter.class)
|
||||
protected SkillTemplateID id;
|
||||
@XmlAttribute(name = "name", required = true)
|
||||
protected String name;
|
||||
@XmlAttribute(name = "delay", required = true)
|
||||
protected int delay;
|
||||
@XmlAttribute(name = "cooldown", required = true)
|
||||
protected int cooldown;
|
||||
|
||||
/**
|
||||
* Gets the value of the maximumLevel property.
|
||||
*
|
||||
*/
|
||||
public int getMaximumLevel() {
|
||||
return maximumLevel;
|
||||
}
|
||||
/**
|
||||
* Gets the value of the maximumLevel property.
|
||||
*
|
||||
*/
|
||||
public int getMaximumLevel() {
|
||||
return maximumLevel;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the maximumLevel property.
|
||||
*
|
||||
*/
|
||||
public void setMaximumLevel(int value) {
|
||||
this.maximumLevel = value;
|
||||
}
|
||||
/**
|
||||
* Sets the value of the maximumLevel property.
|
||||
*
|
||||
*/
|
||||
public void setMaximumLevel(int value) {
|
||||
this.maximumLevel = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the id property.
|
||||
*
|
||||
* @return possible object is {@link String }
|
||||
*
|
||||
*/
|
||||
public SkillTemplateID getID() {
|
||||
return id;
|
||||
}
|
||||
/**
|
||||
* Gets the value of the id property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public SkillTemplateID getID() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the id property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is {@link String }
|
||||
*
|
||||
*/
|
||||
public void setID(SkillTemplateID value) {
|
||||
this.id = value;
|
||||
}
|
||||
/**
|
||||
* Sets the value of the id property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setID(SkillTemplateID value) {
|
||||
this.id = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the name property.
|
||||
*
|
||||
* @return possible object is {@link String }
|
||||
*
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
/**
|
||||
* Gets the value of the name property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the name property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is {@link String }
|
||||
*
|
||||
*/
|
||||
public void setName(String value) {
|
||||
this.name = value;
|
||||
}
|
||||
/**
|
||||
* Sets the value of the name property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setName(String value) {
|
||||
this.name = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the delay property.
|
||||
*
|
||||
*/
|
||||
public int getDelay() {
|
||||
return delay;
|
||||
}
|
||||
/**
|
||||
* Gets the value of the delay property.
|
||||
*
|
||||
*/
|
||||
public int getDelay() {
|
||||
return delay;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the delay property.
|
||||
*
|
||||
*/
|
||||
public void setDelay(int value) {
|
||||
this.delay = value;
|
||||
}
|
||||
/**
|
||||
* Sets the value of the delay property.
|
||||
*
|
||||
*/
|
||||
public void setDelay(int value) {
|
||||
this.delay = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the cooldown property.
|
||||
*
|
||||
*/
|
||||
public int getCooldown() {
|
||||
return cooldown;
|
||||
}
|
||||
/**
|
||||
* Gets the value of the cooldown property.
|
||||
*
|
||||
*/
|
||||
public int getCooldown() {
|
||||
return cooldown;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the cooldown property.
|
||||
*
|
||||
*/
|
||||
public void setCooldown(int value) {
|
||||
this.cooldown = value;
|
||||
}
|
||||
/**
|
||||
* Sets the value of the cooldown property.
|
||||
*
|
||||
*/
|
||||
public void setCooldown(int value) {
|
||||
this.cooldown = value;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,286 @@
|
||||
//
|
||||
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-b10
|
||||
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
|
||||
// Any modifications to this file will be lost upon recompilation of the source schema.
|
||||
// Generated on: 2012.05.03 at 07:58:30 PM BRT
|
||||
//
|
||||
|
||||
|
||||
package com.l2jserver.model.template;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
|
||||
import com.l2jserver.model.id.template.TeleportationTemplateID;
|
||||
import com.l2jserver.util.jaxb.TeleportationTemplateIDAdapter;
|
||||
|
||||
|
||||
/**
|
||||
* <p>Java class for TeleportationTemplate complex type.
|
||||
*
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType name="TeleportationTemplate">
|
||||
* <complexContent>
|
||||
* <extension base="{}AbstractTemplate">
|
||||
* <sequence>
|
||||
* <element name="point" type="{}Coordinate" minOccurs="0"/>
|
||||
* <element name="restrictions" minOccurs="0">
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <sequence>
|
||||
* <element name="restriction" maxOccurs="unbounded">
|
||||
* <simpleType>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
|
||||
* <enumeration value="NOBLE"/>
|
||||
* </restriction>
|
||||
* </simpleType>
|
||||
* </element>
|
||||
* </sequence>
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </element>
|
||||
* </sequence>
|
||||
* <attribute name="id" use="required" type="{http://schemas.l2jserver2.com/teleport}TeleportationTemplateID" />
|
||||
* <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
|
||||
* <attribute name="item" type="{http://www.w3.org/2001/XMLSchema}int" />
|
||||
* <attribute name="price" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
|
||||
* </extension>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "TeleportationTemplate", namespace = "http://schemas.l2jserver2.com/teleport", propOrder = {
|
||||
"point",
|
||||
"restrictions"
|
||||
})
|
||||
public class TeleportationTemplate
|
||||
extends AbstractTemplate
|
||||
{
|
||||
|
||||
protected TemplateCoordinate point;
|
||||
protected TeleportationTemplate.Restrictions restrictions;
|
||||
@XmlAttribute(name = "id", required = true)
|
||||
@XmlJavaTypeAdapter(TeleportationTemplateIDAdapter.class)
|
||||
protected TeleportationTemplateID id;
|
||||
@XmlAttribute(name = "name")
|
||||
protected String name;
|
||||
@XmlAttribute(name = "item")
|
||||
protected Integer item;
|
||||
@XmlAttribute(name = "price", required = true)
|
||||
protected int price;
|
||||
|
||||
/**
|
||||
* Gets the value of the point property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link TemplateCoordinate }
|
||||
*
|
||||
*/
|
||||
public TemplateCoordinate getPoint() {
|
||||
return point;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the point property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link TemplateCoordinate }
|
||||
*
|
||||
*/
|
||||
public void setPoint(TemplateCoordinate value) {
|
||||
this.point = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the restrictions property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link TeleportationTemplate.Restrictions }
|
||||
*
|
||||
*/
|
||||
public TeleportationTemplate.Restrictions getRestrictions() {
|
||||
return restrictions;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the restrictions property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link TeleportationTemplate.Restrictions }
|
||||
*
|
||||
*/
|
||||
public void setRestrictions(TeleportationTemplate.Restrictions value) {
|
||||
this.restrictions = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the id property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public TeleportationTemplateID getID() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the id property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setID(TeleportationTemplateID value) {
|
||||
this.id = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the name property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the name property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setName(String value) {
|
||||
this.name = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the item property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link Integer }
|
||||
*
|
||||
*/
|
||||
public Integer getItem() {
|
||||
return item;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the item property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link Integer }
|
||||
*
|
||||
*/
|
||||
public void setItem(Integer value) {
|
||||
this.item = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the price property.
|
||||
*
|
||||
*/
|
||||
public int getPrice() {
|
||||
return price;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the price property.
|
||||
*
|
||||
*/
|
||||
public void setPrice(int value) {
|
||||
this.price = value;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* <p>Java class for anonymous complex type.
|
||||
*
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <sequence>
|
||||
* <element name="restriction" maxOccurs="unbounded">
|
||||
* <simpleType>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
|
||||
* <enumeration value="NOBLE"/>
|
||||
* </restriction>
|
||||
* </simpleType>
|
||||
* </element>
|
||||
* </sequence>
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "", propOrder = {
|
||||
"restriction"
|
||||
})
|
||||
public static class Restrictions {
|
||||
|
||||
@XmlElement(required = true)
|
||||
protected List<String> restriction;
|
||||
|
||||
/**
|
||||
* Gets the value of the restriction property.
|
||||
*
|
||||
* <p>
|
||||
* 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 <CODE>set</CODE> method for the restriction property.
|
||||
*
|
||||
* <p>
|
||||
* For example, to add a new item, do as follows:
|
||||
* <pre>
|
||||
* getRestriction().add(newItem);
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
* <p>
|
||||
* Objects of the following type(s) are allowed in the list
|
||||
* {@link String }
|
||||
*
|
||||
*
|
||||
*/
|
||||
public List<String> getRestriction() {
|
||||
if (restriction == null) {
|
||||
restriction = new ArrayList<String>();
|
||||
}
|
||||
return this.restriction;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -2,70 +2,32 @@
|
||||
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-b10
|
||||
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
|
||||
// Any modifications to this file will be lost upon recompilation of the source schema.
|
||||
// Generated on: 2012.03.25 at 01:03:28 PM BRT
|
||||
// Generated on: 2012.05.03 at 07:58:30 PM BRT
|
||||
//
|
||||
|
||||
|
||||
package com.l2jserver.model.template;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
|
||||
|
||||
import com.l2jserver.model.id.template.TeleportationTemplateID;
|
||||
import com.l2jserver.util.jaxb.TeleportationTemplateIDAdapter;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Java class for anonymous complex type.
|
||||
* <p>Java class for anonymous complex type.
|
||||
*
|
||||
* <p>
|
||||
* The following schema fragment specifies the expected content contained within
|
||||
* this class.
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <sequence>
|
||||
* <element name="teleport" maxOccurs="unbounded">
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <extension base="{}AbstractTemplate">
|
||||
* <sequence>
|
||||
* <element name="point" type="{}Coordinate" minOccurs="0"/>
|
||||
* <element name="restrictions" minOccurs="0">
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <sequence>
|
||||
* <element name="restriction" maxOccurs="unbounded">
|
||||
* <simpleType>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
|
||||
* <enumeration value="NOBLE"/>
|
||||
* </restriction>
|
||||
* </simpleType>
|
||||
* </element>
|
||||
* </sequence>
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </element>
|
||||
* </sequence>
|
||||
* <attribute name="id" use="required" type="{http://schemas.l2jserver2.com/teleport}TeleportationTemplateID" />
|
||||
* <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
|
||||
* <attribute name="item" type="{http://www.w3.org/2001/XMLSchema}int" />
|
||||
* <attribute name="price" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
|
||||
* </extension>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </element>
|
||||
* <element name="teleport" type="{http://schemas.l2jserver2.com/teleport}TeleportationTemplate" maxOccurs="unbounded"/>
|
||||
* </sequence>
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
@@ -75,290 +37,42 @@ import com.l2jserver.util.jaxb.TeleportationTemplateIDAdapter;
|
||||
*
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "", propOrder = { "teleport" })
|
||||
@XmlType(name = "", propOrder = {
|
||||
"teleport"
|
||||
})
|
||||
@XmlRootElement(name = "teleports", namespace = "http://schemas.l2jserver2.com/teleport")
|
||||
public class Teleports {
|
||||
|
||||
@XmlElement(required = true)
|
||||
protected List<Teleports.Teleport> teleport;
|
||||
@XmlElement(required = true)
|
||||
protected List<TeleportationTemplate> teleport;
|
||||
|
||||
/**
|
||||
* Gets the value of the teleport property.
|
||||
*
|
||||
* <p>
|
||||
* 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
|
||||
* <CODE>set</CODE> method for the teleport property.
|
||||
*
|
||||
* <p>
|
||||
* For example, to add a new item, do as follows:
|
||||
*
|
||||
* <pre>
|
||||
* getTeleport().add(newItem);
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
* <p>
|
||||
* Objects of the following type(s) are allowed in the list
|
||||
* {@link Teleports.Teleport }
|
||||
*
|
||||
*
|
||||
*/
|
||||
public List<Teleports.Teleport> getTeleport() {
|
||||
if (teleport == null) {
|
||||
teleport = new ArrayList<Teleports.Teleport>();
|
||||
}
|
||||
return this.teleport;
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Java class for anonymous complex type.
|
||||
*
|
||||
* <p>
|
||||
* The following schema fragment specifies the expected content contained
|
||||
* within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <extension base="{}AbstractTemplate">
|
||||
* <sequence>
|
||||
* <element name="point" type="{}Coordinate" minOccurs="0"/>
|
||||
* <element name="restrictions" minOccurs="0">
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <sequence>
|
||||
* <element name="restriction" maxOccurs="unbounded">
|
||||
* <simpleType>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
|
||||
* <enumeration value="NOBLE"/>
|
||||
* </restriction>
|
||||
* </simpleType>
|
||||
* </element>
|
||||
* </sequence>
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </element>
|
||||
* </sequence>
|
||||
* <attribute name="id" use="required" type="{http://schemas.l2jserver2.com/teleport}TeleportationTemplateID" />
|
||||
* <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
|
||||
* <attribute name="item" type="{http://www.w3.org/2001/XMLSchema}int" />
|
||||
* <attribute name="price" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
|
||||
* </extension>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "", propOrder = { "point", "restrictions" })
|
||||
public static class Teleport extends AbstractTemplate {
|
||||
|
||||
protected Coordinate point;
|
||||
protected Teleports.Teleport.Restrictions restrictions;
|
||||
@XmlAttribute(name = "id", required = true)
|
||||
@XmlJavaTypeAdapter(TeleportationTemplateIDAdapter.class)
|
||||
protected TeleportationTemplateID id;
|
||||
@XmlAttribute(name = "name")
|
||||
protected String name;
|
||||
@XmlAttribute(name = "item")
|
||||
protected Integer item;
|
||||
@XmlAttribute(name = "price", required = true)
|
||||
protected int price;
|
||||
|
||||
/**
|
||||
* Gets the value of the point property.
|
||||
*
|
||||
* @return possible object is {@link Coordinate }
|
||||
*
|
||||
*/
|
||||
public Coordinate getPoint() {
|
||||
return point;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the point property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is {@link Coordinate }
|
||||
*
|
||||
*/
|
||||
public void setPoint(Coordinate value) {
|
||||
this.point = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the restrictions property.
|
||||
*
|
||||
* @return possible object is {@link Teleports.Teleport.Restrictions }
|
||||
*
|
||||
*/
|
||||
public Teleports.Teleport.Restrictions getRestrictions() {
|
||||
return restrictions;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the restrictions property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is {@link Teleports.Teleport.Restrictions }
|
||||
*
|
||||
*/
|
||||
public void setRestrictions(Teleports.Teleport.Restrictions value) {
|
||||
this.restrictions = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the id property.
|
||||
*
|
||||
* @return possible object is {@link String }
|
||||
*
|
||||
*/
|
||||
public TeleportationTemplateID getID() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the id property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is {@link String }
|
||||
*
|
||||
*/
|
||||
public void setID(TeleportationTemplateID value) {
|
||||
this.id = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the name property.
|
||||
*
|
||||
* @return possible object is {@link String }
|
||||
*
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the name property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is {@link String }
|
||||
*
|
||||
*/
|
||||
public void setName(String value) {
|
||||
this.name = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the item property.
|
||||
*
|
||||
* @return possible object is {@link Integer }
|
||||
*
|
||||
*/
|
||||
public Integer getItem() {
|
||||
return item;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the item property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is {@link Integer }
|
||||
*
|
||||
*/
|
||||
public void setItem(Integer value) {
|
||||
this.item = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the price property.
|
||||
*
|
||||
*/
|
||||
public int getPrice() {
|
||||
return price;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the price property.
|
||||
*
|
||||
*/
|
||||
public void setPrice(int value) {
|
||||
this.price = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Java class for anonymous complex type.
|
||||
*
|
||||
* <p>
|
||||
* The following schema fragment specifies the expected content
|
||||
* contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <sequence>
|
||||
* <element name="restriction" maxOccurs="unbounded">
|
||||
* <simpleType>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
|
||||
* <enumeration value="NOBLE"/>
|
||||
* </restriction>
|
||||
* </simpleType>
|
||||
* </element>
|
||||
* </sequence>
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "", propOrder = { "restriction" })
|
||||
public static class Restrictions {
|
||||
|
||||
@XmlElement(required = true)
|
||||
protected List<String> restriction;
|
||||
|
||||
/**
|
||||
* Gets the value of the restriction property.
|
||||
*
|
||||
* <p>
|
||||
* 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 <CODE>set</CODE> method for the restriction property.
|
||||
*
|
||||
* <p>
|
||||
* For example, to add a new item, do as follows:
|
||||
*
|
||||
* <pre>
|
||||
* getRestriction().add(newItem);
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
* <p>
|
||||
* Objects of the following type(s) are allowed in the list
|
||||
* {@link String }
|
||||
*
|
||||
*
|
||||
*/
|
||||
public List<String> getRestriction() {
|
||||
if (restriction == null) {
|
||||
restriction = new ArrayList<String>();
|
||||
}
|
||||
return this.restriction;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
/**
|
||||
* Gets the value of the teleport property.
|
||||
*
|
||||
* <p>
|
||||
* 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 <CODE>set</CODE> method for the teleport property.
|
||||
*
|
||||
* <p>
|
||||
* For example, to add a new item, do as follows:
|
||||
* <pre>
|
||||
* getTeleport().add(newItem);
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
* <p>
|
||||
* Objects of the following type(s) are allowed in the list
|
||||
* {@link TeleportationTemplate }
|
||||
*
|
||||
*
|
||||
*/
|
||||
public List<TeleportationTemplate> getTeleport() {
|
||||
if (teleport == null) {
|
||||
teleport = new ArrayList<TeleportationTemplate>();
|
||||
}
|
||||
return this.teleport;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -2,9 +2,10 @@
|
||||
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-b10
|
||||
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
|
||||
// Any modifications to this file will be lost upon recompilation of the source schema.
|
||||
// Generated on: 2012.03.25 at 01:03:28 PM BRT
|
||||
// Generated on: 2012.05.03 at 07:58:30 PM BRT
|
||||
//
|
||||
|
||||
|
||||
package com.l2jserver.model.template;
|
||||
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
@@ -12,13 +13,11 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Java class for Coordinate complex type.
|
||||
* <p>Java class for Coordinate complex type.
|
||||
*
|
||||
* <p>
|
||||
* The following schema fragment specifies the expected content contained within
|
||||
* this class.
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType name="Coordinate">
|
||||
@@ -38,61 +37,61 @@ import javax.xml.bind.annotation.XmlType;
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "Coordinate")
|
||||
public class Coordinate {
|
||||
public class TemplateCoordinate {
|
||||
|
||||
@XmlAttribute(name = "x", required = true)
|
||||
protected int x;
|
||||
@XmlAttribute(name = "y", required = true)
|
||||
protected int y;
|
||||
@XmlAttribute(name = "z", required = true)
|
||||
protected int z;
|
||||
@XmlAttribute(name = "x", required = true)
|
||||
protected int x;
|
||||
@XmlAttribute(name = "y", required = true)
|
||||
protected int y;
|
||||
@XmlAttribute(name = "z", required = true)
|
||||
protected int z;
|
||||
|
||||
/**
|
||||
* Gets the value of the x property.
|
||||
*
|
||||
*/
|
||||
public int getX() {
|
||||
return x;
|
||||
}
|
||||
/**
|
||||
* Gets the value of the x property.
|
||||
*
|
||||
*/
|
||||
public int getX() {
|
||||
return x;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the x property.
|
||||
*
|
||||
*/
|
||||
public void setX(int value) {
|
||||
this.x = value;
|
||||
}
|
||||
/**
|
||||
* Sets the value of the x property.
|
||||
*
|
||||
*/
|
||||
public void setX(int value) {
|
||||
this.x = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the y property.
|
||||
*
|
||||
*/
|
||||
public int getY() {
|
||||
return y;
|
||||
}
|
||||
/**
|
||||
* Gets the value of the y property.
|
||||
*
|
||||
*/
|
||||
public int getY() {
|
||||
return y;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the y property.
|
||||
*
|
||||
*/
|
||||
public void setY(int value) {
|
||||
this.y = value;
|
||||
}
|
||||
/**
|
||||
* Sets the value of the y property.
|
||||
*
|
||||
*/
|
||||
public void setY(int value) {
|
||||
this.y = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the z property.
|
||||
*
|
||||
*/
|
||||
public int getZ() {
|
||||
return z;
|
||||
}
|
||||
/**
|
||||
* Gets the value of the z property.
|
||||
*
|
||||
*/
|
||||
public int getZ() {
|
||||
return z;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the z property.
|
||||
*
|
||||
*/
|
||||
public void setZ(int value) {
|
||||
this.z = value;
|
||||
}
|
||||
/**
|
||||
* Sets the value of the z property.
|
||||
*
|
||||
*/
|
||||
public void setZ(int value) {
|
||||
this.z = value;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -2,27 +2,25 @@
|
||||
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-b10
|
||||
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
|
||||
// Any modifications to this file will be lost upon recompilation of the source schema.
|
||||
// Generated on: 2012.03.25 at 01:03:28 PM BRT
|
||||
// Generated on: 2012.05.03 at 07:58:30 PM BRT
|
||||
//
|
||||
|
||||
|
||||
package com.l2jserver.model.template;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Java class for ZoneType complex type.
|
||||
* <p>Java class for ZoneType complex type.
|
||||
*
|
||||
* <p>
|
||||
* The following schema fragment specifies the expected content contained within
|
||||
* this class.
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType name="ZoneType">
|
||||
@@ -51,129 +49,131 @@ import javax.xml.bind.annotation.XmlType;
|
||||
*
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "ZoneType", namespace = "zones", propOrder = { "point" })
|
||||
@XmlType(name = "ZoneType", namespace = "zones", propOrder = {
|
||||
"point"
|
||||
})
|
||||
public class ZoneType {
|
||||
|
||||
@XmlElement(required = true)
|
||||
protected List<ZoneType.Point> point;
|
||||
@XmlAttribute(name = "id", required = true)
|
||||
protected String id;
|
||||
@XmlElement(required = true)
|
||||
protected List<ZoneType.Point> point;
|
||||
@XmlAttribute(name = "id", required = true)
|
||||
protected String id;
|
||||
|
||||
/**
|
||||
* Gets the value of the point property.
|
||||
*
|
||||
* <p>
|
||||
* 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
|
||||
* <CODE>set</CODE> method for the point property.
|
||||
*
|
||||
* <p>
|
||||
* For example, to add a new item, do as follows:
|
||||
*
|
||||
* <pre>
|
||||
* getPoint().add(newItem);
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
* <p>
|
||||
* Objects of the following type(s) are allowed in the list
|
||||
* {@link ZoneType.Point }
|
||||
*
|
||||
*
|
||||
*/
|
||||
public List<ZoneType.Point> getPoint() {
|
||||
if (point == null) {
|
||||
point = new ArrayList<ZoneType.Point>();
|
||||
}
|
||||
return this.point;
|
||||
}
|
||||
/**
|
||||
* Gets the value of the point property.
|
||||
*
|
||||
* <p>
|
||||
* 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 <CODE>set</CODE> method for the point property.
|
||||
*
|
||||
* <p>
|
||||
* For example, to add a new item, do as follows:
|
||||
* <pre>
|
||||
* getPoint().add(newItem);
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
* <p>
|
||||
* Objects of the following type(s) are allowed in the list
|
||||
* {@link ZoneType.Point }
|
||||
*
|
||||
*
|
||||
*/
|
||||
public List<ZoneType.Point> getPoint() {
|
||||
if (point == null) {
|
||||
point = new ArrayList<ZoneType.Point>();
|
||||
}
|
||||
return this.point;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the id property.
|
||||
*
|
||||
* @return possible object is {@link String }
|
||||
*
|
||||
*/
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
/**
|
||||
* Gets the value of the id property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the id property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is {@link String }
|
||||
*
|
||||
*/
|
||||
public void setId(String value) {
|
||||
this.id = value;
|
||||
}
|
||||
/**
|
||||
* Sets the value of the id property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link String }
|
||||
*
|
||||
*/
|
||||
public void setId(String value) {
|
||||
this.id = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Java class for anonymous complex type.
|
||||
*
|
||||
* <p>
|
||||
* The following schema fragment specifies the expected content contained
|
||||
* within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <sequence>
|
||||
* </sequence>
|
||||
* <attribute name="x" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
|
||||
* <attribute name="y" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "")
|
||||
public static class Point {
|
||||
|
||||
@XmlAttribute(name = "x", required = true)
|
||||
protected int x;
|
||||
@XmlAttribute(name = "y", required = true)
|
||||
protected int y;
|
||||
/**
|
||||
* <p>Java class for anonymous complex type.
|
||||
*
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <sequence>
|
||||
* </sequence>
|
||||
* <attribute name="x" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
|
||||
* <attribute name="y" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "")
|
||||
public static class Point {
|
||||
|
||||
/**
|
||||
* Gets the value of the x property.
|
||||
*
|
||||
*/
|
||||
public int getX() {
|
||||
return x;
|
||||
}
|
||||
@XmlAttribute(name = "x", required = true)
|
||||
protected int x;
|
||||
@XmlAttribute(name = "y", required = true)
|
||||
protected int y;
|
||||
|
||||
/**
|
||||
* Sets the value of the x property.
|
||||
*
|
||||
*/
|
||||
public void setX(int value) {
|
||||
this.x = value;
|
||||
}
|
||||
/**
|
||||
* Gets the value of the x property.
|
||||
*
|
||||
*/
|
||||
public int getX() {
|
||||
return x;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value of the y property.
|
||||
*
|
||||
*/
|
||||
public int getY() {
|
||||
return y;
|
||||
}
|
||||
/**
|
||||
* Sets the value of the x property.
|
||||
*
|
||||
*/
|
||||
public void setX(int value) {
|
||||
this.x = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the y property.
|
||||
*
|
||||
*/
|
||||
public void setY(int value) {
|
||||
this.y = value;
|
||||
}
|
||||
/**
|
||||
* Gets the value of the y property.
|
||||
*
|
||||
*/
|
||||
public int getY() {
|
||||
return y;
|
||||
}
|
||||
|
||||
}
|
||||
/**
|
||||
* Sets the value of the y property.
|
||||
*
|
||||
*/
|
||||
public void setY(int value) {
|
||||
this.y = value;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -2,9 +2,10 @@
|
||||
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-b10
|
||||
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
|
||||
// Any modifications to this file will be lost upon recompilation of the source schema.
|
||||
// Generated on: 2012.03.25 at 01:03:28 PM BRT
|
||||
// Generated on: 2012.05.03 at 07:58:30 PM BRT
|
||||
//
|
||||
|
||||
|
||||
package com.l2jserver.model.template;
|
||||
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
@@ -13,13 +14,11 @@ import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Java class for anonymous complex type.
|
||||
* <p>Java class for anonymous complex type.
|
||||
*
|
||||
* <p>
|
||||
* The following schema fragment specifies the expected content contained within
|
||||
* this class.
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType>
|
||||
@@ -56,146 +55,157 @@ import javax.xml.bind.annotation.XmlType;
|
||||
*
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "", propOrder = { "castle" })
|
||||
@XmlType(name = "", propOrder = {
|
||||
"castle"
|
||||
})
|
||||
@XmlRootElement(name = "zones", namespace = "zones")
|
||||
public class Zones {
|
||||
|
||||
@XmlElement(required = true)
|
||||
protected Zones.Castle castle;
|
||||
@XmlElement(required = true)
|
||||
protected Zones.Castle castle;
|
||||
|
||||
/**
|
||||
* Gets the value of the castle property.
|
||||
*
|
||||
* @return possible object is {@link Zones.Castle }
|
||||
*
|
||||
*/
|
||||
public Zones.Castle getCastle() {
|
||||
return castle;
|
||||
}
|
||||
/**
|
||||
* Gets the value of the castle property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link Zones.Castle }
|
||||
*
|
||||
*/
|
||||
public Zones.Castle getCastle() {
|
||||
return castle;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the castle property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is {@link Zones.Castle }
|
||||
*
|
||||
*/
|
||||
public void setCastle(Zones.Castle value) {
|
||||
this.castle = value;
|
||||
}
|
||||
/**
|
||||
* Sets the value of the castle property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link Zones.Castle }
|
||||
*
|
||||
*/
|
||||
public void setCastle(Zones.Castle value) {
|
||||
this.castle = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Java class for anonymous complex type.
|
||||
*
|
||||
* <p>
|
||||
* The following schema fragment specifies the expected content contained
|
||||
* within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <sequence>
|
||||
* <element name="siege">
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <sequence>
|
||||
* <element name="zone" type="{zones}ZoneType"/>
|
||||
* </sequence>
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </element>
|
||||
* </sequence>
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "", propOrder = { "siege" })
|
||||
public static class Castle {
|
||||
|
||||
@XmlElement(required = true)
|
||||
protected Zones.Castle.Siege siege;
|
||||
/**
|
||||
* <p>Java class for anonymous complex type.
|
||||
*
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <sequence>
|
||||
* <element name="siege">
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <sequence>
|
||||
* <element name="zone" type="{zones}ZoneType"/>
|
||||
* </sequence>
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </element>
|
||||
* </sequence>
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "", propOrder = {
|
||||
"siege"
|
||||
})
|
||||
public static class Castle {
|
||||
|
||||
/**
|
||||
* Gets the value of the siege property.
|
||||
*
|
||||
* @return possible object is {@link Zones.Castle.Siege }
|
||||
*
|
||||
*/
|
||||
public Zones.Castle.Siege getSiege() {
|
||||
return siege;
|
||||
}
|
||||
@XmlElement(required = true)
|
||||
protected Zones.Castle.Siege siege;
|
||||
|
||||
/**
|
||||
* Sets the value of the siege property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is {@link Zones.Castle.Siege }
|
||||
*
|
||||
*/
|
||||
public void setSiege(Zones.Castle.Siege value) {
|
||||
this.siege = value;
|
||||
}
|
||||
/**
|
||||
* Gets the value of the siege property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link Zones.Castle.Siege }
|
||||
*
|
||||
*/
|
||||
public Zones.Castle.Siege getSiege() {
|
||||
return siege;
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Java class for anonymous complex type.
|
||||
*
|
||||
* <p>
|
||||
* The following schema fragment specifies the expected content
|
||||
* contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <sequence>
|
||||
* <element name="zone" type="{zones}ZoneType"/>
|
||||
* </sequence>
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "", propOrder = { "zone" })
|
||||
public static class Siege {
|
||||
/**
|
||||
* Sets the value of the siege property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link Zones.Castle.Siege }
|
||||
*
|
||||
*/
|
||||
public void setSiege(Zones.Castle.Siege value) {
|
||||
this.siege = value;
|
||||
}
|
||||
|
||||
@XmlElement(required = true)
|
||||
protected ZoneType zone;
|
||||
|
||||
/**
|
||||
* Gets the value of the zone property.
|
||||
*
|
||||
* @return possible object is {@link ZoneType }
|
||||
*
|
||||
*/
|
||||
public ZoneType getZone() {
|
||||
return zone;
|
||||
}
|
||||
/**
|
||||
* <p>Java class for anonymous complex type.
|
||||
*
|
||||
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||
*
|
||||
* <pre>
|
||||
* <complexType>
|
||||
* <complexContent>
|
||||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||
* <sequence>
|
||||
* <element name="zone" type="{zones}ZoneType"/>
|
||||
* </sequence>
|
||||
* </restriction>
|
||||
* </complexContent>
|
||||
* </complexType>
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
*/
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(name = "", propOrder = {
|
||||
"zone"
|
||||
})
|
||||
public static class Siege {
|
||||
|
||||
/**
|
||||
* Sets the value of the zone property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is {@link ZoneType }
|
||||
*
|
||||
*/
|
||||
public void setZone(ZoneType value) {
|
||||
this.zone = value;
|
||||
}
|
||||
@XmlElement(required = true)
|
||||
protected ZoneType zone;
|
||||
|
||||
}
|
||||
/**
|
||||
* Gets the value of the zone property.
|
||||
*
|
||||
* @return
|
||||
* possible object is
|
||||
* {@link ZoneType }
|
||||
*
|
||||
*/
|
||||
public ZoneType getZone() {
|
||||
return zone;
|
||||
}
|
||||
|
||||
}
|
||||
/**
|
||||
* Sets the value of the zone property.
|
||||
*
|
||||
* @param value
|
||||
* allowed object is
|
||||
* {@link ZoneType }
|
||||
*
|
||||
*/
|
||||
public void setZone(ZoneType value) {
|
||||
this.zone = value;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ import com.google.inject.Inject;
|
||||
import com.google.inject.assistedinject.Assisted;
|
||||
import com.l2jserver.model.id.TemplateID;
|
||||
import com.l2jserver.model.template.SkillTemplate;
|
||||
import com.l2jserver.model.template.npc.TeleportationTemplate;
|
||||
import com.l2jserver.model.template.TeleportationTemplate;
|
||||
import com.l2jserver.service.game.template.TemplateService;
|
||||
import com.l2jserver.util.jaxb.TeleportationTemplateIDAdapter;
|
||||
|
||||
|
||||
@@ -1,146 +0,0 @@
|
||||
/*
|
||||
* This file is part of l2jserver2 <l2jserver2.com>.
|
||||
*
|
||||
* l2jserver2 is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* l2jserver2 is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with l2jserver2. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.l2jserver.model.template.npc;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlElementWrapper;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
|
||||
|
||||
import com.l2jserver.model.id.template.ItemTemplateID;
|
||||
import com.l2jserver.model.id.template.TeleportationTemplateID;
|
||||
import com.l2jserver.model.template.AbstractTemplate;
|
||||
import com.l2jserver.util.geometry.Coordinate;
|
||||
import com.l2jserver.util.jaxb.CoordinateAdapter;
|
||||
import com.l2jserver.util.jaxb.ItemTemplateIDAdapter;
|
||||
import com.l2jserver.util.jaxb.TeleportationTemplateIDAdapter;
|
||||
|
||||
/**
|
||||
* Template for effects
|
||||
*
|
||||
* @author <a href="http://www.rogiel.com">Rogiel</a>
|
||||
*/
|
||||
@XmlRootElement(name = "teleport", namespace = "http://schemas.l2jserver2.com/teleport")
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@XmlType(namespace = "http://schemas.l2jserver2.com/teleport", name = "TeleportType")
|
||||
public class TeleportationTemplate extends AbstractTemplate {
|
||||
/**
|
||||
* The teleportation template ID
|
||||
*/
|
||||
@XmlAttribute(name = "id")
|
||||
@XmlJavaTypeAdapter(TeleportationTemplateIDAdapter.class)
|
||||
protected TeleportationTemplateID id;
|
||||
/**
|
||||
* The teleportation name
|
||||
*/
|
||||
@XmlAttribute(name = "name")
|
||||
protected String name;
|
||||
|
||||
/**
|
||||
* The teleportation cost item id
|
||||
*/
|
||||
@XmlAttribute(name = "item", required = false)
|
||||
@XmlJavaTypeAdapter(ItemTemplateIDAdapter.class)
|
||||
protected ItemTemplateID itemTemplateID;
|
||||
/**
|
||||
* The amount of items decreased
|
||||
*/
|
||||
@XmlAttribute(name = "price", required = true)
|
||||
protected int price;
|
||||
|
||||
/**
|
||||
* The teleportation point
|
||||
*/
|
||||
@XmlElement(name = "point", required = false)
|
||||
@XmlJavaTypeAdapter(CoordinateAdapter.class)
|
||||
protected Coordinate coordinate;
|
||||
|
||||
/**
|
||||
* The teleportation restrictions
|
||||
*/
|
||||
@XmlElementWrapper(name = "restrictions", required = false)
|
||||
@XmlElement(name = "restriction", required = true)
|
||||
protected List<TeleportRestriction> restrictions;
|
||||
|
||||
/**
|
||||
* Defines an teleport restriction
|
||||
*
|
||||
* @author <a href="http://www.rogiel.com">Rogiel</a>
|
||||
*/
|
||||
@XmlType(name = "TeleportRestrictionType")
|
||||
public enum TeleportRestriction {
|
||||
/**
|
||||
* Only nobles can use this teleport
|
||||
*/
|
||||
NOBLE;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new {@link Coordinate}
|
||||
*
|
||||
* @return the created object
|
||||
*/
|
||||
public Coordinate create() {
|
||||
return coordinate;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the name
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the id
|
||||
*/
|
||||
public TeleportationTemplateID getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the itemTemplateID
|
||||
*/
|
||||
public ItemTemplateID getItemTemplateID() {
|
||||
return itemTemplateID;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the price
|
||||
*/
|
||||
public int getPrice() {
|
||||
return price;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the coordinate
|
||||
*/
|
||||
public Coordinate getCoordinate() {
|
||||
return coordinate;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TeleportationTemplateID getID() {
|
||||
return id;
|
||||
}
|
||||
}
|
||||
@@ -18,12 +18,13 @@ package com.l2jserver.model.world.npc.controller.impl;
|
||||
|
||||
import com.google.inject.Inject;
|
||||
import com.l2jserver.model.id.template.provider.TeleportationTemplateIDProvider;
|
||||
import com.l2jserver.model.template.npc.TeleportationTemplate;
|
||||
import com.l2jserver.model.template.TeleportationTemplate;
|
||||
import com.l2jserver.model.world.L2Character;
|
||||
import com.l2jserver.model.world.NPC;
|
||||
import com.l2jserver.model.world.npc.BaseNPCController;
|
||||
import com.l2jserver.service.game.spawn.SpawnService;
|
||||
import com.l2jserver.util.exception.L2Exception;
|
||||
import com.l2jserver.util.geometry.Coordinate;
|
||||
|
||||
/**
|
||||
* This controller is used to control teleporters (e.g. gatekeepers)
|
||||
@@ -48,12 +49,14 @@ public class TeleporterController extends BaseNPCController {
|
||||
if (args.length >= 2) {
|
||||
switch (args[0]) {
|
||||
case "goto":
|
||||
final TeleportationTemplate tele = teleportationIdProvider.resolveID(Integer.parseInt(args[1])).getTemplate();
|
||||
final TeleportationTemplate tele = teleportationIdProvider
|
||||
.resolveID(Integer.parseInt(args[1])).getTemplate();
|
||||
if (tele == null) {
|
||||
throw new NPCControllerException();
|
||||
}
|
||||
// TODO remove items from character inventory
|
||||
spawnService.teleport(character, tele.getCoordinate());
|
||||
spawnService.teleport(character,
|
||||
Coordinate.fromTemplateCoordinate(tele.getPoint()));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,11 +32,6 @@ import javax.xml.bind.JAXB;
|
||||
import javax.xml.bind.JAXBContext;
|
||||
import javax.xml.bind.JAXBException;
|
||||
import javax.xml.bind.Unmarshaller;
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import javax.xml.transform.Source;
|
||||
import javax.xml.transform.stream.StreamSource;
|
||||
import javax.xml.validation.SchemaFactory;
|
||||
@@ -54,7 +49,6 @@ import com.l2jserver.model.template.NPCTemplate;
|
||||
import com.l2jserver.model.template.SkillTemplate;
|
||||
import com.l2jserver.model.template.Teleports;
|
||||
import com.l2jserver.model.template.Template;
|
||||
import com.l2jserver.model.template.npc.TeleportationTemplate;
|
||||
import com.l2jserver.service.AbstractConfigurableService;
|
||||
import com.l2jserver.service.AbstractService.Depends;
|
||||
import com.l2jserver.service.ServiceStartException;
|
||||
@@ -257,8 +251,11 @@ public class XMLTemplateService extends
|
||||
* if any error occur while processing the XML
|
||||
* @throws IOException
|
||||
* if any error occur in the I/O level
|
||||
* @throws ServiceStartException
|
||||
* if the template type is not known
|
||||
*/
|
||||
public void loadTemplate(Path path) throws JAXBException, IOException {
|
||||
public void loadTemplate(Path path) throws JAXBException, IOException,
|
||||
ServiceStartException {
|
||||
Preconditions.checkNotNull(path, "path");
|
||||
log.debug("Loading template {}", path);
|
||||
final InputStream in = Files.newInputStream(path,
|
||||
@@ -270,12 +267,15 @@ public class XMLTemplateService extends
|
||||
log.debug("Template loaded: {}", template);
|
||||
if (template.getID() != null)
|
||||
templates.put(template.getID(), template);
|
||||
} else if (obj instanceof TeleportationTemplateContainer) {
|
||||
for (final Template template : ((TeleportationTemplateContainer) obj).templates) {
|
||||
} else if (obj instanceof Teleports) {
|
||||
for (final Template template : ((Teleports) obj).getTeleport()) {
|
||||
log.debug("Template loaded: {}", template);
|
||||
if (template.getID() != null)
|
||||
templates.put(template.getID(), template);
|
||||
}
|
||||
} else {
|
||||
throw new ServiceStartException(
|
||||
"Unknown template container type: " + obj);
|
||||
}
|
||||
} finally {
|
||||
// in.close();
|
||||
@@ -301,20 +301,4 @@ public class XMLTemplateService extends
|
||||
unmarshaller = null;
|
||||
context = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* The teleportation template container
|
||||
*
|
||||
* @author <a href="http://www.rogiel.com">Rogiel</a>
|
||||
*/
|
||||
@XmlRootElement(name = "teleports", namespace = "http://schemas.l2jserver2.com/teleport")
|
||||
@XmlType(namespace = "http://schemas.l2jserver2.com/teleport", name = "TeleportsType")
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
public static class TeleportationTemplateContainer {
|
||||
/**
|
||||
* The list of all teleportation templates
|
||||
*/
|
||||
@XmlElement(namespace = "http://schemas.l2jserver2.com/teleport", name = "teleport")
|
||||
public List<TeleportationTemplate> templates;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,6 +18,8 @@ package com.l2jserver.util.geometry;
|
||||
|
||||
import org.apache.commons.math.geometry.Vector3D;
|
||||
|
||||
import com.l2jserver.model.template.TemplateCoordinate;
|
||||
|
||||
/**
|
||||
* Represents an coordinate in the game world.
|
||||
* <p>
|
||||
@@ -106,6 +108,19 @@ public class Coordinate {
|
||||
return new Coordinate(x, y, z);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance from the another {@link TemplateCoordinate}
|
||||
*
|
||||
* @param templateCoordinate
|
||||
* the template coordinate
|
||||
* @return the new {@link Coordinate} object created
|
||||
*/
|
||||
public static Coordinate fromTemplateCoordinate(
|
||||
TemplateCoordinate templateCoordinate) {
|
||||
return fromXYZ(templateCoordinate.getX(), templateCoordinate.getY(),
|
||||
templateCoordinate.getZ());
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Coordinate [" + vector + "]";
|
||||
|
||||
Reference in New Issue
Block a user