Browse Source

AI methods moved to ai class.

mobile-class-refactor
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 @@
package engine.objects; package engine.objects;
import ch.claude_martin.enumbitset.EnumBitSet;
import engine.Enum; import engine.Enum;
import engine.Enum.GameObjectType; import engine.Enum.GameObjectType;
import engine.Enum.ModType; import engine.Enum.ModType;
@ -33,6 +34,14 @@ public abstract class AbstractIntelligenceAgent extends AbstractCharacter {
public Enum.AIAgentType agentType = Enum.AIAgentType.MOBILE; public Enum.AIAgentType agentType = Enum.AIAgentType.MOBILE;
public boolean isPlayerGuard = false; public boolean isPlayerGuard = false;
public AbstractCharacter guardCaptain; 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() { public AbstractIntelligenceAgent() {
super(); super();

9
src/engine/objects/Mob.java

@ -64,14 +64,7 @@ public class Mob extends AbstractIntelligenceAgent {
public int equipmentSetID = 0; public int equipmentSetID = 0;
public int runeSet = 0; public int runeSet = 0;
public int bootySet = 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 int loadID;
public float spawnRadius; public float spawnRadius;
//used by static mobs //used by static mobs

Loading…
Cancel
Save