mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-02 03:15:52 -04:00
Merge branch 'master' of https://github.com/ProjectSWGCore/NGECore2
Conflicts: .gitignore src/main/NGECore.java src/resources/objects/creature/CreatureObject.java src/resources/objects/mission/MissionObject.java src/resources/objects/tangible/TangibleObject.java src/services/chat/Mail.java src/services/mission/MissionObjective.java src/services/object/ObjectService.java src/services/playercities/PlayerCity.java
This commit is contained in:
@@ -50,13 +50,12 @@ import com.sleepycat.persist.model.NotPersistent;
|
||||
|
||||
import main.NGECore;
|
||||
import engine.clients.Client;
|
||||
import resources.buffs.Buff;
|
||||
import resources.buffs.DamageOverTime;
|
||||
import resources.common.Cooldown;
|
||||
import resources.common.OutOfBand;
|
||||
import resources.objects.Buff;
|
||||
import resources.objects.DamageOverTime;
|
||||
import resources.objects.SWGList;
|
||||
import resources.objects.SWGMap;
|
||||
import resources.objects.SkillMod;
|
||||
import engine.resources.common.CRC;
|
||||
import engine.resources.objects.IPersistent;
|
||||
import engine.resources.objects.MissionCriticalObject;
|
||||
@@ -66,6 +65,7 @@ import engine.resources.scene.Point3D;
|
||||
import engine.resources.scene.Quaternion;
|
||||
import resources.objects.player.PlayerObject;
|
||||
import resources.objects.tangible.TangibleObject;
|
||||
import resources.skills.SkillMod;
|
||||
import services.command.BaseSWGCommand;
|
||||
|
||||
@Entity(version=9)
|
||||
@@ -189,6 +189,8 @@ public class CreatureObject extends TangibleObject implements Serializable {
|
||||
private transient ConcurrentHashMap<String, Long> cooldowns = new ConcurrentHashMap<String, Long>();
|
||||
@NotPersistent
|
||||
private transient long tefTime = System.currentTimeMillis();
|
||||
@NotPersistent
|
||||
private transient SWGObject useTarget;
|
||||
|
||||
public CreatureObject(long objectID, Planet planet, Point3D position, Quaternion orientation, String Template) {
|
||||
super(objectID, planet, Template, position, orientation);
|
||||
@@ -983,6 +985,18 @@ public class CreatureObject extends TangibleObject implements Serializable {
|
||||
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