1
0
mirror of https://github.com/Rogiel/l2jserver2 synced 2025-12-06 07:32:46 +00:00

Source code cleanup

This commit is contained in:
2012-03-25 15:57:51 -03:00
parent 10cb453d4a
commit 1084905350
109 changed files with 6961 additions and 7236 deletions

View File

@@ -186,7 +186,8 @@ public class SoftCacheService extends AbstractService implements CacheService {
while ((en = (SoftEntry) refQueue.poll()) != null) { while ((en = (SoftEntry) refQueue.poll()) != null) {
K key = en.getKey(); K key = en.getKey();
if (log.isDebugEnabled()) if (log.isDebugEnabled())
log.debug("{} : cleaned up value for key: {}", cacheName, key); log.debug("{} : cleaned up value for key: {}", cacheName,
key);
cacheMap.remove(key); cacheMap.remove(key);
} }
} }

View File

@@ -185,7 +185,8 @@ public class WeakCacheService extends AbstractService implements CacheService {
while ((en = (Entry) refQueue.poll()) != null) { while ((en = (Entry) refQueue.poll()) != null) {
K key = en.getKey(); K key = en.getKey();
if (log.isDebugEnabled()) if (log.isDebugEnabled())
log.debug("{}: cleaned up value for key: {}", cacheName, key); log.debug("{}: cleaned up value for key: {}", cacheName,
key);
cacheMap.remove(key); cacheMap.remove(key);
} }
} }

View File

