forked from MagicBane/Server
enemy/notEnemy bitvectors loaded into mobbase.
This commit is contained in:
@@ -62,6 +62,10 @@ public class MobBase extends AbstractGameObject {
|
|||||||
private float runCombat = 0;
|
private float runCombat = 0;
|
||||||
public int bootySet;
|
public int bootySet;
|
||||||
public String fsm = "";
|
public String fsm = "";
|
||||||
|
|
||||||
|
public EnumBitSet<Enum.MonsterType> notEnemy;
|
||||||
|
public EnumBitSet<Enum.MonsterType> enemy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ResultSet Constructor
|
* ResultSet Constructor
|
||||||
*/
|
*/
|
||||||
@@ -108,6 +112,11 @@ public class MobBase extends AbstractGameObject {
|
|||||||
this.flags = EnumBitSet.asEnumBitSet(rs.getLong("flags"), Enum.MobFlagType.class);
|
this.flags = EnumBitSet.asEnumBitSet(rs.getLong("flags"), Enum.MobFlagType.class);
|
||||||
this.noAggro = EnumBitSet.asEnumBitSet(rs.getLong("noaggro"), Enum.AggroType.class);
|
this.noAggro = EnumBitSet.asEnumBitSet(rs.getLong("noaggro"), Enum.AggroType.class);
|
||||||
|
|
||||||
|
// From cache data
|
||||||
|
|
||||||
|
this.notEnemy = EnumBitSet.asEnumBitSet(rs.getLong("notEnemy"), Enum.MonsterType.class);
|
||||||
|
this.enemy = EnumBitSet.asEnumBitSet(rs.getLong("enemy"), Enum.MonsterType.class);
|
||||||
|
|
||||||
this.seeInvis = rs.getInt("seeInvis");
|
this.seeInvis = rs.getInt("seeInvis");
|
||||||
this.scale = rs.getFloat("scale");
|
this.scale = rs.getFloat("scale");
|
||||||
this.hitBoxRadius = 5f;
|
this.hitBoxRadius = 5f;
|
||||||
|
|||||||
Reference in New Issue
Block a user