1
0
mirror of https://github.com/Rogiel/l2jserver2 synced 2025-12-09 08:52:51 +00:00

Several improvements

Signed-off-by: Rogiel <rogiel@rogiel.com>
This commit is contained in:
2011-05-19 01:40:53 -03:00
parent 9bb83652e4
commit 2c4af6d91d
263 changed files with 2135 additions and 663 deletions

View File

@@ -19,11 +19,13 @@ package com.l2jserver.model.world;
import java.sql.Date;
import com.l2jserver.model.id.AccountID;
import com.l2jserver.model.id.object.ActorID;
import com.l2jserver.model.id.object.CharacterID;
import com.l2jserver.model.id.object.ClanID;
import com.l2jserver.model.id.object.PetID;
import com.l2jserver.model.template.CharacterTemplate;
import com.l2jserver.model.world.actor.ActorAttributes;
import com.l2jserver.model.world.capability.Actor;
import com.l2jserver.model.world.character.CharacterAppearance;
import com.l2jserver.model.world.character.CharacterCalculatedAttributes;
import com.l2jserver.model.world.character.CharacterClass;
@@ -92,12 +94,21 @@ public class L2Character extends Player {
* Date of character's last access
*/
private Date lastAccess;
// ////////////////////////////////////
// / RUNTIME
// ////////////////////////////////////
/**
* The character walk mode.
* <p>
* This field is not persisted.
*/
private CharacterMoveType moveType = CharacterMoveType.WALK;
/**
* The character target, if any.
*/
private ActorID<?> targetID;
/**
* The character walking mode
@@ -263,6 +274,30 @@ public class L2Character extends Player {
this.moveType = moveType;
}
/**
* @return the target ID
*/
public ActorID<?> getTargetID() {
return targetID;
}
/**
* @return the target
*/
public Actor getTarget() {
if (targetID == null)
return null;
return targetID.getObject();
}
/**
* @param target
* the target ID to set
*/
public void setTargetID(ActorID<?> target) {
this.targetID = target;
}
/**
* @return the inventory
*/