1
0
mirror of https://github.com/Rogiel/l2jserver2 synced 2025-12-11 09:42:54 +00:00

Support for H2 databases

Signed-off-by: Rogiel <rogiel@rogiel.com>
This commit is contained in:
2011-05-27 00:13:59 -03:00
parent 81dea2def4
commit aabe375b49
45 changed files with 1585 additions and 236 deletions

View File

@@ -31,7 +31,8 @@ import com.l2jserver.model.world.character.CharacterClass;
import com.l2jserver.util.jaxb.CharacterTemplateIDAdapter;
/**
* The {@link L2Character} template. Each character instance is backed by an template.
* The {@link L2Character} template. Each character instance is backed by an
* template.
*
* @author <a href="http://www.rogiel.com">Rogiel</a>
*/
@@ -43,9 +44,6 @@ public class CharacterTemplate extends ActorTemplate<L2Character> {
@XmlAttribute(name = "class")
protected CharacterTemplateID id = null;
@XmlAttribute(name = "class")
protected CharacterClass characterClass = null;
@XmlElement(name = "stats")
protected CharacterStatsMetadata stats = null;
@@ -181,14 +179,14 @@ public class CharacterTemplate extends ActorTemplate<L2Character> {
* @return the character Class
*/
public CharacterClass getCharacterClass() {
return characterClass;
return CharacterClass.fromID(id.getID());
}
/**
* @return the character race
*/
public ActorRace getRace() {
return characterClass.race;
return getCharacterClass().race;
}
/**