Browse Source

AI methods moved to ai class.

combat-2
MagicBot 1 year ago
parent
commit
ebdcb531f2
  1. 9
      src/engine/objects/AbstractIntelligenceAgent.java
  2. 9
      src/engine/objects/Mob.java

9
src/engine/objects/AbstractIntelligenceAgent.java

@ -9,6 +9,7 @@ @@ -9,6 +9,7 @@
package engine.objects;
import ch.claude_martin.enumbitset.EnumBitSet;
import engine.Enum;
import engine.Enum.GameObjectType;
import engine.Enum.ModType;
@ -33,6 +34,14 @@ public abstract class AbstractIntelligenceAgent extends AbstractCharacter { @@ -33,6 +34,14 @@ public abstract class AbstractIntelligenceAgent extends AbstractCharacter {
public Enum.AIAgentType agentType = Enum.AIAgentType.MOBILE;
public boolean isPlayerGuard = false;
public AbstractCharacter guardCaptain;
public EnumBitSet<Enum.MonsterType> notEnemy = EnumBitSet.noneOf(Enum.MonsterType.class);
public EnumBitSet<Enum.MonsterType> enemy = EnumBitSet.noneOf(Enum.MonsterType.class);
;
public Enum.MobBehaviourType behaviourType;
public ArrayList<Vector3fImmutable> patrolPoints;
public int lastPatrolPointIndex = 0;
public long stopPatrolTime = 0;
public City guardedCity;
public AbstractIntelligenceAgent() {
super();

9
src/engine/objects/Mob.java

@ -64,14 +64,7 @@ public class Mob extends AbstractIntelligenceAgent { @@ -64,14 +64,7 @@ public class Mob extends AbstractIntelligenceAgent {
public int equipmentSetID = 0;
public int runeSet = 0;
public int bootySet = 0;
public EnumBitSet<MonsterType> notEnemy = EnumBitSet.noneOf(MonsterType.class);
public EnumBitSet<Enum.MonsterType> enemy = EnumBitSet.noneOf(MonsterType.class);
;
public MobBehaviourType behaviourType;
public ArrayList<Vector3fImmutable> patrolPoints;
public int lastPatrolPointIndex = 0;
public long stopPatrolTime = 0;
public City guardedCity;
public int loadID;
public float spawnRadius;
//used by static mobs

Loading…
Cancel
Save