mirror of
https://github.com/Rogiel/l2jserver2
synced 2025-12-09 08:52:51 +00:00
@@ -98,17 +98,12 @@ public class L2Character extends Player {
|
||||
// ////////////////////////////////////
|
||||
// / 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
|
||||
@@ -125,6 +120,19 @@ public class L2Character extends Player {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The character target, if any.
|
||||
*/
|
||||
private ActorID<?> targetID;
|
||||
/**
|
||||
* State if the player is being teleported
|
||||
*/
|
||||
private CharacterState state;
|
||||
|
||||
public enum CharacterState {
|
||||
TELEPORTING;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance
|
||||
*
|
||||
@@ -298,6 +306,28 @@ public class L2Character extends Player {
|
||||
this.targetID = target;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the state
|
||||
*/
|
||||
public CharacterState getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param state
|
||||
* the state to set
|
||||
*/
|
||||
public void setState(CharacterState state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return true if character is being teleported
|
||||
*/
|
||||
public boolean isTeleporting() {
|
||||
return state == CharacterState.TELEPORTING;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the inventory
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user