Removal of notifyEvent EVT_ARRIVED with task.

This commit is contained in:
MobiusDevelopment
2021-10-24 22:11:14 +00:00
parent 848872ae4c
commit 4b302b66db
44 changed files with 44 additions and 44 deletions
@@ -3165,7 +3165,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if (distFraction > 1) if (distFraction > 1)
{ {
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED)); getAI().notifyEvent(CtrlEvent.EVT_ARRIVED);
return true; return true;
} }
@@ -124,7 +124,7 @@ public class CreatureFollowTaskManager
} }
else else
{ {
ThreadPool.execute(() -> ai.notifyEvent(CtrlEvent.EVT_ARRIVED)); ai.notifyEvent(CtrlEvent.EVT_ARRIVED);
} }
} }
else else
@@ -3165,7 +3165,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if (distFraction > 1) if (distFraction > 1)
{ {
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED)); getAI().notifyEvent(CtrlEvent.EVT_ARRIVED);
return true; return true;
} }
@@ -124,7 +124,7 @@ public class CreatureFollowTaskManager
} }
else else
{ {
ThreadPool.execute(() -> ai.notifyEvent(CtrlEvent.EVT_ARRIVED)); ai.notifyEvent(CtrlEvent.EVT_ARRIVED);
} }
} }
else else
@@ -3165,7 +3165,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if (distFraction > 1) if (distFraction > 1)
{ {
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED)); getAI().notifyEvent(CtrlEvent.EVT_ARRIVED);
return true; return true;
} }
@@ -124,7 +124,7 @@ public class CreatureFollowTaskManager
} }
else else
{ {
ThreadPool.execute(() -> ai.notifyEvent(CtrlEvent.EVT_ARRIVED)); ai.notifyEvent(CtrlEvent.EVT_ARRIVED);
} }
} }
else else
@@ -3165,7 +3165,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if (distFraction > 1) if (distFraction > 1)
{ {
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED)); getAI().notifyEvent(CtrlEvent.EVT_ARRIVED);
return true; return true;
} }
@@ -124,7 +124,7 @@ public class CreatureFollowTaskManager
} }
else else
{ {
ThreadPool.execute(() -> ai.notifyEvent(CtrlEvent.EVT_ARRIVED)); ai.notifyEvent(CtrlEvent.EVT_ARRIVED);
} }
} }
else else
@@ -3165,7 +3165,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if (distFraction > 1) if (distFraction > 1)
{ {
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED)); getAI().notifyEvent(CtrlEvent.EVT_ARRIVED);
return true; return true;
} }
@@ -124,7 +124,7 @@ public class CreatureFollowTaskManager
} }
else else
{ {
ThreadPool.execute(() -> ai.notifyEvent(CtrlEvent.EVT_ARRIVED)); ai.notifyEvent(CtrlEvent.EVT_ARRIVED);
} }
} }
else else
@@ -3165,7 +3165,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if (distFraction > 1) if (distFraction > 1)
{ {
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED)); getAI().notifyEvent(CtrlEvent.EVT_ARRIVED);
return true; return true;
} }
@@ -124,7 +124,7 @@ public class CreatureFollowTaskManager
} }
else else
{ {
ThreadPool.execute(() -> ai.notifyEvent(CtrlEvent.EVT_ARRIVED)); ai.notifyEvent(CtrlEvent.EVT_ARRIVED);
} }
} }
else else
@@ -3165,7 +3165,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if (distFraction > 1) if (distFraction > 1)
{ {
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED)); getAI().notifyEvent(CtrlEvent.EVT_ARRIVED);
return true; return true;
} }
@@ -124,7 +124,7 @@ public class CreatureFollowTaskManager
} }
else else
{ {
ThreadPool.execute(() -> ai.notifyEvent(CtrlEvent.EVT_ARRIVED)); ai.notifyEvent(CtrlEvent.EVT_ARRIVED);
} }
} }
else else
@@ -3164,7 +3164,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if (distFraction > 1) if (distFraction > 1)
{ {
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED)); getAI().notifyEvent(CtrlEvent.EVT_ARRIVED);
return true; return true;
} }
@@ -124,7 +124,7 @@ public class CreatureFollowTaskManager
} }
else else
{ {
ThreadPool.execute(() -> ai.notifyEvent(CtrlEvent.EVT_ARRIVED)); ai.notifyEvent(CtrlEvent.EVT_ARRIVED);
} }
} }
else else
@@ -3164,7 +3164,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if (distFraction > 1) if (distFraction > 1)
{ {
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED)); getAI().notifyEvent(CtrlEvent.EVT_ARRIVED);
return true; return true;
} }
@@ -124,7 +124,7 @@ public class CreatureFollowTaskManager
} }
else else
{ {
ThreadPool.execute(() -> ai.notifyEvent(CtrlEvent.EVT_ARRIVED)); ai.notifyEvent(CtrlEvent.EVT_ARRIVED);
} }
} }
else else
@@ -3164,7 +3164,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if (distFraction > 1) if (distFraction > 1)
{ {
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED)); getAI().notifyEvent(CtrlEvent.EVT_ARRIVED);
return true; return true;
} }
@@ -124,7 +124,7 @@ public class CreatureFollowTaskManager
} }
else else
{ {
ThreadPool.execute(() -> ai.notifyEvent(CtrlEvent.EVT_ARRIVED)); ai.notifyEvent(CtrlEvent.EVT_ARRIVED);
} }
} }
else else
@@ -124,7 +124,7 @@ public class CreatureFollowTaskManager
} }
else else
{ {
ThreadPool.execute(() -> ai.notifyEvent(CtrlEvent.EVT_ARRIVED)); ai.notifyEvent(CtrlEvent.EVT_ARRIVED);
} }
} }
else else
@@ -124,7 +124,7 @@ public class CreatureFollowTaskManager
} }
else else
{ {
ThreadPool.execute(() -> ai.notifyEvent(CtrlEvent.EVT_ARRIVED)); ai.notifyEvent(CtrlEvent.EVT_ARRIVED);
} }
} }
else else
@@ -4103,7 +4103,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if (distFraction > 1) if (distFraction > 1)
{ {
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED)); getAI().notifyEvent(CtrlEvent.EVT_ARRIVED);
return true; return true;
} }
@@ -124,7 +124,7 @@ public class CreatureFollowTaskManager
} }
else else
{ {
ThreadPool.execute(() -> ai.notifyEvent(CtrlEvent.EVT_ARRIVED)); ai.notifyEvent(CtrlEvent.EVT_ARRIVED);
} }
} }
else else
@@ -4105,7 +4105,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if (distFraction > 1) if (distFraction > 1)
{ {
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED)); getAI().notifyEvent(CtrlEvent.EVT_ARRIVED);
return true; return true;
} }
@@ -124,7 +124,7 @@ public class CreatureFollowTaskManager
} }
else else
{ {
ThreadPool.execute(() -> ai.notifyEvent(CtrlEvent.EVT_ARRIVED)); ai.notifyEvent(CtrlEvent.EVT_ARRIVED);
} }
} }
else else
@@ -3165,7 +3165,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if (distFraction > 1) if (distFraction > 1)
{ {
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED)); getAI().notifyEvent(CtrlEvent.EVT_ARRIVED);
return true; return true;
} }
@@ -124,7 +124,7 @@ public class CreatureFollowTaskManager
} }
else else
{ {
ThreadPool.execute(() -> ai.notifyEvent(CtrlEvent.EVT_ARRIVED)); ai.notifyEvent(CtrlEvent.EVT_ARRIVED);
} }
} }
else else
@@ -3165,7 +3165,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if (distFraction > 1) if (distFraction > 1)
{ {
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED)); getAI().notifyEvent(CtrlEvent.EVT_ARRIVED);
return true; return true;
} }
@@ -124,7 +124,7 @@ public class CreatureFollowTaskManager
} }
else else
{ {
ThreadPool.execute(() -> ai.notifyEvent(CtrlEvent.EVT_ARRIVED)); ai.notifyEvent(CtrlEvent.EVT_ARRIVED);
} }
} }
else else
@@ -3165,7 +3165,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if (distFraction > 1) if (distFraction > 1)
{ {
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED)); getAI().notifyEvent(CtrlEvent.EVT_ARRIVED);
return true; return true;
} }
@@ -124,7 +124,7 @@ public class CreatureFollowTaskManager
} }
else else
{ {
ThreadPool.execute(() -> ai.notifyEvent(CtrlEvent.EVT_ARRIVED)); ai.notifyEvent(CtrlEvent.EVT_ARRIVED);
} }
} }
else else
@@ -3178,7 +3178,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if (distFraction > 1) if (distFraction > 1)
{ {
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED)); getAI().notifyEvent(CtrlEvent.EVT_ARRIVED);
return true; return true;
} }
@@ -124,7 +124,7 @@ public class CreatureFollowTaskManager
} }
else else
{ {
ThreadPool.execute(() -> ai.notifyEvent(CtrlEvent.EVT_ARRIVED)); ai.notifyEvent(CtrlEvent.EVT_ARRIVED);
} }
} }
else else
@@ -3178,7 +3178,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if (distFraction > 1) if (distFraction > 1)
{ {
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED)); getAI().notifyEvent(CtrlEvent.EVT_ARRIVED);
return true; return true;
} }
@@ -124,7 +124,7 @@ public class CreatureFollowTaskManager
} }
else else
{ {
ThreadPool.execute(() -> ai.notifyEvent(CtrlEvent.EVT_ARRIVED)); ai.notifyEvent(CtrlEvent.EVT_ARRIVED);
} }
} }
else else
@@ -3177,7 +3177,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if (distFraction > 1) if (distFraction > 1)
{ {
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED)); getAI().notifyEvent(CtrlEvent.EVT_ARRIVED);
return true; return true;
} }
@@ -124,7 +124,7 @@ public class CreatureFollowTaskManager
} }
else else
{ {
ThreadPool.execute(() -> ai.notifyEvent(CtrlEvent.EVT_ARRIVED)); ai.notifyEvent(CtrlEvent.EVT_ARRIVED);
} }
} }
else else
@@ -3165,7 +3165,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if (distFraction > 1) if (distFraction > 1)
{ {
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED)); getAI().notifyEvent(CtrlEvent.EVT_ARRIVED);
return true; return true;
} }
@@ -124,7 +124,7 @@ public class CreatureFollowTaskManager
} }
else else
{ {
ThreadPool.execute(() -> ai.notifyEvent(CtrlEvent.EVT_ARRIVED)); ai.notifyEvent(CtrlEvent.EVT_ARRIVED);
} }
} }
else else
@@ -3180,7 +3180,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if (distFraction > 1) if (distFraction > 1)
{ {
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED)); getAI().notifyEvent(CtrlEvent.EVT_ARRIVED);
return true; return true;
} }
@@ -124,7 +124,7 @@ public class CreatureFollowTaskManager
} }
else else
{ {
ThreadPool.execute(() -> ai.notifyEvent(CtrlEvent.EVT_ARRIVED)); ai.notifyEvent(CtrlEvent.EVT_ARRIVED);
} }
} }
else else
@@ -3187,7 +3187,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
if (distFraction > 1) if (distFraction > 1)
{ {
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED)); getAI().notifyEvent(CtrlEvent.EVT_ARRIVED);
return true; return true;
} }
@@ -124,7 +124,7 @@ public class CreatureFollowTaskManager
} }
else else
{ {
ThreadPool.execute(() -> ai.notifyEvent(CtrlEvent.EVT_ARRIVED)); ai.notifyEvent(CtrlEvent.EVT_ARRIVED);
} }
} }
else else