|
|
@ -9,8 +9,6 @@ |
|
|
|
|
|
|
|
|
|
|
|
package engine.powers.poweractions; |
|
|
|
package engine.powers.poweractions; |
|
|
|
|
|
|
|
|
|
|
|
import engine.gameManager.DbManager; |
|
|
|
|
|
|
|
import engine.gameManager.PowersManager; |
|
|
|
|
|
|
|
import engine.math.Vector3fImmutable; |
|
|
|
import engine.math.Vector3fImmutable; |
|
|
|
import engine.objects.AbstractCharacter; |
|
|
|
import engine.objects.AbstractCharacter; |
|
|
|
import engine.objects.AbstractWorldObject; |
|
|
|
import engine.objects.AbstractWorldObject; |
|
|
@ -19,13 +17,6 @@ import engine.powers.ActionsBase; |
|
|
|
import engine.powers.EffectsBase; |
|
|
|
import engine.powers.EffectsBase; |
|
|
|
import engine.powers.PowersBase; |
|
|
|
import engine.powers.PowersBase; |
|
|
|
import engine.wpak.data.PowerAction; |
|
|
|
import engine.wpak.data.PowerAction; |
|
|
|
import org.pmw.tinylog.Logger; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.sql.Connection; |
|
|
|
|
|
|
|
import java.sql.PreparedStatement; |
|
|
|
|
|
|
|
import java.sql.ResultSet; |
|
|
|
|
|
|
|
import java.sql.SQLException; |
|
|
|
|
|
|
|
import java.util.HashMap; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public abstract class AbstractPowerAction { |
|
|
|
public abstract class AbstractPowerAction { |
|
|
@ -47,12 +38,12 @@ public abstract class AbstractPowerAction { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* ResultSet Constructor |
|
|
|
* ResultSet Constructor |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public AbstractPowerAction(PowerAction rs){ |
|
|
|
public AbstractPowerAction(PowerAction powerAction) { |
|
|
|
|
|
|
|
|
|
|
|
this.IDString = rs.action_id; |
|
|
|
this.IDString = powerAction.action_id; |
|
|
|
this.type = rs.action_type; |
|
|
|
this.type = powerAction.action_type; |
|
|
|
int flags = rs.itemFlag.ordinal(); |
|
|
|
int flags = powerAction.itemFlag.ordinal(); |
|
|
|
this.isAggressive = rs.isAggressive; |
|
|
|
this.isAggressive = powerAction.isAggressive; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public AbstractPowerAction(int uUID, String iDString, String type, boolean isAggressive, |
|
|
|
public AbstractPowerAction(int uUID, String iDString, String type, boolean isAggressive, |
|
|
|