mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-02 03:15:52 -04:00
Added UseTarget to CreatureObject
This commit is contained in:
@@ -189,6 +189,8 @@ public class CreatureObject extends TangibleObject implements IPersistent {
|
||||
private ConcurrentHashMap<String, Long> cooldowns = new ConcurrentHashMap<String, Long>();
|
||||
@NotPersistent
|
||||
private long tefTime = System.currentTimeMillis();
|
||||
@NotPersistent
|
||||
private SWGObject useTarget;
|
||||
|
||||
public CreatureObject(long objectID, Planet planet, Point3D position, Quaternion orientation, String Template) {
|
||||
super(objectID, planet, Template, position, orientation);
|
||||
@@ -987,6 +989,18 @@ public class CreatureObject extends TangibleObject implements IPersistent {
|
||||
notifyObservers(messageBuilder.buildIntendedTargetDelta(intendedTarget), true);
|
||||
}
|
||||
|
||||
public SWGObject getUseTarget() {
|
||||
synchronized(objectMutex) {
|
||||
return useTarget;
|
||||
}
|
||||
}
|
||||
|
||||
public void setUseTarget(SWGObject useTarget) {
|
||||
synchronized(objectMutex) {
|
||||
this.useTarget = useTarget;
|
||||
}
|
||||
}
|
||||
|
||||
public long getTargetId() {
|
||||
return getIntendedTarget();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user