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

@@ -97,11 +97,6 @@ public class L2Character extends Player {
*/
private Date lastAccess;
/**
* The character stat
*/
private final CharacterStats stats = new CharacterStats(this);
/**
* The character karma points
*/
@@ -118,12 +113,16 @@ public class L2Character extends Player {
// ////////////////////////////////////
// / RUNTIME
// ////////////////////////////////////
/**
* The character stat
*/
private transient final CharacterStats stats = new CharacterStats(this);
/**
* The character walk mode.
* <p>
* This field is not persisted.
*/
private CharacterMoveType moveType = CharacterMoveType.WALK;
private transient CharacterMoveType moveType = CharacterMoveType.WALK;
/**
* The character walking mode
@@ -143,11 +142,11 @@ public class L2Character extends Player {
/**
* The character target, if any.
*/
private ActorID<?> targetID;
private transient ActorID<?> targetID;
/**
* State of the character. Will be null if it is idle
*/
private CharacterState state;
private transient CharacterState state;
/**
* The valid states for an character
@@ -180,7 +179,7 @@ public class L2Character extends Player {
/**
* The point the player is moving, teleporting etc...
*/
private Point targetLocation;
private transient Point targetLocation;
/**
* Creates a new instance

View File

@@ -16,8 +16,8 @@
*/
package com.l2jserver.model.world.character;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import com.l2jserver.model.world.Item;
@@ -76,7 +76,7 @@ public class CharacterInventory implements Iterable<Item> {
* @param items
* the items to be added
*/
public void load(List<Item> items) {
public void load(Collection<Item> items) {
this.items.clear();
this.items.addAll(items);
}