forked from MagicBane/Server
parser now uses poweractiontype
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
package engine.powers.poweractions;
|
||||
|
||||
import engine.math.Vector3fImmutable;
|
||||
import engine.mbEnums;
|
||||
import engine.objects.AbstractCharacter;
|
||||
import engine.objects.AbstractWorldObject;
|
||||
import engine.objects.Item;
|
||||
@@ -24,7 +25,7 @@ public abstract class AbstractPowerAction {
|
||||
protected PowersBase parent;
|
||||
protected int UUID;
|
||||
protected String IDString;
|
||||
protected String type;
|
||||
protected mbEnums.PowerActionType type;
|
||||
protected boolean isAggressive;
|
||||
protected long validItemFlags;
|
||||
|
||||
@@ -46,7 +47,7 @@ public abstract class AbstractPowerAction {
|
||||
this.isAggressive = powerAction.isAggressive;
|
||||
}
|
||||
|
||||
public AbstractPowerAction(int uUID, String iDString, String type, boolean isAggressive,
|
||||
public AbstractPowerAction(int uUID, String iDString, mbEnums.PowerActionType type, boolean isAggressive,
|
||||
long validItemFlags) {
|
||||
super();
|
||||
UUID = uUID;
|
||||
@@ -130,7 +131,7 @@ public abstract class AbstractPowerAction {
|
||||
return this.validItemFlags;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
public mbEnums.PowerActionType getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ public class OpenGatePowerAction extends AbstractPowerAction {
|
||||
super(powerAction);
|
||||
}
|
||||
|
||||
public OpenGatePowerAction(int uUID, String iDString, String type, boolean isAggressive, long validItemFlags) {
|
||||
public OpenGatePowerAction(int uUID, String iDString, mbEnums.PowerActionType type, boolean isAggressive, long validItemFlags) {
|
||||
super(uUID, iDString, type, isAggressive, validItemFlags);
|
||||
// TODO Auto-generated constructor stub
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user