@@ -52,8 +52,7 @@ public class Log4JLoggingService extends
@Override @Override
protected void doStart() throws ServiceStartException { protected void doStart() throws ServiceStartException {
final Layout layout = new PatternLayout( final Layout layout = new PatternLayout("[%p %d] %c{1} - %m%n");
"[%p %d] %c{1} - %m%n");
rootLogger = Logger.getRootLogger(); rootLogger = Logger.getRootLogger();
rootLogger.removeAllAppenders(); rootLogger.removeAllAppenders();

View File

@@ -50,7 +50,8 @@ public enum ThreadPoolPriority {
public final int threadPriority; public final int threadPriority;
/** /**
* @param threadPriority the {@link Thread} priority {@link Integer} index * @param threadPriority
* the {@link Thread} priority {@link Integer} index
*/ */
ThreadPoolPriority(int threadPriority) { ThreadPoolPriority(int threadPriority) {
this.threadPriority = threadPriority; this.threadPriority = threadPriority;

View File

@@ -88,7 +88,6 @@ public class Java7VFSService extends
return dataRoot.resolve(path); return dataRoot.resolve(path);
} }
@Override @Override
protected void doStop() throws ServiceStopException { protected void doStop() throws ServiceStopException {
root = null; root = null;

View File

@@ -19,10 +19,10 @@ package com.l2jserver.service.database.ddl;
import java.util.List; import java.util.List;
import com.l2jserver.service.database.ddl.struct.Column; import com.l2jserver.service.database.ddl.struct.Column;
import com.l2jserver.service.database.ddl.struct.Column.ColumnType;
import com.l2jserver.service.database.ddl.struct.ForeignKey; import com.l2jserver.service.database.ddl.struct.ForeignKey;
import com.l2jserver.service.database.ddl.struct.PrimaryKey; import com.l2jserver.service.database.ddl.struct.PrimaryKey;
import com.l2jserver.service.database.ddl.struct.Table; import com.l2jserver.service.database.ddl.struct.Table;
import com.l2jserver.service.database.ddl.struct.Column.ColumnType;
import com.l2jserver.util.factory.CollectionFactory; import com.l2jserver.util.factory.CollectionFactory;
/** /**

View File

@@ -47,10 +47,14 @@ public class Table {
private final List<ForeignKey> foreignKeys = CollectionFactory.newList(); private final List<ForeignKey> foreignKeys = CollectionFactory.newList();
/** /**
* @param name the table name * @param name
* @param columns the column * the table name
* @param primaryKey the primary key * @param columns
* @param foreignKeys the foreign keys * the column
* @param primaryKey
* the primary key
* @param foreignKeys
* the foreign keys
*/ */
public Table(String name, Map<String, Column> columns, public Table(String name, Map<String, Column> columns,
PrimaryKey primaryKey, List<ForeignKey> foreignKeys) { PrimaryKey primaryKey, List<ForeignKey> foreignKeys) {
@@ -62,8 +66,10 @@ public class Table {
} }
/** /**
* @param name the table name * @param name
* @param primaryKey the primary key * the table name
* @param primaryKey
* the primary key
*/ */
public Table(String name, PrimaryKey primaryKey) { public Table(String name, PrimaryKey primaryKey) {
this.name = name; this.name = name;
@@ -104,7 +110,8 @@ public class Table {
} }
/** /**
* @param name the column name * @param name
* the column name
* @return the column represented by <code>name</code> * @return the column represented by <code>name</code>
*/ */
public Column getColumn(String name) { public Column getColumn(String name) {

View File

@@ -1103,7 +1103,8 @@ public abstract class AbstractSQLDatabaseService extends
* *
* @param q * @param q
* the query clause * the query clause
* @param e the entity * @param e
* the entity
*/ */
protected abstract void query(AbstractSQLQuery<?> q, E e); protected abstract void query(AbstractSQLQuery<?> q, E e);
} }

View File

@@ -57,7 +57,8 @@ public class QPathUtils {
* @return the {@link Field} holding <code>path</code> * @return the {@link Field} holding <code>path</code>
*/ */
public static Field getReflectionField(Path<?> path) { public static Field getReflectionField(Path<?> path) {
return ClassUtils.getFieldWithValue(path.getMetadata().getParent(), path); return ClassUtils.getFieldWithValue(path.getMetadata().getParent(),
path);
} }
/** /**
@@ -81,7 +82,7 @@ public class QPathUtils {
*/ */
public static int getColumnSize(Path<?> path) { public static int getColumnSize(Path<?> path) {
final Field field = getReflectionField(path); final Field field = getReflectionField(path);
if(field == null) if (field == null)
return 0; return 0;
final ColumnSize size = field.getAnnotation(ColumnSize.class); final ColumnSize size = field.getAnnotation(ColumnSize.class);
if (size != null) if (size != null)
@@ -96,7 +97,7 @@ public class QPathUtils {
*/ */
public static boolean isAutoIncrementable(Path<?> path) { public static boolean isAutoIncrementable(Path<?> path) {
final Field field = getReflectionField(path); final Field field = getReflectionField(path);
if(field == null) if (field == null)
return false; return false;
final ColumnAutoIncrement autoInc = field final ColumnAutoIncrement autoInc = field
.getAnnotation(ColumnAutoIncrement.class); .getAnnotation(ColumnAutoIncrement.class);
@@ -112,7 +113,7 @@ public class QPathUtils {
*/ */
public static boolean isNullable(Path<?> path) { public static boolean isNullable(Path<?> path) {
final Field field = getReflectionField(path); final Field field = getReflectionField(path);
if(field == null) if (field == null)
return false; return false;
final ColumnNullable nullable = field final ColumnNullable nullable = field
.getAnnotation(ColumnNullable.class); .getAnnotation(ColumnNullable.class);
@@ -130,7 +131,7 @@ public class QPathUtils {
*/ */
public static boolean hasDefaultValue(Path<?> path) { public static boolean hasDefaultValue(Path<?> path) {
final Field field = getReflectionField(path); final Field field = getReflectionField(path);
if(field == null) if (field == null)
return false; return false;
final ColumnDefault def = field.getAnnotation(ColumnDefault.class); final ColumnDefault def = field.getAnnotation(ColumnDefault.class);
if (def == null) { if (def == null) {
@@ -147,7 +148,7 @@ public class QPathUtils {
*/ */
public static String getDefaultUntransformedValue(Path<?> path) { public static String getDefaultUntransformedValue(Path<?> path) {
final Field field = getReflectionField(path); final Field field = getReflectionField(path);
if(field == null) if (field == null)
return null; return null;
final ColumnDefault def = field.getAnnotation(ColumnDefault.class); final ColumnDefault def = field.getAnnotation(ColumnDefault.class);
if (def != null) if (def != null)

View File

@@ -82,7 +82,7 @@ public class TransformerFactory {
return PathTransformer.SHARED_INSTANCE; return PathTransformer.SHARED_INSTANCE;
} else if (type.isEnum()) { } else if (type.isEnum()) {
return EnumTransformer.SHARED_INSTANCE; return EnumTransformer.SHARED_INSTANCE;
} else if(type.isArray()) { } else if (type.isArray()) {
return ArrayTransformer.SHARED_INSTANCE; return ArrayTransformer.SHARED_INSTANCE;
} else if (type == String.class) } else if (type == String.class)
return StringTransformer.SHARED_INSTANCE; return StringTransformer.SHARED_INSTANCE;

View File

@@ -47,6 +47,7 @@ public class ArrayUtilsTest extends ArrayUtils {
/** /**
* Simple test class * Simple test class
*
* @author <a href="http://www.rogiel.com">Rogiel</a> * @author <a href="http://www.rogiel.com">Rogiel</a>
*/ */
private static class TestClass { private static class TestClass {
@@ -56,7 +57,8 @@ public class ArrayUtilsTest extends ArrayUtils {
private String name; private String name;
/** /**
* @param string the name * @param string
* the name
*/ */
public TestClass(String string) { public TestClass(String string) {
this.name = string; this.name = string;

View File

@@ -5,7 +5,6 @@
// Generated on: 2012.03.25 at 01:03:28 PM BRT // Generated on: 2012.03.25 at 01:03:28 PM BRT
// //
package com.l2jserver.model.template; package com.l2jserver.model.template;
import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessType;
@@ -13,11 +12,13 @@ import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlSeeAlso; import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType; 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> * <pre>
* &lt;complexType name="AbstractTemplate"> * &lt;complexType name="AbstractTemplate">
@@ -34,15 +35,8 @@ import javax.xml.bind.annotation.XmlType;
*/ */
@XmlAccessorType(XmlAccessType.FIELD) @XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "AbstractTemplate") @XmlType(name = "AbstractTemplate")
@XmlSeeAlso({ @XmlSeeAlso({ ItemTemplate.class, ActorTemplate.class, SkillTemplate.class,
ItemTemplate.class, com.l2jserver.model.template.Teleports.Teleport.class })
ActorTemplate.class, public abstract class AbstractTemplate implements Template {
SkillTemplate.class,
com.l2jserver.model.template.Teleports.Teleport.class
})
public abstract class AbstractTemplate
implements Template
{
} }

View File

@@ -5,7 +5,6 @@
// Generated on: 2012.03.25 at 01:03:28 PM BRT // Generated on: 2012.03.25 at 01:03:28 PM BRT
// //
package com.l2jserver.model.template; package com.l2jserver.model.template;
import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessType;
@@ -13,11 +12,13 @@ import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlSeeAlso; import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType; 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> * <pre>
* &lt;complexType name="ActorTemplate"> * &lt;complexType name="ActorTemplate">
@@ -32,13 +33,7 @@ import javax.xml.bind.annotation.XmlType;
*/ */
@XmlAccessorType(XmlAccessType.FIELD) @XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ActorTemplate") @XmlType(name = "ActorTemplate")
@XmlSeeAlso({ @XmlSeeAlso({ CharacterTemplate.class, NPCTemplate.class })
CharacterTemplate.class, public abstract class ActorTemplate extends AbstractTemplate {
NPCTemplate.class
})
public abstract class ActorTemplate
extends AbstractTemplate
{
} }

View File

@@ -5,18 +5,19 @@
// Generated on: 2012.03.25 at 01:03:28 PM BRT // Generated on: 2012.03.25 at 01:03:28 PM BRT
// //
package com.l2jserver.model.template; package com.l2jserver.model.template;
import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType; 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> * <pre>
* &lt;complexType name="CalculatorFunction"> * &lt;complexType name="CalculatorFunction">
@@ -36,12 +37,8 @@ import javax.xml.bind.annotation.XmlType;
* *
*/ */
@XmlAccessorType(XmlAccessType.FIELD) @XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CalculatorFunction", propOrder = { @XmlType(name = "CalculatorFunction", propOrder = { "set", "add", "subtract",
"set", "random" })
"add",
"subtract",
"random"
})
public class CalculatorFunction { public class CalculatorFunction {
protected CalculatorFunctionOperation set; protected CalculatorFunctionOperation set;
@@ -52,9 +49,7 @@ public class CalculatorFunction {
/** /**
* Gets the value of the set property. * Gets the value of the set property.
* *
* @return * @return possible object is {@link CalculatorFunctionOperation }
* possible object is
* {@link CalculatorFunctionOperation }
* *
*/ */
public CalculatorFunctionOperation getSet() { public CalculatorFunctionOperation getSet() {
@@ -65,8 +60,7 @@ public class CalculatorFunction {
* Sets the value of the set property. * Sets the value of the set property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link CalculatorFunctionOperation }
* {@link CalculatorFunctionOperation }
* *
*/ */
public void setSet(CalculatorFunctionOperation value) { public void setSet(CalculatorFunctionOperation value) {
@@ -76,9 +70,7 @@ public class CalculatorFunction {
/** /**
* Gets the value of the add property. * Gets the value of the add property.
* *
* @return * @return possible object is {@link CalculatorFunctionOperation }
* possible object is
* {@link CalculatorFunctionOperation }
* *
*/ */
public CalculatorFunctionOperation getAdd() { public CalculatorFunctionOperation getAdd() {
@@ -89,8 +81,7 @@ public class CalculatorFunction {
* Sets the value of the add property. * Sets the value of the add property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link CalculatorFunctionOperation }
* {@link CalculatorFunctionOperation }
* *
*/ */
public void setAdd(CalculatorFunctionOperation value) { public void setAdd(CalculatorFunctionOperation value) {
@@ -100,9 +91,7 @@ public class CalculatorFunction {
/** /**
* Gets the value of the subtract property. * Gets the value of the subtract property.
* *
* @return * @return possible object is {@link CalculatorFunctionOperation }
* possible object is
* {@link CalculatorFunctionOperation }
* *
*/ */
public CalculatorFunctionOperation getSubtract() { public CalculatorFunctionOperation getSubtract() {
@@ -113,8 +102,7 @@ public class CalculatorFunction {
* Sets the value of the subtract property. * Sets the value of the subtract property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link CalculatorFunctionOperation }
* {@link CalculatorFunctionOperation }
* *
*/ */
public void setSubtract(CalculatorFunctionOperation value) { public void setSubtract(CalculatorFunctionOperation value) {
@@ -124,9 +112,7 @@ public class CalculatorFunction {
/** /**
* Gets the value of the random property. * Gets the value of the random property.
* *
* @return * @return possible object is {@link CalculatorFunctionOperation }
* possible object is
* {@link CalculatorFunctionOperation }
* *
*/ */
public CalculatorFunctionOperation getRandom() { public CalculatorFunctionOperation getRandom() {
@@ -137,8 +123,7 @@ public class CalculatorFunction {
* Sets the value of the random property. * Sets the value of the random property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link CalculatorFunctionOperation }
* {@link CalculatorFunctionOperation }
* *
*/ */
public void setRandom(CalculatorFunctionOperation value) { public void setRandom(CalculatorFunctionOperation value) {

View File

@@ -5,20 +5,22 @@
// Generated on: 2012.03.25 at 01:03:28 PM BRT // Generated on: 2012.03.25 at 01:03:28 PM BRT
// //
package com.l2jserver.model.template; package com.l2jserver.model.template;
import java.math.BigInteger; import java.math.BigInteger;
import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType; 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> * <pre>
* &lt;complexType name="CalculatorFunctionOperation"> * &lt;complexType name="CalculatorFunctionOperation">
@@ -45,9 +47,7 @@ public class CalculatorFunctionOperation {
/** /**
* Gets the value of the order property. * Gets the value of the order property.
* *
* @return * @return possible object is {@link BigInteger }
* possible object is
* {@link BigInteger }
* *
*/ */
public BigInteger getOrder() { public BigInteger getOrder() {
@@ -58,8 +58,7 @@ public class CalculatorFunctionOperation {
* Sets the value of the order property. * Sets the value of the order property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link BigInteger }
* {@link BigInteger }
* *
*/ */
public void setOrder(BigInteger value) { public void setOrder(BigInteger value) {

View File

@@ -5,7 +5,6 @@
// Generated on: 2012.03.25 at 01:03:28 PM BRT // Generated on: 2012.03.25 at 01:03:28 PM BRT
// //
package com.l2jserver.model.template; package com.l2jserver.model.template;
import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessType;
@@ -15,14 +14,17 @@ import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import com.l2jserver.model.id.template.CharacterTemplateID; import com.l2jserver.model.id.template.CharacterTemplateID;
import com.l2jserver.util.jaxb.CharacterTemplateIDAdapter; import com.l2jserver.util.jaxb.CharacterTemplateIDAdapter;
/** /**
* <p>Java class for character element declaration. * <p>
* Java class for character 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> * <pre>
* &lt;element name="character"> * &lt;element name="character">
@@ -224,14 +226,9 @@ import com.l2jserver.util.jaxb.CharacterTemplateIDAdapter;
* *
*/ */
@XmlAccessorType(XmlAccessType.FIELD) @XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = { @XmlType(name = "", propOrder = { "stats", "collision" })
"stats",
"collision"
})
@XmlRootElement(name = "character", namespace = "http://schemas.l2jserver2.com/character") @XmlRootElement(name = "character", namespace = "http://schemas.l2jserver2.com/character")
public class CharacterTemplate public class CharacterTemplate extends ActorTemplate {
extends ActorTemplate
{
@XmlElement(required = true) @XmlElement(required = true)
protected CharacterTemplate.Stats stats; protected CharacterTemplate.Stats stats;
@@ -244,9 +241,7 @@ public class CharacterTemplate
/** /**
* Gets the value of the stats property. * Gets the value of the stats property.
* *
* @return * @return possible object is {@link CharacterTemplate.Stats }
* possible object is
* {@link CharacterTemplate.Stats }
* *
*/ */
public CharacterTemplate.Stats getStats() { public CharacterTemplate.Stats getStats() {
@@ -257,8 +252,7 @@ public class CharacterTemplate
* Sets the value of the stats property. * Sets the value of the stats property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link CharacterTemplate.Stats }
* {@link CharacterTemplate.Stats }
* *
*/ */
public void setStats(CharacterTemplate.Stats value) { public void setStats(CharacterTemplate.Stats value) {
@@ -268,9 +262,7 @@ public class CharacterTemplate
/** /**
* Gets the value of the collision property. * Gets the value of the collision property.
* *
* @return * @return possible object is {@link CharacterTemplate.Collision }
* possible object is
* {@link CharacterTemplate.Collision }
* *
*/ */
public CharacterTemplate.Collision getCollision() { public CharacterTemplate.Collision getCollision() {
@@ -281,8 +273,7 @@ public class CharacterTemplate
* Sets the value of the collision property. * Sets the value of the collision property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link CharacterTemplate.Collision }
* {@link CharacterTemplate.Collision }
* *
*/ */
public void setCollision(CharacterTemplate.Collision value) { public void setCollision(CharacterTemplate.Collision value) {
@@ -292,9 +283,7 @@ public class CharacterTemplate
/** /**
* Gets the value of the id property. * Gets the value of the id property.
* *
* @return * @return possible object is {@link String }
* possible object is
* {@link String }
* *
*/ */
public CharacterTemplateID getID() { public CharacterTemplateID getID() {
@@ -305,19 +294,20 @@ public class CharacterTemplate
* Sets the value of the id property. * Sets the value of the id property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link String }
* {@link String }
* *
*/ */
public void setID(CharacterTemplateID value) { public void setID(CharacterTemplateID value) {
this.id = value; this.id = value;
} }
/** /**
* <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> * <pre>
* &lt;complexType> * &lt;complexType>
@@ -357,10 +347,7 @@ public class CharacterTemplate
* *
*/ */
@XmlAccessorType(XmlAccessType.FIELD) @XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = { @XmlType(name = "", propOrder = { "male", "female" })
"male",
"female"
})
public static class Collision { public static class Collision {
@XmlElement(required = true) @XmlElement(required = true)
@@ -371,9 +358,7 @@ public class CharacterTemplate
/** /**
* Gets the value of the male property. * Gets the value of the male property.
* *
* @return * @return possible object is {@link CharacterTemplate.Collision.Male }
* possible object is
* {@link CharacterTemplate.Collision.Male }
* *
*/ */
public CharacterTemplate.Collision.Male getMale() { public CharacterTemplate.Collision.Male getMale() {
@@ -384,8 +369,7 @@ public class CharacterTemplate
* Sets the value of the male property. * Sets the value of the male property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link CharacterTemplate.Collision.Male }
* {@link CharacterTemplate.Collision.Male }
* *
*/ */
public void setMale(CharacterTemplate.Collision.Male value) { public void setMale(CharacterTemplate.Collision.Male value) {
@@ -395,9 +379,7 @@ public class CharacterTemplate
/** /**
* Gets the value of the female property. * Gets the value of the female property.
* *
* @return * @return possible object is {@link CharacterTemplate.Collision.Female }
* possible object is
* {@link CharacterTemplate.Collision.Female }
* *
*/ */
public CharacterTemplate.Collision.Female getFemale() { public CharacterTemplate.Collision.Female getFemale() {
@@ -416,11 +398,13 @@ public class CharacterTemplate
this.female = value; this.female = value;
} }
/** /**
* <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> * <pre>
* &lt;complexType> * &lt;complexType>
@@ -480,11 +464,13 @@ public class CharacterTemplate
} }
/** /**
* <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> * <pre>
* &lt;complexType> * &lt;complexType>
@@ -546,11 +532,13 @@ public class CharacterTemplate
} }
/** /**
* <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> * <pre>
* &lt;complexType> * &lt;complexType>
@@ -705,16 +693,8 @@ public class CharacterTemplate
* *
*/ */
@XmlAccessorType(XmlAccessType.FIELD) @XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = { @XmlType(name = "", propOrder = { "hp", "mp", "cp", "attack", "defense",
"hp", "move", "base", "maxload" })
"mp",
"cp",
"attack",
"defense",
"move",
"base",
"maxload"
})
public static class Stats { public static class Stats {
@XmlElement(required = true) @XmlElement(required = true)
@@ -740,9 +720,7 @@ public class CharacterTemplate
/** /**
* Gets the value of the hp property. * Gets the value of the hp property.
* *
* @return * @return possible object is {@link CharacterTemplate.Stats.Hp }
* possible object is
* {@link CharacterTemplate.Stats.Hp }
* *
*/ */
public CharacterTemplate.Stats.Hp getHp() { public CharacterTemplate.Stats.Hp getHp() {
@@ -753,8 +731,7 @@ public class CharacterTemplate
* Sets the value of the hp property. * Sets the value of the hp property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link CharacterTemplate.Stats.Hp }
* {@link CharacterTemplate.Stats.Hp }
* *
*/ */
public void setHp(CharacterTemplate.Stats.Hp value) { public void setHp(CharacterTemplate.Stats.Hp value) {
@@ -764,9 +741,7 @@ public class CharacterTemplate
/** /**
* Gets the value of the mp property. * Gets the value of the mp property.
* *
* @return * @return possible object is {@link CharacterTemplate.Stats.Mp }
* possible object is
* {@link CharacterTemplate.Stats.Mp }
* *
*/ */
public CharacterTemplate.Stats.Mp getMp() { public CharacterTemplate.Stats.Mp getMp() {
@@ -777,8 +752,7 @@ public class CharacterTemplate
* Sets the value of the mp property. * Sets the value of the mp property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link CharacterTemplate.Stats.Mp }
* {@link CharacterTemplate.Stats.Mp }
* *
*/ */
public void setMp(CharacterTemplate.Stats.Mp value) { public void setMp(CharacterTemplate.Stats.Mp value) {
@@ -788,9 +762,7 @@ public class CharacterTemplate
/** /**
* Gets the value of the cp property. * Gets the value of the cp property.
* *
* @return * @return possible object is {@link CharacterTemplate.Stats.Cp }
* possible object is
* {@link CharacterTemplate.Stats.Cp }
* *
*/ */
public CharacterTemplate.Stats.Cp getCp() { public CharacterTemplate.Stats.Cp getCp() {
@@ -801,8 +773,7 @@ public class CharacterTemplate
* Sets the value of the cp property. * Sets the value of the cp property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link CharacterTemplate.Stats.Cp }
* {@link CharacterTemplate.Stats.Cp }
* *
*/ */
public void setCp(CharacterTemplate.Stats.Cp value) { public void setCp(CharacterTemplate.Stats.Cp value) {
@@ -812,9 +783,7 @@ public class CharacterTemplate
/** /**
* Gets the value of the attack property. * Gets the value of the attack property.
* *
* @return * @return possible object is {@link CharacterTemplate.Stats.Attack }
* possible object is
* {@link CharacterTemplate.Stats.Attack }
* *
*/ */
public CharacterTemplate.Stats.Attack getAttack() { public CharacterTemplate.Stats.Attack getAttack() {
@@ -825,8 +794,7 @@ public class CharacterTemplate
* Sets the value of the attack property. * Sets the value of the attack property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link CharacterTemplate.Stats.Attack }
* {@link CharacterTemplate.Stats.Attack }
* *
*/ */
public void setAttack(CharacterTemplate.Stats.Attack value) { public void setAttack(CharacterTemplate.Stats.Attack value) {
@@ -836,9 +804,7 @@ public class CharacterTemplate
/** /**
* Gets the value of the defense property. * Gets the value of the defense property.
* *
* @return * @return possible object is {@link CharacterTemplate.Stats.Defense }
* possible object is
* {@link CharacterTemplate.Stats.Defense }
* *
*/ */
public CharacterTemplate.Stats.Defense getDefense() { public CharacterTemplate.Stats.Defense getDefense() {
@@ -849,8 +815,7 @@ public class CharacterTemplate
* Sets the value of the defense property. * Sets the value of the defense property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link CharacterTemplate.Stats.Defense }
* {@link CharacterTemplate.Stats.Defense }
* *
*/ */
public void setDefense(CharacterTemplate.Stats.Defense value) { public void setDefense(CharacterTemplate.Stats.Defense value) {
@@ -860,9 +825,7 @@ public class CharacterTemplate
/** /**
* Gets the value of the move property. * Gets the value of the move property.
* *
* @return * @return possible object is {@link CharacterTemplate.Stats.Move }
* possible object is
* {@link CharacterTemplate.Stats.Move }
* *
*/ */
public CharacterTemplate.Stats.Move getMove() { public CharacterTemplate.Stats.Move getMove() {
@@ -873,8 +836,7 @@ public class CharacterTemplate
* Sets the value of the move property. * Sets the value of the move property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link CharacterTemplate.Stats.Move }
* {@link CharacterTemplate.Stats.Move }
* *
*/ */
public void setMove(CharacterTemplate.Stats.Move value) { public void setMove(CharacterTemplate.Stats.Move value) {
@@ -884,9 +846,7 @@ public class CharacterTemplate
/** /**
* Gets the value of the base property. * Gets the value of the base property.
* *
* @return * @return possible object is {@link CharacterTemplate.Stats.Base }
* possible object is
* {@link CharacterTemplate.Stats.Base }
* *
*/ */
public CharacterTemplate.Stats.Base getBase() { public CharacterTemplate.Stats.Base getBase() {
@@ -897,8 +857,7 @@ public class CharacterTemplate
* Sets the value of the base property. * Sets the value of the base property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link CharacterTemplate.Stats.Base }
* {@link CharacterTemplate.Stats.Base }
* *
*/ */
public void setBase(CharacterTemplate.Stats.Base value) { public void setBase(CharacterTemplate.Stats.Base value) {
@@ -953,11 +912,13 @@ public class CharacterTemplate
this.crafter = value; this.crafter = value;
} }
/** /**
* <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> * <pre>
* &lt;complexType> * &lt;complexType>
@@ -1000,10 +961,7 @@ public class CharacterTemplate
* *
*/ */
@XmlAccessorType(XmlAccessType.FIELD) @XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = { @XmlType(name = "", propOrder = { "physical", "magical" })
"physical",
"magical"
})
public static class Attack { public static class Attack {
@XmlElement(required = true) @XmlElement(required = true)
@@ -1020,8 +978,7 @@ public class CharacterTemplate
/** /**
* Gets the value of the physical property. * Gets the value of the physical property.
* *
* @return * @return possible object is
* possible object is
* {@link CharacterTemplate.Stats.Attack.Physical } * {@link CharacterTemplate.Stats.Attack.Physical }
* *
*/ */
@@ -1037,15 +994,15 @@ public class CharacterTemplate
* {@link CharacterTemplate.Stats.Attack.Physical } * {@link CharacterTemplate.Stats.Attack.Physical }
* *
*/ */
public void setPhysical(CharacterTemplate.Stats.Attack.Physical value) { public void setPhysical(
CharacterTemplate.Stats.Attack.Physical value) {
this.physical = value; this.physical = value;
} }
/** /**
* Gets the value of the magical property. * Gets the value of the magical property.
* *
* @return * @return possible object is
* possible object is
* {@link CharacterTemplate.Stats.Attack.Magical } * {@link CharacterTemplate.Stats.Attack.Magical }
* *
*/ */
@@ -1113,11 +1070,13 @@ public class CharacterTemplate
this.accuracy = value; this.accuracy = value;
} }
/** /**
* <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> * <pre>
* &lt;complexType> * &lt;complexType>
@@ -1177,11 +1136,13 @@ public class CharacterTemplate
} }
/** /**
* <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> * <pre>
* &lt;complexType> * &lt;complexType>
@@ -1243,11 +1204,13 @@ public class CharacterTemplate
} }
/** /**
* <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> * <pre>
* &lt;complexType> * &lt;complexType>
@@ -1383,11 +1346,13 @@ public class CharacterTemplate
} }
/** /**
* <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> * <pre>
* &lt;complexType> * &lt;complexType>
@@ -1466,11 +1431,13 @@ public class CharacterTemplate
} }
/** /**
* <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> * <pre>
* &lt;complexType> * &lt;complexType>
@@ -1508,10 +1475,7 @@ public class CharacterTemplate
* *
*/ */
@XmlAccessorType(XmlAccessType.FIELD) @XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = { @XmlType(name = "", propOrder = { "physical", "magical" })
"physical",
"magical"
})
public static class Defense { public static class Defense {
@XmlElement(required = true) @XmlElement(required = true)
@@ -1522,8 +1486,7 @@ public class CharacterTemplate
/** /**
* Gets the value of the physical property. * Gets the value of the physical property.
* *
* @return * @return possible object is
* possible object is
* {@link CharacterTemplate.Stats.Defense.Physical } * {@link CharacterTemplate.Stats.Defense.Physical }
* *
*/ */
@@ -1539,15 +1502,15 @@ public class CharacterTemplate
* {@link CharacterTemplate.Stats.Defense.Physical } * {@link CharacterTemplate.Stats.Defense.Physical }
* *
*/ */
public void setPhysical(CharacterTemplate.Stats.Defense.Physical value) { public void setPhysical(
CharacterTemplate.Stats.Defense.Physical value) {
this.physical = value; this.physical = value;
} }
/** /**
* Gets the value of the magical property. * Gets the value of the magical property.
* *
* @return * @return possible object is
* possible object is
* {@link CharacterTemplate.Stats.Defense.Magical } * {@link CharacterTemplate.Stats.Defense.Magical }
* *
*/ */
@@ -1567,11 +1530,13 @@ public class CharacterTemplate
this.magical = value; this.magical = value;
} }
/** /**
* <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> * <pre>
* &lt;complexType> * &lt;complexType>
@@ -1612,11 +1577,13 @@ public class CharacterTemplate
} }
/** /**
* <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> * <pre>
* &lt;complexType> * &lt;complexType>
@@ -1659,11 +1626,13 @@ public class CharacterTemplate
} }
/** /**
* <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> * <pre>
* &lt;complexType> * &lt;complexType>
@@ -1742,11 +1711,13 @@ public class CharacterTemplate
} }
/** /**
* <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> * <pre>
* &lt;complexType> * &lt;complexType>
@@ -1806,11 +1777,13 @@ public class CharacterTemplate
} }
/** /**
* <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> * <pre>
* &lt;complexType> * &lt;complexType>

View File

@@ -5,7 +5,6 @@
// Generated on: 2012.03.25 at 01:03:28 PM BRT // Generated on: 2012.03.25 at 01:03:28 PM BRT
// //
package com.l2jserver.model.template; package com.l2jserver.model.template;
import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessType;
@@ -13,11 +12,13 @@ import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType; 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> * <pre>
* &lt;complexType name="Coordinate"> * &lt;complexType name="Coordinate">

View File

@@ -5,7 +5,6 @@
// Generated on: 2012.03.25 at 01:03:28 PM BRT // Generated on: 2012.03.25 at 01:03:28 PM BRT
// //
package com.l2jserver.model.template; package com.l2jserver.model.template;
import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessType;
@@ -16,6 +15,7 @@ import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import com.l2jserver.model.id.template.ItemTemplateID; import com.l2jserver.model.id.template.ItemTemplateID;
import com.l2jserver.model.template.item.ArmorType; import com.l2jserver.model.template.item.ArmorType;
import com.l2jserver.model.template.item.ItemMaterial; import com.l2jserver.model.template.item.ItemMaterial;
@@ -27,11 +27,13 @@ import com.l2jserver.util.jaxb.ItemTemplateIDAdapter;
import com.l2jserver.util.jaxb.ItemTypeAdapter; import com.l2jserver.util.jaxb.ItemTypeAdapter;
import com.l2jserver.util.jaxb.WeaponTypeAdapter; import com.l2jserver.util.jaxb.WeaponTypeAdapter;
/** /**
* <p>Java class for item element declaration. * <p>
* Java class for item 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> * <pre>
* &lt;element name="item"> * &lt;element name="item">
@@ -154,18 +156,10 @@ import com.l2jserver.util.jaxb.WeaponTypeAdapter;
* *
*/ */
@XmlAccessorType(XmlAccessType.FIELD) @XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = { @XmlType(name = "", propOrder = { "attributes", "controller", "effect",
"attributes", "etcItem", "weapon", "armor" })
"controller",
"effect",
"etcItem",
"weapon",
"armor"
})
@XmlRootElement(name = "item", namespace = "http://schemas.l2jserver2.com/item") @XmlRootElement(name = "item", namespace = "http://schemas.l2jserver2.com/item")
public class ItemTemplate public class ItemTemplate extends AbstractTemplate {
extends AbstractTemplate
{
@XmlElement(required = true) @XmlElement(required = true)
protected ItemTemplate.Attributes attributes; protected ItemTemplate.Attributes attributes;
@@ -187,9 +181,7 @@ public class ItemTemplate
/** /**
* Gets the value of the attributes property. * Gets the value of the attributes property.
* *
* @return * @return possible object is {@link ItemTemplate.Attributes }
* possible object is
* {@link ItemTemplate.Attributes }
* *
*/ */
public ItemTemplate.Attributes getAttributes() { public ItemTemplate.Attributes getAttributes() {
@@ -200,8 +192,7 @@ public class ItemTemplate
* Sets the value of the attributes property. * Sets the value of the attributes property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link ItemTemplate.Attributes }
* {@link ItemTemplate.Attributes }
* *
*/ */
public void setAttributes(ItemTemplate.Attributes value) { public void setAttributes(ItemTemplate.Attributes value) {
@@ -211,9 +202,7 @@ public class ItemTemplate
/** /**
* Gets the value of the controller property. * Gets the value of the controller property.
* *
* @return * @return possible object is {@link ItemTemplate.Controller }
* possible object is
* {@link ItemTemplate.Controller }
* *
*/ */
public ItemTemplate.Controller getController() { public ItemTemplate.Controller getController() {
@@ -224,8 +213,7 @@ public class ItemTemplate
* Sets the value of the controller property. * Sets the value of the controller property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link ItemTemplate.Controller }
* {@link ItemTemplate.Controller }
* *
*/ */
public void setController(ItemTemplate.Controller value) { public void setController(ItemTemplate.Controller value) {
@@ -235,9 +223,7 @@ public class ItemTemplate
/** /**
* Gets the value of the effect property. * Gets the value of the effect property.
* *
* @return * @return possible object is {@link ItemTemplate.Effect }
* possible object is
* {@link ItemTemplate.Effect }
* *
*/ */
public ItemTemplate.Effect getEffect() { public ItemTemplate.Effect getEffect() {
@@ -248,8 +234,7 @@ public class ItemTemplate
* Sets the value of the effect property. * Sets the value of the effect property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link ItemTemplate.Effect }
* {@link ItemTemplate.Effect }
* *
*/ */
public void setEffect(ItemTemplate.Effect value) { public void setEffect(ItemTemplate.Effect value) {
@@ -259,9 +244,7 @@ public class ItemTemplate
/** /**
* Gets the value of the etcItem property. * Gets the value of the etcItem property.
* *
* @return * @return possible object is {@link ItemTemplate.EtcItem }
* possible object is
* {@link ItemTemplate.EtcItem }
* *
*/ */
public ItemTemplate.EtcItem getEtcItem() { public ItemTemplate.EtcItem getEtcItem() {
@@ -272,8 +255,7 @@ public class ItemTemplate
* Sets the value of the etcItem property. * Sets the value of the etcItem property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link ItemTemplate.EtcItem }
* {@link ItemTemplate.EtcItem }
* *
*/ */
public void setEtcItem(ItemTemplate.EtcItem value) { public void setEtcItem(ItemTemplate.EtcItem value) {
@@ -283,9 +265,7 @@ public class ItemTemplate
/** /**
* Gets the value of the weapon property. * Gets the value of the weapon property.
* *
* @return * @return possible object is {@link ItemTemplate.Weapon }
* possible object is
* {@link ItemTemplate.Weapon }
* *
*/ */
public ItemTemplate.Weapon getWeapon() { public ItemTemplate.Weapon getWeapon() {
@@ -296,8 +276,7 @@ public class ItemTemplate
* Sets the value of the weapon property. * Sets the value of the weapon property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link ItemTemplate.Weapon }
* {@link ItemTemplate.Weapon }
* *
*/ */
public void setWeapon(ItemTemplate.Weapon value) { public void setWeapon(ItemTemplate.Weapon value) {
@@ -307,9 +286,7 @@ public class ItemTemplate
/** /**
* Gets the value of the armor property. * Gets the value of the armor property.
* *
* @return * @return possible object is {@link ItemTemplate.Armor }
* possible object is
* {@link ItemTemplate.Armor }
* *
*/ */
public ItemTemplate.Armor getArmor() { public ItemTemplate.Armor getArmor() {
@@ -320,8 +297,7 @@ public class ItemTemplate
* Sets the value of the armor property. * Sets the value of the armor property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link ItemTemplate.Armor }
* {@link ItemTemplate.Armor }
* *
*/ */
public void setArmor(ItemTemplate.Armor value) { public void setArmor(ItemTemplate.Armor value) {
@@ -331,9 +307,7 @@ public class ItemTemplate
/** /**
* Gets the value of the id property. * Gets the value of the id property.
* *
* @return * @return possible object is {@link String }
* possible object is
* {@link String }
* *
*/ */
public ItemTemplateID getID() { public ItemTemplateID getID() {
@@ -344,8 +318,7 @@ public class ItemTemplate
* Sets the value of the id property. * Sets the value of the id property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link String }
* {@link String }
* *
*/ */
public void setID(ItemTemplateID value) { public void setID(ItemTemplateID value) {
@@ -355,9 +328,7 @@ public class ItemTemplate
/** /**
* Gets the value of the name property. * Gets the value of the name property.
* *
* @return * @return possible object is {@link String }
* possible object is
* {@link String }
* *
*/ */
public String getName() { public String getName() {
@@ -368,8 +339,7 @@ public class ItemTemplate
* Sets the value of the name property. * Sets the value of the name property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link String }
* {@link String }
* *
*/ */
public void setName(String value) { public void setName(String value) {
@@ -379,9 +349,7 @@ public class ItemTemplate
/** /**
* Gets the value of the icon property. * Gets the value of the icon property.
* *
* @return * @return possible object is {@link String }
* possible object is
* {@link String }
* *
*/ */
public String getIcon() { public String getIcon() {
@@ -392,19 +360,20 @@ public class ItemTemplate
* Sets the value of the icon property. * Sets the value of the icon property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link String }
* {@link String }
* *
*/ */
public void setIcon(String value) { public void setIcon(String value) {
this.icon = value; this.icon = value;
} }
/** /**
* <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> * <pre>
* &lt;complexType> * &lt;complexType>
@@ -440,10 +409,7 @@ public class ItemTemplate
* *
*/ */
@XmlAccessorType(XmlAccessType.FIELD) @XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = { @XmlType(name = "", propOrder = { "cost", "equipment" })
"cost",
"equipment"
})
public static class Armor { public static class Armor {
@XmlElement(required = true) @XmlElement(required = true)
@@ -460,9 +426,7 @@ public class ItemTemplate
/** /**
* Gets the value of the cost property. * Gets the value of the cost property.
* *
* @return * @return possible object is {@link ItemTemplate.Armor.Cost }
* possible object is
* {@link ItemTemplate.Armor.Cost }
* *
*/ */
public ItemTemplate.Armor.Cost getCost() { public ItemTemplate.Armor.Cost getCost() {
@@ -473,8 +437,7 @@ public class ItemTemplate
* Sets the value of the cost property. * Sets the value of the cost property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link ItemTemplate.Armor.Cost }
* {@link ItemTemplate.Armor.Cost }
* *
*/ */
public void setCost(ItemTemplate.Armor.Cost value) { public void setCost(ItemTemplate.Armor.Cost value) {
@@ -484,9 +447,7 @@ public class ItemTemplate
/** /**
* Gets the value of the equipment property. * Gets the value of the equipment property.
* *
* @return * @return possible object is {@link ItemTemplate.Armor.Equipment }
* possible object is
* {@link ItemTemplate.Armor.Equipment }
* *
*/ */
public ItemTemplate.Armor.Equipment getEquipment() { public ItemTemplate.Armor.Equipment getEquipment() {
@@ -497,8 +458,7 @@ public class ItemTemplate
* Sets the value of the equipment property. * Sets the value of the equipment property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link ItemTemplate.Armor.Equipment }
* {@link ItemTemplate.Armor.Equipment }
* *
*/ */
public void setEquipment(ItemTemplate.Armor.Equipment value) { public void setEquipment(ItemTemplate.Armor.Equipment value) {
@@ -508,9 +468,7 @@ public class ItemTemplate
/** /**
* Gets the value of the weigth property. * Gets the value of the weigth property.
* *
* @return * @return possible object is {@link String }
* possible object is
* {@link String }
* *
*/ */
public String getWeigth() { public String getWeigth() {
@@ -521,8 +479,7 @@ public class ItemTemplate
* Sets the value of the weigth property. * Sets the value of the weigth property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link String }
* {@link String }
* *
*/ */
public void setWeigth(String value) { public void setWeigth(String value) {
@@ -532,9 +489,7 @@ public class ItemTemplate
/** /**
* Gets the value of the type property. * Gets the value of the type property.
* *
* @return * @return possible object is {@link String }
* possible object is
* {@link String }
* *
*/ */
public ArmorType getType() { public ArmorType getType() {
@@ -545,19 +500,20 @@ public class ItemTemplate
* Sets the value of the type property. * Sets the value of the type property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link String }
* {@link String }
* *
*/ */
public void setType(ArmorType value) { public void setType(ArmorType value) {
this.type = value; this.type = value;
} }
/** /**
* <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> * <pre>
* &lt;complexType> * &lt;complexType>
@@ -582,9 +538,7 @@ public class ItemTemplate
/** /**
* Gets the value of the adena property. * Gets the value of the adena property.
* *
* @return * @return possible object is {@link String }
* possible object is
* {@link String }
* *
*/ */
public String getAdena() { public String getAdena() {
@@ -595,8 +549,7 @@ public class ItemTemplate
* Sets the value of the adena property. * Sets the value of the adena property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link String }
* {@link String }
* *
*/ */
public void setAdena(String value) { public void setAdena(String value) {
@@ -605,11 +558,13 @@ public class ItemTemplate
} }
/** /**
* <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> * <pre>
* &lt;complexType> * &lt;complexType>
@@ -634,9 +589,7 @@ public class ItemTemplate
/** /**
* Gets the value of the part property. * Gets the value of the part property.
* *
* @return * @return possible object is {@link String }
* possible object is
* {@link String }
* *
*/ */
public String getPart() { public String getPart() {
@@ -647,8 +600,7 @@ public class ItemTemplate
* Sets the value of the part property. * Sets the value of the part property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link String }
* {@link String }
* *
*/ */
public void setPart(String value) { public void setPart(String value) {
@@ -659,11 +611,13 @@ public class ItemTemplate
} }
/** /**
* <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> * <pre>
* &lt;complexType> * &lt;complexType>
@@ -690,9 +644,7 @@ public class ItemTemplate
* *
*/ */
@XmlAccessorType(XmlAccessType.FIELD) @XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = { @XmlType(name = "", propOrder = { "cost" })
"cost"
})
public static class Attributes { public static class Attributes {
@XmlElement(required = true) @XmlElement(required = true)
@@ -706,9 +658,7 @@ public class ItemTemplate
/** /**
* Gets the value of the cost property. * Gets the value of the cost property.
* *
* @return * @return possible object is {@link ItemTemplate.Attributes.Cost }
* possible object is
* {@link ItemTemplate.Attributes.Cost }
* *
*/ */
public ItemTemplate.Attributes.Cost getCost() { public ItemTemplate.Attributes.Cost getCost() {
@@ -719,8 +669,7 @@ public class ItemTemplate
* Sets the value of the cost property. * Sets the value of the cost property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link ItemTemplate.Attributes.Cost }
* {@link ItemTemplate.Attributes.Cost }
* *
*/ */
public void setCost(ItemTemplate.Attributes.Cost value) { public void setCost(ItemTemplate.Attributes.Cost value) {
@@ -730,9 +679,7 @@ public class ItemTemplate
/** /**
* Gets the value of the weigth property. * Gets the value of the weigth property.
* *
* @return * @return possible object is {@link Integer }
* possible object is
* {@link Integer }
* *
*/ */
public Integer getWeigth() { public Integer getWeigth() {
@@ -743,8 +690,7 @@ public class ItemTemplate
* Sets the value of the weigth property. * Sets the value of the weigth property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link Integer }
* {@link Integer }
* *
*/ */
public void setWeigth(Integer value) { public void setWeigth(Integer value) {
@@ -754,9 +700,7 @@ public class ItemTemplate
/** /**
* Gets the value of the material property. * Gets the value of the material property.
* *
* @return * @return possible object is {@link String }
* possible object is
* {@link String }
* *
*/ */
public ItemMaterial getMaterial() { public ItemMaterial getMaterial() {
@@ -767,19 +711,20 @@ public class ItemTemplate
* Sets the value of the material property. * Sets the value of the material property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link String }
* {@link String }
* *
*/ */
public void setMaterial(ItemMaterial value) { public void setMaterial(ItemMaterial value) {
this.material = value; this.material = value;
} }
/** /**
* <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> * <pre>
* &lt;complexType> * &lt;complexType>
@@ -803,9 +748,7 @@ public class ItemTemplate
/** /**
* Gets the value of the adena property. * Gets the value of the adena property.
* *
* @return * @return possible object is {@link Integer }
* possible object is
* {@link Integer }
* *
*/ */
public Integer getAdena() { public Integer getAdena() {
@@ -816,8 +759,7 @@ public class ItemTemplate
* Sets the value of the adena property. * Sets the value of the adena property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link Integer }
* {@link Integer }
* *
*/ */
public void setAdena(Integer value) { public void setAdena(Integer value) {
@@ -828,11 +770,13 @@ public class ItemTemplate
} }
/** /**
* <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> * <pre>
* &lt;complexType> * &lt;complexType>
@@ -857,9 +801,7 @@ public class ItemTemplate
/** /**
* Gets the value of the defaultAction property. * Gets the value of the defaultAction property.
* *
* @return * @return possible object is {@link String }
* possible object is
* {@link String }
* *
*/ */
public String getDefaultAction() { public String getDefaultAction() {
@@ -870,8 +812,7 @@ public class ItemTemplate
* Sets the value of the defaultAction property. * Sets the value of the defaultAction property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link String }
* {@link String }
* *
*/ */
public void setDefaultAction(String value) { public void setDefaultAction(String value) {
@@ -880,11 +821,13 @@ public class ItemTemplate
} }
/** /**
* <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> * <pre>
* &lt;complexType> * &lt;complexType>
@@ -914,9 +857,7 @@ public class ItemTemplate
/** /**
* Gets the value of the type property. * Gets the value of the type property.
* *
* @return * @return possible object is {@link String }
* possible object is
* {@link String }
* *
*/ */
public String getType() { public String getType() {
@@ -927,8 +868,7 @@ public class ItemTemplate
* Sets the value of the type property. * Sets the value of the type property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link String }
* {@link String }
* *
*/ */
public void setType(String value) { public void setType(String value) {
@@ -937,11 +877,13 @@ public class ItemTemplate
} }
/** /**
* <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> * <pre>
* &lt;complexType> * &lt;complexType>
@@ -966,9 +908,7 @@ public class ItemTemplate
/** /**
* Gets the value of the type property. * Gets the value of the type property.
* *
* @return * @return possible object is {@link String }
* possible object is
* {@link String }
* *
*/ */
public ItemType getType() { public ItemType getType() {
@@ -979,8 +919,7 @@ public class ItemTemplate
* Sets the value of the type property. * Sets the value of the type property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link String }
* {@link String }
* *
*/ */
public void setType(ItemType value) { public void setType(ItemType value) {
@@ -989,11 +928,13 @@ public class ItemTemplate
} }
/** /**
* <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> * <pre>
* &lt;complexType> * &lt;complexType>
@@ -1015,12 +956,8 @@ public class ItemTemplate
* *
*/ */
@XmlAccessorType(XmlAccessType.FIELD) @XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = { @XmlType(name = "", propOrder = { "physicalDamage", "magicalDamage",
"physicalDamage", "criticalChance", "physicalAttackSpeed" })
"magicalDamage",
"criticalChance",
"physicalAttackSpeed"
})
public static class Weapon { public static class Weapon {
@XmlElement(required = true) @XmlElement(required = true)
@@ -1041,9 +978,7 @@ public class ItemTemplate
/** /**
* Gets the value of the physicalDamage property. * Gets the value of the physicalDamage property.
* *
* @return * @return possible object is {@link CalculatorFunction }
* possible object is
* {@link CalculatorFunction }
* *
*/ */
public CalculatorFunction getPhysicalDamage() { public CalculatorFunction getPhysicalDamage() {
@@ -1054,8 +989,7 @@ public class ItemTemplate
* Sets the value of the physicalDamage property. * Sets the value of the physicalDamage property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link CalculatorFunction }
* {@link CalculatorFunction }
* *
*/ */
public void setPhysicalDamage(CalculatorFunction value) { public void setPhysicalDamage(CalculatorFunction value) {
@@ -1065,9 +999,7 @@ public class ItemTemplate
/** /**
* Gets the value of the magicalDamage property. * Gets the value of the magicalDamage property.
* *
* @return * @return possible object is {@link CalculatorFunction }
* possible object is
* {@link CalculatorFunction }
* *
*/ */
public CalculatorFunction getMagicalDamage() { public CalculatorFunction getMagicalDamage() {
@@ -1078,8 +1010,7 @@ public class ItemTemplate
* Sets the value of the magicalDamage property. * Sets the value of the magicalDamage property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link CalculatorFunction }
* {@link CalculatorFunction }
* *
*/ */
public void setMagicalDamage(CalculatorFunction value) { public void setMagicalDamage(CalculatorFunction value) {
@@ -1089,9 +1020,7 @@ public class ItemTemplate
/** /**
* Gets the value of the criticalChance property. * Gets the value of the criticalChance property.
* *
* @return * @return possible object is {@link CalculatorFunction }
* possible object is
* {@link CalculatorFunction }
* *
*/ */
public CalculatorFunction getCriticalChance() { public CalculatorFunction getCriticalChance() {
@@ -1102,8 +1031,7 @@ public class ItemTemplate
* Sets the value of the criticalChance property. * Sets the value of the criticalChance property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link CalculatorFunction }
* {@link CalculatorFunction }
* *
*/ */
public void setCriticalChance(CalculatorFunction value) { public void setCriticalChance(CalculatorFunction value) {
@@ -1113,9 +1041,7 @@ public class ItemTemplate
/** /**
* Gets the value of the physicalAttackSpeed property. * Gets the value of the physicalAttackSpeed property.
* *
* @return * @return possible object is {@link CalculatorFunction }
* possible object is
* {@link CalculatorFunction }
* *
*/ */
public CalculatorFunction getPhysicalAttackSpeed() { public CalculatorFunction getPhysicalAttackSpeed() {
@@ -1126,8 +1052,7 @@ public class ItemTemplate
* Sets the value of the physicalAttackSpeed property. * Sets the value of the physicalAttackSpeed property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link CalculatorFunction }
* {@link CalculatorFunction }
* *
*/ */
public void setPhysicalAttackSpeed(CalculatorFunction value) { public void setPhysicalAttackSpeed(CalculatorFunction value) {
@@ -1137,9 +1062,7 @@ public class ItemTemplate
/** /**
* Gets the value of the part property. * Gets the value of the part property.
* *
* @return * @return possible object is {@link String }
* possible object is
* {@link String }
* *
*/ */
public String getPart() { public String getPart() {
@@ -1150,8 +1073,7 @@ public class ItemTemplate
* Sets the value of the part property. * Sets the value of the part property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link String }
* {@link String }
* *
*/ */
public void setPart(String value) { public void setPart(String value) {
@@ -1161,9 +1083,7 @@ public class ItemTemplate
/** /**
* Gets the value of the type property. * Gets the value of the type property.
* *
* @return * @return possible object is {@link String }
* possible object is
* {@link String }
* *
*/ */
public WeaponType getType() { public WeaponType getType() {
@@ -1174,8 +1094,7 @@ public class ItemTemplate
* Sets the value of the type property. * Sets the value of the type property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link String }
* {@link String }
* *
*/ */
public void setType(WeaponType value) { public void setType(WeaponType value) {

View File

@@ -5,32 +5,27 @@
// Generated on: 2012.03.25 at 01:03:28 PM BRT // Generated on: 2012.03.25 at 01:03:28 PM BRT
// //
package com.l2jserver.model.template; package com.l2jserver.model.template;
import javax.xml.bind.annotation.XmlRegistry; import javax.xml.bind.annotation.XmlRegistry;
/** /**
* This object contains factory methods for each * This object contains factory methods for each Java content interface and Java
* Java content interface and Java element interface * element interface generated in the com.l2jserver.model.template package.
* generated in the com.l2jserver.model.template package. * <p>
* <p>An ObjectFactory allows you to programatically * An ObjectFactory allows you to programatically construct new instances of the
* construct new instances of the Java representation * Java representation for XML content. The Java representation of XML content
* for XML content. The Java representation of XML * can consist of schema derived interfaces and classes representing the binding
* content can consist of schema derived interfaces * of schema type definitions, element declarations and model groups. Factory
* and classes representing the binding of schema * methods for each of these are provided in this class.
* type definitions, element declarations and model
* groups. Factory methods for each of these are
* provided in this class.
* *
*/ */
@XmlRegistry @XmlRegistry
public class ObjectFactory { 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 * Create a new ObjectFactory that can be used to create new instances of
* schema derived classes for package: com.l2jserver.model.template
* *
*/ */
public ObjectFactory() { public ObjectFactory() {

View File

@@ -5,7 +5,6 @@
// Generated on: 2012.03.25 at 01:03:28 PM BRT // Generated on: 2012.03.25 at 01:03:28 PM BRT
// //
package com.l2jserver.model.template; package com.l2jserver.model.template;
import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessType;
@@ -14,14 +13,17 @@ import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import com.l2jserver.model.id.template.SkillTemplateID; import com.l2jserver.model.id.template.SkillTemplateID;
import com.l2jserver.util.jaxb.SkillTemplateIDAdapter; 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> * <pre>
* &lt;element name="skill"> * &lt;element name="skill">
@@ -44,13 +46,9 @@ import com.l2jserver.util.jaxb.SkillTemplateIDAdapter;
* *
*/ */
@XmlAccessorType(XmlAccessType.FIELD) @XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = { @XmlType(name = "", propOrder = { "maximumLevel" })
"maximumLevel"
})
@XmlRootElement(name = "skill", namespace = "http://schemas.l2jserver2.com/skill") @XmlRootElement(name = "skill", namespace = "http://schemas.l2jserver2.com/skill")
public class SkillTemplate public class SkillTemplate extends AbstractTemplate {
extends AbstractTemplate
{
protected int maximumLevel; protected int maximumLevel;
@XmlAttribute(name = "id", required = true) @XmlAttribute(name = "id", required = true)
@@ -82,9 +80,7 @@ public class SkillTemplate
/** /**
* Gets the value of the id property. * Gets the value of the id property.
* *
* @return * @return possible object is {@link String }
* possible object is
* {@link String }
* *
*/ */
public SkillTemplateID getID() { public SkillTemplateID getID() {
@@ -95,8 +91,7 @@ public class SkillTemplate
* Sets the value of the id property. * Sets the value of the id property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link String }
* {@link String }
* *
*/ */
public void setID(SkillTemplateID value) { public void setID(SkillTemplateID value) {
@@ -106,9 +101,7 @@ public class SkillTemplate
/** /**
* Gets the value of the name property. * Gets the value of the name property.
* *
* @return * @return possible object is {@link String }
* possible object is
* {@link String }
* *
*/ */
public String getName() { public String getName() {
@@ -119,8 +112,7 @@ public class SkillTemplate
* Sets the value of the name property. * Sets the value of the name property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link String }
* {@link String }
* *
*/ */
public void setName(String value) { public void setName(String value) {

View File

@@ -5,11 +5,11 @@
// Generated on: 2012.03.25 at 01:03:28 PM BRT // Generated on: 2012.03.25 at 01:03:28 PM BRT
// //
package com.l2jserver.model.template; package com.l2jserver.model.template;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlAttribute;
@@ -17,14 +17,17 @@ import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import com.l2jserver.model.id.template.TeleportationTemplateID; import com.l2jserver.model.id.template.TeleportationTemplateID;
import com.l2jserver.util.jaxb.TeleportationTemplateIDAdapter; 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> * <pre>
* &lt;complexType> * &lt;complexType>
@@ -72,9 +75,7 @@ import com.l2jserver.util.jaxb.TeleportationTemplateIDAdapter;
* *
*/ */
@XmlAccessorType(XmlAccessType.FIELD) @XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = { @XmlType(name = "", propOrder = { "teleport" })
"teleport"
})
@XmlRootElement(name = "teleports", namespace = "http://schemas.l2jserver2.com/teleport") @XmlRootElement(name = "teleports", namespace = "http://schemas.l2jserver2.com/teleport")
public class Teleports { public class Teleports {
@@ -85,13 +86,14 @@ public class Teleports {
* Gets the value of the teleport property. * Gets the value of the teleport property.
* *
* <p> * <p>
* This accessor method returns a reference to the live list, * This accessor method returns a reference to the live list, not a
* not a snapshot. Therefore any modification you make to the * snapshot. Therefore any modification you make to the returned list will
* returned list will be present inside the JAXB object. * be present inside the JAXB object. This is why there is not a
* This is why there is not a <CODE>set</CODE> method for the teleport property. * <CODE>set</CODE> method for the teleport property.
* *
* <p> * <p>
* For example, to add a new item, do as follows: * For example, to add a new item, do as follows:
*
* <pre> * <pre>
* getTeleport().add(newItem); * getTeleport().add(newItem);
* </pre> * </pre>
@@ -110,11 +112,13 @@ public class Teleports {
return this.teleport; return this.teleport;
} }
/** /**
* <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> * <pre>
* &lt;complexType> * &lt;complexType>
@@ -152,13 +156,8 @@ public class Teleports {
* *
*/ */
@XmlAccessorType(XmlAccessType.FIELD) @XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = { @XmlType(name = "", propOrder = { "point", "restrictions" })
"point", public static class Teleport extends AbstractTemplate {
"restrictions"
})
public static class Teleport
extends AbstractTemplate
{
protected Coordinate point; protected Coordinate point;
protected Teleports.Teleport.Restrictions restrictions; protected Teleports.Teleport.Restrictions restrictions;
@@ -175,9 +174,7 @@ public class Teleports {
/** /**
* Gets the value of the point property. * Gets the value of the point property.
* *
* @return * @return possible object is {@link Coordinate }
* possible object is
* {@link Coordinate }
* *
*/ */
public Coordinate getPoint() { public Coordinate getPoint() {
@@ -188,8 +185,7 @@ public class Teleports {
* Sets the value of the point property. * Sets the value of the point property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link Coordinate }
* {@link Coordinate }
* *
*/ */
public void setPoint(Coordinate value) { public void setPoint(Coordinate value) {
@@ -199,9 +195,7 @@ public class Teleports {
/** /**
* Gets the value of the restrictions property. * Gets the value of the restrictions property.
* *
* @return * @return possible object is {@link Teleports.Teleport.Restrictions }
* possible object is
* {@link Teleports.Teleport.Restrictions }
* *
*/ */
public Teleports.Teleport.Restrictions getRestrictions() { public Teleports.Teleport.Restrictions getRestrictions() {
@@ -212,8 +206,7 @@ public class Teleports {
* Sets the value of the restrictions property. * Sets the value of the restrictions property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link Teleports.Teleport.Restrictions }
* {@link Teleports.Teleport.Restrictions }
* *
*/ */
public void setRestrictions(Teleports.Teleport.Restrictions value) { public void setRestrictions(Teleports.Teleport.Restrictions value) {
@@ -223,9 +216,7 @@ public class Teleports {
/** /**
* Gets the value of the id property. * Gets the value of the id property.
* *
* @return * @return possible object is {@link String }
* possible object is
* {@link String }
* *
*/ */
public TeleportationTemplateID getID() { public TeleportationTemplateID getID() {
@@ -236,8 +227,7 @@ public class Teleports {
* Sets the value of the id property. * Sets the value of the id property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link String }
* {@link String }
* *
*/ */
public void setID(TeleportationTemplateID value) { public void setID(TeleportationTemplateID value) {
@@ -247,9 +237,7 @@ public class Teleports {
/** /**
* Gets the value of the name property. * Gets the value of the name property.
* *
* @return * @return possible object is {@link String }
* possible object is
* {@link String }
* *
*/ */
public String getName() { public String getName() {
@@ -260,8 +248,7 @@ public class Teleports {
* Sets the value of the name property. * Sets the value of the name property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link String }
* {@link String }
* *
*/ */
public void setName(String value) { public void setName(String value) {
@@ -271,9 +258,7 @@ public class Teleports {
/** /**
* Gets the value of the item property. * Gets the value of the item property.
* *
* @return * @return possible object is {@link Integer }
* possible object is
* {@link Integer }
* *
*/ */
public Integer getItem() { public Integer getItem() {
@@ -284,8 +269,7 @@ public class Teleports {
* Sets the value of the item property. * Sets the value of the item property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link Integer }
* {@link Integer }
* *
*/ */
public void setItem(Integer value) { public void setItem(Integer value) {
@@ -308,11 +292,13 @@ public class Teleports {
this.price = value; this.price = value;
} }
/** /**
* <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> * <pre>
* &lt;complexType> * &lt;complexType>
@@ -335,9 +321,7 @@ public class Teleports {
* *
*/ */
@XmlAccessorType(XmlAccessType.FIELD) @XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = { @XmlType(name = "", propOrder = { "restriction" })
"restriction"
})
public static class Restrictions { public static class Restrictions {
@XmlElement(required = true) @XmlElement(required = true)
@@ -347,13 +331,14 @@ public class Teleports {
* Gets the value of the restriction property. * Gets the value of the restriction property.
* *
* <p> * <p>
* This accessor method returns a reference to the live list, * This accessor method returns a reference to the live list, not a
* not a snapshot. Therefore any modification you make to the * snapshot. Therefore any modification you make to the returned
* returned list will be present inside the JAXB object. * list will be present inside the JAXB object. This is why there is
* This is why there is not a <CODE>set</CODE> method for the restriction property. * not a <CODE>set</CODE> method for the restriction property.
* *
* <p> * <p>
* For example, to add a new item, do as follows: * For example, to add a new item, do as follows:
*
* <pre> * <pre>
* getRestriction().add(newItem); * getRestriction().add(newItem);
* </pre> * </pre>

View File

@@ -5,22 +5,24 @@
// Generated on: 2012.03.25 at 01:03:28 PM BRT // Generated on: 2012.03.25 at 01:03:28 PM BRT
// //
package com.l2jserver.model.template; package com.l2jserver.model.template;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType; 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> * <pre>
* &lt;complexType name="ZoneType"> * &lt;complexType name="ZoneType">
@@ -49,9 +51,7 @@ import javax.xml.bind.annotation.XmlType;
* *
*/ */
@XmlAccessorType(XmlAccessType.FIELD) @XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ZoneType", namespace = "zones", propOrder = { @XmlType(name = "ZoneType", namespace = "zones", propOrder = { "point" })
"point"
})
public class ZoneType { public class ZoneType {
@XmlElement(required = true) @XmlElement(required = true)
@@ -63,13 +63,14 @@ public class ZoneType {
* Gets the value of the point property. * Gets the value of the point property.
* *
* <p> * <p>
* This accessor method returns a reference to the live list, * This accessor method returns a reference to the live list, not a
* not a snapshot. Therefore any modification you make to the * snapshot. Therefore any modification you make to the returned list will
* returned list will be present inside the JAXB object. * be present inside the JAXB object. This is why there is not a
* This is why there is not a <CODE>set</CODE> method for the point property. * <CODE>set</CODE> method for the point property.
* *
* <p> * <p>
* For example, to add a new item, do as follows: * For example, to add a new item, do as follows:
*
* <pre> * <pre>
* getPoint().add(newItem); * getPoint().add(newItem);
* </pre> * </pre>
@@ -91,9 +92,7 @@ public class ZoneType {
/** /**
* Gets the value of the id property. * Gets the value of the id property.
* *
* @return * @return possible object is {@link String }
* possible object is
* {@link String }
* *
*/ */
public String getId() { public String getId() {
@@ -104,19 +103,20 @@ public class ZoneType {
* Sets the value of the id property. * Sets the value of the id property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link String }
* {@link String }
* *
*/ */
public void setId(String value) { public void setId(String value) {
this.id = value; this.id = value;
} }
/** /**
* <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> * <pre>
* &lt;complexType> * &lt;complexType>

View File

@@ -5,7 +5,6 @@
// Generated on: 2012.03.25 at 01:03:28 PM BRT // Generated on: 2012.03.25 at 01:03:28 PM BRT
// //
package com.l2jserver.model.template; package com.l2jserver.model.template;
import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessType;
@@ -14,11 +13,13 @@ import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType; 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> * <pre>
* &lt;complexType> * &lt;complexType>
@@ -55,9 +56,7 @@ import javax.xml.bind.annotation.XmlType;
* *
*/ */
@XmlAccessorType(XmlAccessType.FIELD) @XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = { @XmlType(name = "", propOrder = { "castle" })
"castle"
})
@XmlRootElement(name = "zones", namespace = "zones") @XmlRootElement(name = "zones", namespace = "zones")
public class Zones { public class Zones {
@@ -67,9 +66,7 @@ public class Zones {
/** /**
* Gets the value of the castle property. * Gets the value of the castle property.
* *
* @return * @return possible object is {@link Zones.Castle }
* possible object is
* {@link Zones.Castle }
* *
*/ */
public Zones.Castle getCastle() { public Zones.Castle getCastle() {
@@ -80,19 +77,20 @@ public class Zones {
* Sets the value of the castle property. * Sets the value of the castle property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link Zones.Castle }
* {@link Zones.Castle }
* *
*/ */
public void setCastle(Zones.Castle value) { public void setCastle(Zones.Castle value) {
this.castle = value; this.castle = value;
} }
/** /**
* <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> * <pre>
* &lt;complexType> * &lt;complexType>
@@ -119,9 +117,7 @@ public class Zones {
* *
*/ */
@XmlAccessorType(XmlAccessType.FIELD) @XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = { @XmlType(name = "", propOrder = { "siege" })
"siege"
})
public static class Castle { public static class Castle {
@XmlElement(required = true) @XmlElement(required = true)
@@ -130,9 +126,7 @@ public class Zones {
/** /**
* Gets the value of the siege property. * Gets the value of the siege property.
* *
* @return * @return possible object is {@link Zones.Castle.Siege }
* possible object is
* {@link Zones.Castle.Siege }
* *
*/ */
public Zones.Castle.Siege getSiege() { public Zones.Castle.Siege getSiege() {
@@ -143,19 +137,20 @@ public class Zones {
* Sets the value of the siege property. * Sets the value of the siege property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link Zones.Castle.Siege }
* {@link Zones.Castle.Siege }
* *
*/ */
public void setSiege(Zones.Castle.Siege value) { public void setSiege(Zones.Castle.Siege value) {
this.siege = value; this.siege = value;
} }
/** /**
* <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> * <pre>
* &lt;complexType> * &lt;complexType>
@@ -172,9 +167,7 @@ public class Zones {
* *
*/ */
@XmlAccessorType(XmlAccessType.FIELD) @XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = { @XmlType(name = "", propOrder = { "zone" })
"zone"
})
public static class Siege { public static class Siege {
@XmlElement(required = true) @XmlElement(required = true)
@@ -183,9 +176,7 @@ public class Zones {
/** /**
* Gets the value of the zone property. * Gets the value of the zone property.
* *
* @return * @return possible object is {@link ZoneType }
* possible object is
* {@link ZoneType }
* *
*/ */
public ZoneType getZone() { public ZoneType getZone() {
@@ -196,8 +187,7 @@ public class Zones {
* Sets the value of the zone property. * Sets the value of the zone property.
* *
* @param value * @param value
* allowed object is * allowed object is {@link ZoneType }
* {@link ZoneType }
* *
*/ */
public void setZone(ZoneType value) { public void setZone(ZoneType value) {

View File

@@ -18,7 +18,6 @@ package com.l2jserver;
import com.l2jserver.service.network.model.ProtocolVersion; import com.l2jserver.service.network.model.ProtocolVersion;
/** /**
* Constant values for this L2J compilation * Constant values for this L2J compilation
* *

View File

@@ -42,10 +42,12 @@ public class CharacterShortcutID extends
* *
* @param id * @param id
* the id * the id
* @param shortcutDao the shortcut DAO * @param shortcutDao
* the shortcut DAO
*/ */
@Inject @Inject
public CharacterShortcutID(@Assisted int id, CharacterShortcutDAO shortcutDao) { public CharacterShortcutID(@Assisted int id,
CharacterShortcutDAO shortcutDao) {
super(id); super(id);
this.shortcutDao = shortcutDao; this.shortcutDao = shortcutDao;
} }

View File

@@ -16,7 +16,6 @@
*/ */
package com.l2jserver.model.template; package com.l2jserver.model.template;
/** /**
* Template for an Aumentation * Template for an Aumentation
* *

View File

@@ -95,10 +95,11 @@ public abstract class Actor extends PositionableObject {
DEAD; DEAD;
} }
// /** // /**
// * The currently effects active on the actor // * The currently effects active on the actor
// */ // */
// protected final ActorEffectContainer effects = new ActorEffectContainer(this); // protected final ActorEffectContainer effects = new
// ActorEffectContainer(this);
/** /**
* The skills learned by this actor * The skills learned by this actor
*/ */
@@ -270,12 +271,12 @@ public abstract class Actor extends PositionableObject {
return state == ActorState.ATTACKING; return state == ActorState.ATTACKING;
} }
// /** // /**
// * @return the active effects on this actor // * @return the active effects on this actor
// */ // */
// public ActorEffectContainer getEffects() { // public ActorEffectContainer getEffects() {
// return effects; // return effects;
// } // }
/** /**
* @return the actor skills * @return the actor skills

View File

@@ -52,6 +52,5 @@ public abstract class ActorCalculatorFunction extends
* the original value * the original value
* @return the calculated value * @return the calculated value
*/ */
protected abstract double calculate(Actor a, ActorTemplate t, protected abstract double calculate(Actor a, ActorTemplate t, double value);
double value);
} }

View File

@@ -46,7 +46,7 @@ public class MaximumHPAddCalculator extends CharacterFormula {
int lvl = c.getLevel() - t.getStats().getLevel(); int lvl = c.getLevel() - t.getStats().getLevel();
double mod = t.getStats().getHp().getModifier() * lvl; double mod = t.getStats().getHp().getModifier() * lvl;
double max = (t.getStats().getHp().getAdd() + mod) * lvl; double max = (t.getStats().getHp().getAdd() + mod) * lvl;
double min = ( t.getStats().getHp().getAdd() * lvl) + mod; double min = (t.getStats().getHp().getAdd() * lvl) + mod;
return value + (max + min) / 2; return value + (max + min) / 2;
} }

View File

@@ -50,7 +50,8 @@ public class ItemPickEvent implements ItemEvent, CharacterEvent {
* the picking up character * the picking up character
* @param item * @param item
* the picked up item * the picked up item
* @param newItem the new {@link Item} * @param newItem
* the new {@link Item}
*/ */
public ItemPickEvent(L2Character character, Item item, Item newItem) { public ItemPickEvent(L2Character character, Item item, Item newItem) {
this.character = character; this.character = character;

View File

@@ -152,7 +152,7 @@ public abstract class BaseNPCController implements NPCController {
break; break;
} }
} }
if(html == null) if (html == null)
return null; return null;
// TODO use an decent template engine // TODO use an decent template engine

View File

@@ -33,8 +33,8 @@ import com.l2jserver.util.html.markup.MarkupTag;
*/ */
public class NotImplementedNPCController extends BaseNPCController { public class NotImplementedNPCController extends BaseNPCController {
@Override @Override
public void interact(NPC npc, L2Character character, public void interact(NPC npc, L2Character character, final String... args)
final String... args) throws L2Exception { throws L2Exception {
// action not handled // action not handled
final HtmlTemplate template = new HtmlTemplate() { final HtmlTemplate template = new HtmlTemplate() {
@Override @Override

View File

@@ -42,8 +42,7 @@ import com.l2jserver.service.database.dao.sql.SQLNPCDAO;
public class JDBCDAOModule extends AbstractModule { public class JDBCDAOModule extends AbstractModule {
@Override @Override
protected void configure() { protected void configure() {
bind(CharacterDAO.class).to(SQLCharacterDAO.class) bind(CharacterDAO.class).to(SQLCharacterDAO.class).in(Scopes.SINGLETON);
.in(Scopes.SINGLETON);
bind(CharacterFriendDAO.class).to(SQLCharacterFriendDAO.class).in( bind(CharacterFriendDAO.class).to(SQLCharacterFriendDAO.class).in(
Scopes.SINGLETON); Scopes.SINGLETON);
bind(CharacterShortcutDAO.class).to(SQLCharacterShortcutDAO.class).in( bind(CharacterShortcutDAO.class).to(SQLCharacterShortcutDAO.class).in(

View File

@@ -140,7 +140,8 @@ public class OrientDBItemDAO extends AbstractOrientDBDAO<Item, ItemID>
@Override @Override
protected OQueryContextNative query( protected OQueryContextNative query(
OQueryContextNative record, Item o) { OQueryContextNative record, Item o) {
return record.field(name(entity.itemId)).eq(o.getID().getID()); return record.field(name(entity.itemId)).eq(
o.getID().getID());
} }
}); });
} }

View File

@@ -126,8 +126,8 @@ public class SQLCharacterFriendDAO extends
protected void query(SQLDeleteClause q, CharacterFriend o) { protected void query(SQLDeleteClause q, CharacterFriend o) {
q.where(entity.characterId.eq( q.where(entity.characterId.eq(
o.getID().getCharacterID().getID()).and( o.getID().getCharacterID().getID()).and(
entity.characterIdFriend.eq(o.getID().getFriendID() entity.characterIdFriend.eq(o.getID()
.getID()))); .getFriendID().getID())));
} }
}); });
} }

View File

@@ -48,7 +48,9 @@ public class QCharacterFriend extends
/** /**
* Creates a new instance * Creates a new instance
* @param variable the query variable *
* @param variable
* the query variable
*/ */
public QCharacterFriend(String variable) { public QCharacterFriend(String variable) {
super(FriendID.class, forVariable(variable), "null", "character_friend"); super(FriendID.class, forVariable(variable), "null", "character_friend");

View File

@@ -88,7 +88,9 @@ public class QCharacterShortcut extends
/** /**
* Creates a new instance * Creates a new instance
* @param variable the query variable *
* @param variable
* the query variable
*/ */
public QCharacterShortcut(String variable) { public QCharacterShortcut(String variable) {
super(Integer.class, forVariable(variable), "null", super(Integer.class, forVariable(variable), "null",

View File

@@ -44,7 +44,9 @@ public class QClan extends com.mysema.query.sql.RelationalPathBase<Integer> {
/** /**
* Creates a new instance * Creates a new instance
* @param variable the query variable *
* @param variable
* the query variable
*/ */
public QClan(String variable) { public QClan(String variable) {
super(Integer.class, forVariable(variable), "null", "clan"); super(Integer.class, forVariable(variable), "null", "clan");

View File

@@ -97,7 +97,9 @@ public class QItem extends com.mysema.query.sql.RelationalPathBase<Integer> {
/** /**
* Creates a new instance * Creates a new instance
* @param variable the query variable *
* @param variable
* the query variable
*/ */
public QItem(String variable) { public QItem(String variable) {
super(Integer.class, forVariable(variable), "null", "item"); super(Integer.class, forVariable(variable), "null", "item");

View File

@@ -78,7 +78,9 @@ public class QLogChat extends com.mysema.query.sql.RelationalPathBase<Integer> {
/** /**
* Creates a new instance * Creates a new instance
* @param variable the query variable *
* @param variable
* the query variable
*/ */
public QLogChat(String variable) { public QLogChat(String variable) {
super(Integer.class, forVariable(variable), "null", "log_chat"); super(Integer.class, forVariable(variable), "null", "log_chat");

View File

@@ -84,7 +84,9 @@ public class QNPC extends com.mysema.query.sql.RelationalPathBase<Integer> {
/** /**
* Creates a new instance * Creates a new instance
* @param variable the query variable *
* @param variable
* the query variable
*/ */
public QNPC(String variable) { public QNPC(String variable) {
super(Integer.class, forVariable(variable), "null", "npc"); super(Integer.class, forVariable(variable), "null", "npc");

View File

@@ -64,8 +64,8 @@ public class AttackServiceImpl extends AbstractService implements AttackService
private final NPCService npcService; private final NPCService npcService;
/** /**
* The {@link WorldEventDispatcherService} is used to dispatch attack events to the * The {@link WorldEventDispatcherService} is used to dispatch attack events
* world * to the world
*/ */
private final WorldEventDispatcherService eventDispatcher; private final WorldEventDispatcherService eventDispatcher;

View File

@@ -79,8 +79,8 @@ public class AIServiceImpl extends AbstractService implements AIService {
*/ */
@Inject @Inject
public AIServiceImpl(WorldService worldService, public AIServiceImpl(WorldService worldService,
WorldEventDispatcherService eventDispatcher, ThreadService threadService, WorldEventDispatcherService eventDispatcher,
NetworkService networkService) { ThreadService threadService, NetworkService networkService) {
this.worldService = worldService; this.worldService = worldService;
this.eventDispatcher = eventDispatcher; this.eventDispatcher = eventDispatcher;
this.threadService = threadService; this.threadService = threadService;

View File

@@ -22,8 +22,7 @@ package com.l2jserver.service.game.character;
* *
* @author <a href="http://www.rogiel.com">Rogiel</a> * @author <a href="http://www.rogiel.com">Rogiel</a>
*/ */
public class TooManyCharactersException extends public class TooManyCharactersException extends CharacterServiceException {
CharacterServiceException {
/** /**
* The Java Serialization API serial * The Java Serialization API serial
*/ */

View File

@@ -52,8 +52,8 @@ import com.l2jserver.service.Service;
* {@link ChatBanActiveChatServiceException} will be thrown. * {@link ChatBanActiveChatServiceException} will be thrown.
* *
* <h1>Packets</h1> * <h1>Packets</h1>
* Messages are received (from the clients) with <code>CM_CHAR_CHAT</code> and sent (to * Messages are received (from the clients) with <code>CM_CHAR_CHAT</code> and
* the clients) with <code>SM_ACTOR_CHAT</code>. * sent (to the clients) with <code>SM_ACTOR_CHAT</code>.
* *
* @author <a href="http://www.rogiel.com">Rogiel</a> * @author <a href="http://www.rogiel.com">Rogiel</a>
*/ */

View File

@@ -55,10 +55,10 @@ public class SimpleChatService extends AbstractService implements ChatService {
* The {@link ChatLoggingService} implementation * The {@link ChatLoggingService} implementation
*/ */
private final ChatLoggingService chatLoggingService; private final ChatLoggingService chatLoggingService;
// /** // /**
// * The {@link RegionService} // * The {@link RegionService}
// */ // */
// private final RegionService regionService; // private final RegionService regionService;
/** /**
* The {@link L2Character} DAO * The {@link L2Character} DAO
*/ */
@@ -177,13 +177,13 @@ public class SimpleChatService extends AbstractService implements ChatService {
@Override @Override
public PublicChatChannel getRegionChannel(L2Character character) { public PublicChatChannel getRegionChannel(L2Character character) {
Preconditions.checkNotNull(character, "character"); Preconditions.checkNotNull(character, "character");
// final Region region = regionService.getRegion(character); // final Region region = regionService.getRegion(character);
// RegionChatChannelImpl channel = regionChannels.get(region); // RegionChatChannelImpl channel = regionChannels.get(region);
// if (channel == null) { // if (channel == null) {
// channel = new RegionChatChannelImpl(region); // channel = new RegionChatChannelImpl(region);
// regionChannels.put(region, channel); // regionChannels.put(region, channel);
// } // }
// return channel; // return channel;
return null; return null;
} }

View File

@@ -149,7 +149,8 @@ public class ItemServiceImpl extends
@Override @Override
public Item split(Item item, long count) public Item split(Item item, long count)
throws NotEnoughItemsServiceException, NonStackableItemsServiceException { throws NotEnoughItemsServiceException,
NonStackableItemsServiceException {
if (item.getCount() < count) if (item.getCount() < count)
throw new NotEnoughItemsServiceException(); throw new NotEnoughItemsServiceException();
if (item.getCount() == count) if (item.getCount() == count)
@@ -187,7 +188,8 @@ public class ItemServiceImpl extends
@Override @Override
public boolean destroy(Item item, long count) public boolean destroy(Item item, long count)
throws NotEnoughItemsServiceException, NonStackableItemsServiceException { throws NotEnoughItemsServiceException,
NonStackableItemsServiceException {
synchronized (item) { synchronized (item) {
Item destroyItem = split(item, count); Item destroyItem = split(item, count);
itemDao.deleteObjectsAsync(destroyItem); itemDao.deleteObjectsAsync(destroyItem);
@@ -266,7 +268,8 @@ public class ItemServiceImpl extends
public Item drop(Item item, long count, Point3D point, Actor actor) public Item drop(Item item, long count, Point3D point, Actor actor)
throws SpawnPointNotFoundServiceException, throws SpawnPointNotFoundServiceException,
ItemAlreadyOnGroundServiceException, ItemAlreadyOnGroundServiceException,
AlreadySpawnedServiceException, NotEnoughItemsServiceException, NonStackableItemsServiceException { AlreadySpawnedServiceException, NotEnoughItemsServiceException,
NonStackableItemsServiceException {
synchronized (item) { synchronized (item) {
if (item.getLocation() == ItemLocation.GROUND) if (item.getLocation() == ItemLocation.GROUND)
throw new AlreadySpawnedServiceException(); throw new AlreadySpawnedServiceException();
@@ -320,7 +323,8 @@ public class ItemServiceImpl extends
public void drop(Item item, Point3D point, Actor actor) public void drop(Item item, Point3D point, Actor actor)
throws SpawnPointNotFoundServiceException, throws SpawnPointNotFoundServiceException,
ItemAlreadyOnGroundServiceException, ItemAlreadyOnGroundServiceException,
AlreadySpawnedServiceException, NotEnoughItemsServiceException, NonStackableItemsServiceException { AlreadySpawnedServiceException, NotEnoughItemsServiceException,
NonStackableItemsServiceException {
drop(item, item.getCount(), point, actor); drop(item, item.getCount(), point, actor);
} }

View File

@@ -90,7 +90,8 @@ public class MapperPathingService extends AbstractService implements
* *
* @param eventDispatcher * @param eventDispatcher
* the world event dispatcher * the world event dispatcher
* @param vfsService the VFS service implementation * @param vfsService
* the VFS service implementation
*/ */
@Inject @Inject
public MapperPathingService(WorldEventDispatcherService eventDispatcher, public MapperPathingService(WorldEventDispatcherService eventDispatcher,
@@ -117,7 +118,7 @@ public class MapperPathingService extends AbstractService implements
.fromCoordinate(point.getCoordinate()); .fromCoordinate(point.getCoordinate());
try { try {
channel.write(struct.getByteBuffer()); channel.write(struct.getByteBuffer());
//channel.force(true); // channel.force(true);
} catch (IOException e1) { } catch (IOException e1) {
log.warn("Error writing pathing file!", e1); log.warn("Error writing pathing file!", e1);
} }

View File

@@ -108,7 +108,8 @@ public class EclipseCompilerClassFileManager extends
* @return classLoader of this ClassFileManager * @return classLoader of this ClassFileManager
*/ */
@Override @Override
public synchronized EclipseCompilerScriptClassLoader getClassLoader(Location location) { public synchronized EclipseCompilerScriptClassLoader getClassLoader(
Location location) {
if (loader == null) { if (loader == null) {
loader = AccessController loader = AccessController
.doPrivileged(new PrivilegedAction<EclipseCompilerScriptClassLoader>() { .doPrivileged(new PrivilegedAction<EclipseCompilerScriptClassLoader>() {

View File

@@ -80,7 +80,8 @@ public class EclipseCompilerScriptClassLoader extends ScriptClassLoader {
* @param classFileManager * @param classFileManager
* classFileManager of this classLoader * classFileManager of this classLoader
*/ */
EclipseCompilerScriptClassLoader(EclipseCompilerClassFileManager classFileManager) { EclipseCompilerScriptClassLoader(
EclipseCompilerClassFileManager classFileManager) {
super(new URL[] {}); super(new URL[] {});
this.classFileManager = classFileManager; this.classFileManager = classFileManager;
} }
@@ -94,7 +95,8 @@ public class EclipseCompilerScriptClassLoader extends ScriptClassLoader {
* @param parent * @param parent
* parent classLoader * parent classLoader
*/ */
EclipseCompilerScriptClassLoader(EclipseCompilerClassFileManager classFileManager, ClassLoader parent) { EclipseCompilerScriptClassLoader(
EclipseCompilerClassFileManager classFileManager, ClassLoader parent) {
super(new URL[] {}, parent); super(new URL[] {}, parent);
this.classFileManager = classFileManager; this.classFileManager = classFileManager;
} }
@@ -176,7 +178,8 @@ public class EclipseCompilerScriptClassLoader extends ScriptClassLoader {
newName = newName.replace('/', '.'); newName = newName.replace('/', '.');
if (classFileManager.getCompiledClasses().containsKey(newName)) { if (classFileManager.getCompiledClasses().containsKey(newName)) {
try { try {
return new URL(null, return new URL(
null,
EclipseCompilerVirtualClassURLStreamHandler.HANDLER_PROTOCOL EclipseCompilerVirtualClassURLStreamHandler.HANDLER_PROTOCOL
+ newName, urlStreamHandler); + newName, urlStreamHandler);
} catch (MalformedURLException e) { } catch (MalformedURLException e) {

View File

@@ -48,7 +48,8 @@ public class EclipseCompilerVirtualClassURLConnection extends URLConnection {
* @param cl * @param cl
* classloader * classloader
*/ */
protected EclipseCompilerVirtualClassURLConnection(URL url, EclipseCompilerScriptClassLoader cl) { protected EclipseCompilerVirtualClassURLConnection(URL url,
EclipseCompilerScriptClassLoader cl) {
super(url); super(url);
BinaryClass bc = cl.getClassFileManager().getCompiledClasses() BinaryClass bc = cl.getClassFileManager().getCompiledClasses()
.get(url.getHost()); .get(url.getHost());

View File

@@ -27,7 +27,8 @@ import java.net.URLStreamHandler;
* *
* @author <a href="http://www.rogiel.com">Rogiel</a> * @author <a href="http://www.rogiel.com">Rogiel</a>
*/ */
public class EclipseCompilerVirtualClassURLStreamHandler extends URLStreamHandler { public class EclipseCompilerVirtualClassURLStreamHandler extends
URLStreamHandler {
/** /**
* Script Handler protocol for classes compiled from source * Script Handler protocol for classes compiled from source
@@ -45,7 +46,8 @@ public class EclipseCompilerVirtualClassURLStreamHandler extends URLStreamHandle
* @param cl * @param cl
* ScriptClassLoaderImpl that was used to load compiled class * ScriptClassLoaderImpl that was used to load compiled class
*/ */
public EclipseCompilerVirtualClassURLStreamHandler(EclipseCompilerScriptClassLoader cl) { public EclipseCompilerVirtualClassURLStreamHandler(
EclipseCompilerScriptClassLoader cl) {
this.cl = cl; this.cl = cl;
} }

View File

@@ -190,7 +190,8 @@ public class EclipseScriptCompiler implements ScriptCompiler {
Iterable<JavaFileObject> compilationUnits) { Iterable<JavaFileObject> compilationUnits) {
List<String> options = Arrays.asList("-encoding", "UTF-8", "-g"); List<String> options = Arrays.asList("-encoding", "UTF-8", "-g");
DiagnosticListener<JavaFileObject> listener = new ErrorListener(); DiagnosticListener<JavaFileObject> listener = new ErrorListener();
EclipseCompilerClassFileManager manager = new EclipseCompilerClassFileManager(javaCompiler, listener); EclipseCompilerClassFileManager manager = new EclipseCompilerClassFileManager(
javaCompiler, listener);
manager.setParentClassLoader(parentClassLoader); manager.setParentClassLoader(parentClassLoader);
if (libraries != null) { if (libraries != null) {

View File

@@ -94,7 +94,8 @@ public class JDKScriptClassLoader extends ScriptClassLoader {
* @param parent * @param parent
* parent classLoader * parent classLoader
*/ */
JDKScriptClassLoader(JDKClassFileManager classFileManager, ClassLoader parent) { JDKScriptClassLoader(JDKClassFileManager classFileManager,
ClassLoader parent) {
super(new URL[] {}, parent); super(new URL[] {}, parent);
this.classFileManager = classFileManager; this.classFileManager = classFileManager;
} }

View File

@@ -189,7 +189,8 @@ public class JDKScriptCompiler implements ScriptCompiler {
Iterable<JavaFileObject> compilationUnits) { Iterable<JavaFileObject> compilationUnits) {
List<String> options = Arrays.asList("-encoding", "UTF-8", "-g"); List<String> options = Arrays.asList("-encoding", "UTF-8", "-g");
DiagnosticListener<JavaFileObject> listener = new ErrorListener(); DiagnosticListener<JavaFileObject> listener = new ErrorListener();
JDKClassFileManager manager = new JDKClassFileManager(javaCompiler, listener); JDKClassFileManager manager = new JDKClassFileManager(javaCompiler,
listener);
manager.setParentClassLoader(parentClassLoader); manager.setParentClassLoader(parentClassLoader);
if (libraries != null) { if (libraries != null) {

View File

@@ -79,7 +79,8 @@ public class SpawnServiceImpl extends AbstractService implements SpawnService {
*/ */
@Inject @Inject
public SpawnServiceImpl(WorldService worldService, public SpawnServiceImpl(WorldService worldService,
WorldEventDispatcherService eventDispatcher, ThreadService threadService) { WorldEventDispatcherService eventDispatcher,
ThreadService threadService) {
this.worldService = worldService; this.worldService = worldService;
this.eventDispatcher = eventDispatcher; this.eventDispatcher = eventDispatcher;
this.threadService = threadService; this.threadService = threadService;

View File

@@ -56,7 +56,7 @@ public class RangeFilter implements WorldObjectFilter<PositionableObject> {
public boolean accept(PositionableObject other) { public boolean accept(PositionableObject other) {
if (other == null) if (other == null)
return false; return false;
if(other.getPoint() == null) if (other.getPoint() == null)
return false; return false;
final double dx = FastMath.abs(object.getPoint().getX() final double dx = FastMath.abs(object.getPoint().getX()

View File

@@ -16,7 +16,6 @@
*/ */
package com.l2jserver.service.network; package com.l2jserver.service.network;
import com.l2jserver.model.id.object.CharacterID; import com.l2jserver.model.id.object.CharacterID;
import com.l2jserver.model.world.L2Character; import com.l2jserver.model.world.L2Character;
import com.l2jserver.service.Service; import com.l2jserver.service.Service;

View File

@@ -48,7 +48,7 @@ public interface Lineage2Client {
/** /**
* @return the character * @return the character
*/ */
L2Character getCharacter() ; L2Character getCharacter();
/** /**
* @param characterID * @param characterID
@@ -157,14 +157,13 @@ public interface Lineage2Client {
* the {@link SystemMessage} * the {@link SystemMessage}
* @param args * @param args
* the arguments of the message, they will be automatically * the arguments of the message, they will be automatically
* detected and inserted. See <code>SM_SYSTEM_MESSAGE</code> for more * detected and inserted. See <code>SM_SYSTEM_MESSAGE</code> for
* about supported formats. * more about supported formats.
* @return the {@link ChannelFuture} that will be notified once the packet * @return the {@link ChannelFuture} that will be notified once the packet
* has been written. * has been written.
* @see SystemMessage * @see SystemMessage
*/ */
ChannelFuture sendSystemMessage(SystemMessage message, ChannelFuture sendSystemMessage(SystemMessage message, Object... args);
Object... args);
/** /**
* Sends a <code>SM_ACTION_FAILED</code> to the client. * Sends a <code>SM_ACTION_FAILED</code> to the client.
@@ -178,9 +177,9 @@ public interface Lineage2Client {
ChannelFuture sendActionFailed(); ChannelFuture sendActionFailed();
/** /**
* Sends a <code>SM_HTML</code> packet to the client. In the packet, the NPC will * Sends a <code>SM_HTML</code> packet to the client. In the packet, the NPC
* be null. If you wish to send the HTML with an NPC, you should send the * will be null. If you wish to send the HTML with an NPC, you should send
* packet directly. * the packet directly.
* <p> * <p>
* This is an convenience method for <blockquote><code> * This is an convenience method for <blockquote><code>
* conn.write(new SM_HTML(null, template));</code></blockquote> * conn.write(new SM_HTML(null, template));</code></blockquote>
@@ -193,8 +192,9 @@ public interface Lineage2Client {
ChannelFuture sendHTML(HtmlTemplate template); ChannelFuture sendHTML(HtmlTemplate template);
/** /**
* Sends a <code>SM_COMMUNITY_HTML</code> packet to the client. HTML code is not * Sends a <code>SM_COMMUNITY_HTML</code> packet to the client. HTML code is
* displayed in the regular chat window, they will appear in a large one. * not displayed in the regular chat window, they will appear in a large
* one.
* <p> * <p>
* This is an convenience method for <blockquote><code> * This is an convenience method for <blockquote><code>
* conn.write(new SM_COMMUNITY_HTML(template));</code></blockquote> * conn.write(new SM_COMMUNITY_HTML(template));</code></blockquote>

View File

@@ -16,7 +16,6 @@
*/ */
package com.l2jserver.service.network.model; package com.l2jserver.service.network.model;
/** /**
* @author <a href="http://www.rogiel.com">Rogiel</a> * @author <a href="http://www.rogiel.com">Rogiel</a>
* *

View File

@@ -18,7 +18,6 @@ package com.l2jserver.util.geometry;
import org.apache.commons.math.geometry.Vector3D; import org.apache.commons.math.geometry.Vector3D;
/** /**
* Represents an coordinate in the game world. * Represents an coordinate in the game world.
* <p> * <p>

View File

@@ -53,6 +53,7 @@ public class ScriptingServiceImplTest {
/** /**
* Tests script loading * Tests script loading
*
* @throws Exception * @throws Exception
*/ */
@Test @Test
@@ -64,6 +65,7 @@ public class ScriptingServiceImplTest {
/** /**
* Tests script instantiation * Tests script instantiation
*
* @throws Exception * @throws Exception
*/ */
@Test @Test

View File

@@ -69,6 +69,7 @@ public class WorldEventDispatcherImplTest {
/** /**
* Prepares the tests * Prepares the tests
*
* @throws ServiceStartException * @throws ServiceStartException
*/ */
@Before @Before
@@ -90,6 +91,7 @@ public class WorldEventDispatcherImplTest {
/** /**
* Test listenteners - mode 1 * Test listenteners - mode 1
*
* @throws InterruptedException * @throws InterruptedException
*/ */
@Test @Test
@@ -135,6 +137,7 @@ public class WorldEventDispatcherImplTest {
/** /**
* Test listeners - mode 2 * Test listeners - mode 2
*
* @throws InterruptedException * @throws InterruptedException
*/ */
@Test @Test

View File

@@ -409,6 +409,7 @@ public class FreyaLineage2Client implements Lineage2Client {
return (Lineage2PacketWriter) channel.getPipeline().get( return (Lineage2PacketWriter) channel.getPipeline().get(
Lineage2PacketWriter.HANDLER_NAME); Lineage2PacketWriter.HANDLER_NAME);
} }
@Override @Override
public String toString() { public String toString() {
return "Lineage2Client [channel=" + channel + ", characterID=" return "Lineage2Client [channel=" + channel + ", characterID="

View File

@@ -77,9 +77,12 @@ public class CM_CHAR_ACTION extends AbstractClientPacket {
private CharacterAction action; private CharacterAction action;
/** /**
* @param idResolver the id resolver * @param idResolver
* @param npcService the npc service * the id resolver
* @param itemService the item service * @param npcService
* the npc service
* @param itemService
* the item service
*/ */
@Inject @Inject
public CM_CHAR_ACTION(ObjectIDResolver idResolver, NPCService npcService, public CM_CHAR_ACTION(ObjectIDResolver idResolver, NPCService npcService,

View File

@@ -42,7 +42,8 @@ public class CM_CHAR_APPEARING extends AbstractClientPacket {
private final SpawnService spawnService; private final SpawnService spawnService;
/** /**
* @param spawnService the spawn service * @param spawnService
* the spawn service
*/ */
@Inject @Inject
public CM_CHAR_APPEARING(SpawnService spawnService) { public CM_CHAR_APPEARING(SpawnService spawnService) {

View File

@@ -127,7 +127,8 @@ public class CM_CHAR_ATTACK extends AbstractClientPacket {
* the object id resolver * the object id resolver
*/ */
@Inject @Inject
public CM_CHAR_ATTACK(CharacterService charService, ObjectIDResolver idResolver) { public CM_CHAR_ATTACK(CharacterService charService,
ObjectIDResolver idResolver) {
this.charService = charService; this.charService = charService;
this.idResolver = idResolver; this.idResolver = idResolver;
} }

View File

@@ -63,7 +63,8 @@ public class CM_CHAR_CHAT extends AbstractClientPacket {
private String target; private String target;
/** /**
* @param chatService the chat service * @param chatService
* the chat service
*/ */
@Inject @Inject
public CM_CHAR_CHAT(ChatService chatService) { public CM_CHAR_CHAT(ChatService chatService) {

View File

@@ -66,6 +66,7 @@ public class CM_CHAR_MOVE extends AbstractClientPacket {
/** /**
* Defines the movement action type * Defines the movement action type
*
* @author <a href="http://www.rogiel.com">Rogiel</a> * @author <a href="http://www.rogiel.com">Rogiel</a>
*/ */
public enum MovementType { public enum MovementType {
@@ -84,14 +85,16 @@ public class CM_CHAR_MOVE extends AbstractClientPacket {
public final int id; public final int id;
/** /**
* @param id the type id * @param id
* the type id
*/ */
MovementType(int id) { MovementType(int id) {
this.id = id; this.id = id;
} }
/** /**
* @param id the type id * @param id
* the type id
* @return the {@link MovementType} represented by <code>id</code> * @return the {@link MovementType} represented by <code>id</code>
*/ */
public static MovementType fromID(int id) { public static MovementType fromID(int id) {
@@ -104,7 +107,8 @@ public class CM_CHAR_MOVE extends AbstractClientPacket {
} }
/** /**
* @param charService the character service * @param charService
* the character service
*/ */
@Inject @Inject
public CM_CHAR_MOVE(CharacterService charService) { public CM_CHAR_MOVE(CharacterService charService) {

View File

@@ -51,7 +51,8 @@ public class CM_CHAR_POSITION extends AbstractClientPacket {
private int extra; // vehicle id private int extra; // vehicle id
/** /**
* @param charService the character service * @param charService
* the character service
*/ */
@Inject @Inject
public CM_CHAR_POSITION(CharacterService charService) { public CM_CHAR_POSITION(CharacterService charService) {

View File

@@ -51,7 +51,8 @@ public class CM_CHAR_SELECT extends AbstractClientPacket {
private int slot; private int slot;
/** /**
* @param characterDao the character dao * @param characterDao
* the character dao
*/ */
@Inject @Inject
public CM_CHAR_SELECT(CharacterDAO characterDao) { public CM_CHAR_SELECT(CharacterDAO characterDao) {

View File

@@ -51,7 +51,8 @@ public class CM_ENTER_WORLD extends AbstractClientPacket {
private final CharacterService characterService; private final CharacterService characterService;
/** /**
* @param characterService the character service * @param characterService
* the character service
*/ */
@Inject @Inject
public CM_ENTER_WORLD(CharacterService characterService) { public CM_ENTER_WORLD(CharacterService characterService) {

View File

@@ -53,7 +53,8 @@ public class CM_GG_KEY extends AbstractClientPacket {
private byte[] key = new byte[8]; private byte[] key = new byte[8];
/** /**
* @param ggService the gameguard service * @param ggService
* the gameguard service
*/ */
@Inject @Inject
public CM_GG_KEY(GameGuardService ggService) { public CM_GG_KEY(GameGuardService ggService) {

View File

@@ -49,7 +49,8 @@ public class CM_GOTO_LOBBY extends AbstractClientPacket {
private final CharacterDAO characterDao; private final CharacterDAO characterDao;
/** /**
* @param characterDao the character dao * @param characterDao
* the character dao
*/ */
@Inject @Inject
public CM_GOTO_LOBBY(CharacterDAO characterDao) { public CM_GOTO_LOBBY(CharacterDAO characterDao) {

View File

@@ -97,7 +97,8 @@ public class CM_ITEM_DESTROY extends AbstractClientPacket {
} else { } else {
conn.updateInventoryItems(item); conn.updateInventoryItems(item);
} }
} catch (NotEnoughItemsServiceException | NonStackableItemsServiceException e) { } catch (NotEnoughItemsServiceException
| NonStackableItemsServiceException e) {
conn.sendSystemMessage(SystemMessage.CANNOT_DISCARD_THIS_ITEM); conn.sendSystemMessage(SystemMessage.CANNOT_DISCARD_THIS_ITEM);
} }
} }

View File

@@ -119,7 +119,8 @@ public class CM_ITEM_DROP extends AbstractClientPacket {
} catch (ItemAlreadyOnGroundServiceException } catch (ItemAlreadyOnGroundServiceException
| AlreadySpawnedServiceException | AlreadySpawnedServiceException
| SpawnPointNotFoundServiceException | SpawnPointNotFoundServiceException
| NotEnoughItemsServiceException | NonStackableItemsServiceException e) { | NotEnoughItemsServiceException
| NonStackableItemsServiceException e) {
conn.sendActionFailed(); conn.sendActionFailed();
} }
} }

View File

@@ -66,7 +66,8 @@ public class CM_PROTOCOL_VERSION extends AbstractClientPacket {
private ProtocolVersion version; private ProtocolVersion version;
/** /**
* @param keygen the keygen service * @param keygen
* the keygen service
*/ */
@Inject @Inject
public CM_PROTOCOL_VERSION(BlowfishKeygenService keygen) { public CM_PROTOCOL_VERSION(BlowfishKeygenService keygen) {

View File

@@ -65,7 +65,8 @@ public class CM_REQUEST_CHAR_TEMPLATE extends AbstractClientPacket {
private final CharacterTemplateIDProvider idFactory; private final CharacterTemplateIDProvider idFactory;
/** /**
* @param idFactory the character template id provider * @param idFactory
* the character template id provider
*/ */
@Inject @Inject
public CM_REQUEST_CHAR_TEMPLATE(CharacterTemplateIDProvider idFactory) { public CM_REQUEST_CHAR_TEMPLATE(CharacterTemplateIDProvider idFactory) {

View File

@@ -49,8 +49,10 @@ public class CM_RESTART extends AbstractClientPacket {
private final CharacterDAO charDao; private final CharacterDAO charDao;
/** /**
* @param charService the character service * @param charService
* @param charDao the character dao * the character service
* @param charDao
* the character dao
*/ */
@Inject @Inject
public CM_RESTART(CharacterService charService, CharacterDAO charDao) { public CM_RESTART(CharacterService charService, CharacterDAO charDao) {

View File

@@ -55,11 +55,15 @@ public class SM_ACTOR_CHAT extends AbstractServerPacket {
private int messageID = 0; private int messageID = 0;
/** /**
* @param character the actor * @param character
* @param destination the destination * the actor
* @param message the message * @param destination
* the destination
* @param message
* the message
*/ */
public SM_ACTOR_CHAT(Actor character, ChatMessageType destination, String message) { public SM_ACTOR_CHAT(Actor character, ChatMessageType destination,
String message) {
super(OPCODE); super(OPCODE);
this.actor = character; this.actor = character;
this.destination = destination; this.destination = destination;
@@ -67,9 +71,12 @@ public class SM_ACTOR_CHAT extends AbstractServerPacket {
} }
/** /**
* @param actor the actor * @param actor
* @param destination the destination * the actor
* @param messageID the message id * @param destination
* the destination
* @param messageID
* the message id
*/ */
public SM_ACTOR_CHAT(Actor actor, ChatMessageType destination, int messageID) { public SM_ACTOR_CHAT(Actor actor, ChatMessageType destination, int messageID) {
super(OPCODE); super(OPCODE);

View File

@@ -46,8 +46,10 @@ public class SM_ACTOR_MOVE extends AbstractServerPacket {
private Coordinate target; private Coordinate target;
/** /**
* @param actor the actor * @param actor
* @param target the target * the actor
* @param target
* the target
*/ */
public SM_ACTOR_MOVE(Actor actor, Coordinate target) { public SM_ACTOR_MOVE(Actor actor, Coordinate target) {
super(OPCODE); super(OPCODE);

View File

@@ -40,7 +40,8 @@ public class SM_ACTOR_POSITION extends AbstractServerPacket {
private final Actor actor; private final Actor actor;
/** /**
* @param actor the actor * @param actor
* the actor
*/ */
public SM_ACTOR_POSITION(Actor actor) { public SM_ACTOR_POSITION(Actor actor) {
super(OPCODE); super(OPCODE);

View File

@@ -77,7 +77,8 @@ public class SM_CHAR_INFO extends AbstractServerPacket {
private L2Character character; private L2Character character;
/** /**
* @param character the character * @param character
* the character
*/ */
public SM_CHAR_INFO(L2Character character) { public SM_CHAR_INFO(L2Character character) {
super(OPCODE); super(OPCODE);

View File

@@ -39,7 +39,8 @@ public class SM_CHAR_INFO_EXTRA extends AbstractServerPacket {
private L2Character character; private L2Character character;
/** /**
* @param character the character * @param character
* the character
*/ */
public SM_CHAR_INFO_EXTRA(L2Character character) { public SM_CHAR_INFO_EXTRA(L2Character character) {
super(OPCODE); super(OPCODE);

View File

@@ -45,7 +45,8 @@ public class SM_CHAR_INVENTORY extends AbstractServerPacket {
private boolean showWindow = false; private boolean showWindow = false;
/** /**
* @param inventory the inventory * @param inventory
* the inventory
*/ */
public SM_CHAR_INVENTORY(CharacterInventory inventory) { public SM_CHAR_INVENTORY(CharacterInventory inventory) {
super(OPCODE); super(OPCODE);

View File

@@ -39,7 +39,8 @@ public class SM_CHAR_MOVE_TYPE extends AbstractServerPacket {
private final L2Character character; private final L2Character character;
/** /**
* @param character the character * @param character
* the character
*/ */
public SM_CHAR_MOVE_TYPE(L2Character character) { public SM_CHAR_MOVE_TYPE(L2Character character) {
super(OPCODE); super(OPCODE);

View File

@@ -38,7 +38,8 @@ public class SM_CHAR_OPEN_MAP extends AbstractServerPacket {
private final int mapID; private final int mapID;
/** /**
* @param mapID the map id * @param mapID
* the map id
*/ */
public SM_CHAR_OPEN_MAP(int mapID) { public SM_CHAR_OPEN_MAP(int mapID) {
super(OPCODE); super(OPCODE);

View File

@@ -42,7 +42,8 @@ public class SM_CHAR_SELECTED extends AbstractServerPacket {
private final L2Character character; private final L2Character character;
/** /**
* @param character the character * @param character
* the character
*/ */
public SM_CHAR_SELECTED(L2Character character) { public SM_CHAR_SELECTED(L2Character character) {
super(OPCODE); super(OPCODE);

View File

@@ -39,7 +39,8 @@ public class SM_CHAR_STOP extends AbstractServerPacket {
private L2Character character; private L2Character character;
/** /**
* @param character the character * @param character
* the character
*/ */
public SM_CHAR_STOP(L2Character character) { public SM_CHAR_STOP(L2Character character) {
super(OPCODE); super(OPCODE);

View File

@@ -40,7 +40,8 @@ public class SM_CHAR_TARGET_UNSELECT extends AbstractServerPacket {
private final L2Character character; private final L2Character character;
/** /**
* @param character the character * @param character
* the character
*/ */
public SM_CHAR_TARGET_UNSELECT(L2Character character) { public SM_CHAR_TARGET_UNSELECT(L2Character character) {
super(OPCODE); super(OPCODE);

View File

@@ -45,8 +45,10 @@ public class SM_CHAR_TELEPORT extends AbstractServerPacket {
private final Point3D point; private final Point3D point;
/** /**
* @param character the character * @param character
* @param point the teleport point * the character
* @param point
* the teleport point
*/ */
public SM_CHAR_TELEPORT(L2Character character, Point3D point) { public SM_CHAR_TELEPORT(L2Character character, Point3D point) {
super(OPCODE); super(OPCODE);

View File

@@ -42,7 +42,8 @@ public class SM_COMMUNITY_HTML extends AbstractServerPacket {
private final String html; private final String html;
/** /**
* @param html the html * @param html
* the html
*/ */
public SM_COMMUNITY_HTML(String html) { public SM_COMMUNITY_HTML(String html) {
super(OPCODE); super(OPCODE);
@@ -50,7 +51,8 @@ public class SM_COMMUNITY_HTML extends AbstractServerPacket {
} }
/** /**
* @param html the html * @param html
* the html
*/ */
public SM_COMMUNITY_HTML(Html html) { public SM_COMMUNITY_HTML(Html html) {
super(OPCODE); super(OPCODE);
@@ -58,7 +60,8 @@ public class SM_COMMUNITY_HTML extends AbstractServerPacket {
} }
/** /**
* @param template the html template * @param template
* the html template
*/ */
public SM_COMMUNITY_HTML(HtmlTemplate template) { public SM_COMMUNITY_HTML(HtmlTemplate template) {
super(OPCODE); super(OPCODE);

View File

@@ -38,7 +38,8 @@ public class SM_ITEM_GROUND extends AbstractServerPacket {
private final Item item; private final Item item;
/** /**
* @param item the item that is on the ground * @param item
* the item that is on the ground
*/ */
public SM_ITEM_GROUND(Item item) { public SM_ITEM_GROUND(Item item) {
super(OPCODE); super(OPCODE);
@@ -47,7 +48,8 @@ public class SM_ITEM_GROUND extends AbstractServerPacket {
@Override @Override
public void write(Lineage2Client conn, ChannelBuffer buffer) { public void write(Lineage2Client conn, ChannelBuffer buffer) {
buffer.writeInt((item.getOwnerID() != null ? item.getOwnerID().getID() : 0)); // char who dropped buffer.writeInt((item.getOwnerID() != null ? item.getOwnerID().getID()
: 0)); // char who dropped
buffer.writeInt(item.getID().getID()); // item obj id buffer.writeInt(item.getID().getID()); // item obj id
buffer.writeInt(item.getTemplateID().getID()); // item template id buffer.writeInt(item.getTemplateID().getID()); // item template id

View File

@@ -39,7 +39,8 @@ public class SM_MANOR_LIST extends AbstractServerPacket {
private String[] manors; private String[] manors;
/** /**
* @param manors the manors * @param manors
* the manors
*/ */
public SM_MANOR_LIST(String... manors) { public SM_MANOR_LIST(String... manors) {
super(OPCODE); super(OPCODE);

View File

@@ -55,7 +55,8 @@ public class SM_SERVER_OBJECT extends AbstractServerPacket {
buffer.writeInt(npc.getID().getID()); // obj id buffer.writeInt(npc.getID().getID()); // obj id
buffer.writeInt(npc.getTemplateID().getID() + 1000000); // template id buffer.writeInt(npc.getTemplateID().getID() + 1000000); // template id
BufferUtils.writeString(buffer, template.getInfo().getName().getValue()); // name BufferUtils
.writeString(buffer, template.getInfo().getName().getValue()); // name
buffer.writeInt((template.getInfo().isAttackable() ? 0x01 : 0x00)); // attackable buffer.writeInt((template.getInfo().isAttackable() ? 0x01 : 0x00)); // attackable
buffer.writeInt(npc.getPoint().getX()); // x buffer.writeInt(npc.getPoint().getX()); // x
buffer.writeInt(npc.getPoint().getY()); // y buffer.writeInt(npc.getPoint().getY()); // y
@@ -65,7 +66,8 @@ public class SM_SERVER_OBJECT extends AbstractServerPacket {
buffer.writeDouble(0x01); // attack spd mult buffer.writeDouble(0x01); // attack spd mult
buffer.writeDouble(template.getInfo().getCollision().getRadius()); buffer.writeDouble(template.getInfo().getCollision().getRadius());
buffer.writeDouble(template.getInfo().getCollision().getHeigth()); buffer.writeDouble(template.getInfo().getCollision().getHeigth());
buffer.writeInt((int) (template.getInfo().isAttackable() ? npc.getHP() : 0x00)); buffer.writeInt((int) (template.getInfo().isAttackable() ? npc.getHP()
: 0x00));
buffer.writeInt((int) (template.getInfo().isAttackable() ? template buffer.writeInt((int) (template.getInfo().isAttackable() ? template
.getInfo().getStats().getHp() : 0x00)); .getInfo().getStats().getHp() : 0x00));
buffer.writeInt(0x01); // object type buffer.writeInt(0x01); // object type

View File

@@ -1,67 +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.service.network.gameguard;
import java.util.concurrent.Future;
import com.l2jserver.model.world.L2Character;
import com.l2jserver.service.Service;
import com.l2jserver.service.network.model.Lineage2Client;
/**
* This service is responsible for querying and validating GameGuard packets
*
* @author <a href="http://www.rogiel.com">Rogiel</a>
*/
public interface GameGuardService extends Service {
/**
* Queries the client GameGuard for an response
*
* @param character
* the lineage 2 character
* @return an future that will be used to obtain validation status
*/
Future<GameGuardResponse> query(L2Character character);
/**
* The Game guard key state
*
* @author <a href="http://www.rogiel.com">Rogiel</a>
*/
public enum GameGuardResponse {
/**
* Key is valid
*/
VALID,
/**
* Key is not valid
*/
INVALID;
}
/**
* Sets the game guard key for the given connection. Future will be notified
* of the key state (valid or invalid).
*
* @param conn
* the connection
* @param key
* the key
* @return the validation state
*/
GameGuardResponse key(Lineage2Client conn, byte[] key);
}

View File

@@ -131,15 +131,15 @@ public class NPCTemplateConverter {
} }
System.out.println("Generating template XML files..."); System.out.println("Generating template XML files...");
// c.generateSchema(new SchemaOutputResolver() { // c.generateSchema(new SchemaOutputResolver() {
// @Override // @Override
// public Result createOutput(String namespaceUri, // public Result createOutput(String namespaceUri,
// String suggestedFileName) throws IOException { // String suggestedFileName) throws IOException {
// // System.out.println(new File(target, suggestedFileName)); // // System.out.println(new File(target, suggestedFileName));
// // return null; // // return null;
// return new StreamResult(new File(target, suggestedFileName)); // return new StreamResult(new File(target, suggestedFileName));
// } // }
// }); // });
try { try {
final Marshaller m = c.createMarshaller(); final Marshaller m = c.createMarshaller();
@@ -225,7 +225,7 @@ public class NPCTemplateConverter {
template.getInfo().setName(factory.createNPCTemplateInfoName()); template.getInfo().setName(factory.createNPCTemplateInfoName());
template.getInfo().getName().setValue(rs.getString("name")); template.getInfo().getName().setValue(rs.getString("name"));
//template.getInfo().getName().setDisplay(rs.getBoolean("show_name")); // template.getInfo().getName().setDisplay(rs.getBoolean("show_name"));
template.getInfo().getName().setSend(rs.getBoolean("serverSideName")); template.getInfo().getName().setSend(rs.getBoolean("serverSideName"));
template.getInfo().setTitle(factory.createNPCTemplateInfoTitle()); template.getInfo().setTitle(factory.createNPCTemplateInfoTitle());
@@ -243,9 +243,9 @@ public class NPCTemplateConverter {
template.getInfo().setSex( template.getInfo().setSex(
ActorSex.valueOf(rs.getString("sex").toUpperCase())); ActorSex.valueOf(rs.getString("sex").toUpperCase()));
// template.info.attackable = rs.getBoolean("attackable"); // template.info.attackable = rs.getBoolean("attackable");
//template.getInfo().setTargetable(rs.getBoolean("targetable")); // template.getInfo().setTargetable(rs.getBoolean("targetable"));
template.getInfo().setTargetable(true); template.getInfo().setTargetable(true);
//template.getInfo().setAggressive(rs.getBoolean("aggro")); // template.getInfo().setAggressive(rs.getBoolean("aggro"));
template.getInfo().setAggressive(true); template.getInfo().setAggressive(true);
template.getInfo().setAttackable(true); // FIXME template.getInfo().setAttackable(true); // FIXME
@@ -351,9 +351,9 @@ public class NPCTemplateConverter {
final ResultSet rs = st.getResultSet(); final ResultSet rs = st.getResultSet();
while (rs.next()) { while (rs.next()) {
final Droplist.Item item = factory.createNPCTemplateDroplistItem(); final Droplist.Item item = factory.createNPCTemplateDroplistItem();
item.setId( new ItemTemplateID(rs.getInt("itemId"), null)); item.setId(new ItemTemplateID(rs.getInt("itemId"), null));
item.setMin(rs.getInt("min")); item.setMin(rs.getInt("min"));
item.setMax( rs.getInt("max")); item.setMax(rs.getInt("max"));
item.setChance(rs.getInt("chance")); item.setChance(rs.getInt("chance"));
item.setCategory(getCategory(rs.getInt("category"))); item.setCategory(getCategory(rs.getInt("category")));
drops.getItem().add(item); drops.getItem().add(item);
@@ -363,7 +363,8 @@ public class NPCTemplateConverter {
return drops; return drops;
} }
private static Talk fillHtmlChat(final ObjectFactory factory, int npcId) throws IOException { private static Talk fillHtmlChat(final ObjectFactory factory, int npcId)
throws IOException {
final Talk talk = factory.createNPCTemplateTalk(); final Talk talk = factory.createNPCTemplateTalk();
talk.setDefault("default"); talk.setDefault("default");
for (final File file : htmlScannedFiles) { for (final File file : htmlScannedFiles) {
@@ -389,8 +390,8 @@ public class NPCTemplateConverter {
return talk; return talk;
} }
private static Skills fillSkillList(final ObjectFactory factory, ResultSet npcRs, int npcId) private static Skills fillSkillList(final ObjectFactory factory,
throws SQLException { ResultSet npcRs, int npcId) throws SQLException {
final Connection conn = npcRs.getStatement().getConnection(); final Connection conn = npcRs.getStatement().getConnection();
final Skills skills = factory.createNPCTemplateSkills(); final Skills skills = factory.createNPCTemplateSkills();

View File

@@ -18,7 +18,6 @@ package com.l2jserver.tool;
import com.l2jserver.model.template.character.CharacterClass; import com.l2jserver.model.template.character.CharacterClass;
public class CharacterSQLEnumGenerator { public class CharacterSQLEnumGenerator {
public static void main(String[] args) { public static void main(String[] args) {
System.out.println("== 'Character' SQL STATEMENT =="); System.out.println("== 'Character' SQL STATEMENT ==");

View File

@@ -18,8 +18,6 @@ package com.l2jserver.tool;
import com.l2jserver.model.template.character.CharacterClass; import com.l2jserver.model.template.character.CharacterClass;
public class PacketSamuraiCharacterClassEnum { public class PacketSamuraiCharacterClassEnum {
public static void main(String[] args) { public static void main(String[] args) {
System.out.println(createClassStatement()); System.out.println(createClassStatement());

Some files were not shown because too many files have changed in this diff Show More