Power Action Constructor (not finished)
This commit is contained in:
@@ -17,6 +17,7 @@ import engine.objects.AbstractWorldObject;
|
||||
import engine.powers.ActionsBase;
|
||||
import engine.powers.EffectsBase;
|
||||
import engine.powers.PowersBase;
|
||||
import engine.wpak.data.PowerAction;
|
||||
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
@@ -28,10 +29,10 @@ public class DirectDamagePowerAction extends AbstractPowerAction {
|
||||
private String effectID;
|
||||
private EffectsBase effect;
|
||||
|
||||
public DirectDamagePowerAction(ResultSet rs, HashMap<String, EffectsBase> effects) throws SQLException {
|
||||
public DirectDamagePowerAction(PowerAction rs, HashMap<String, EffectsBase> effects){
|
||||
super(rs);
|
||||
|
||||
this.effectID = rs.getString("effectID");
|
||||
this.effectID = rs.effects.get(0).effect_id;
|
||||
this.effect = effects.get(this.effectID);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user