Power Action Constructor (not finished)
This commit is contained in:
1 parent
a5ccba2e27
commit
0fd6dfb648
13 files changed
+168
-173
No files matched your search
@@ -16,6 +16,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,11 +29,11 @@ public class DamageOverTimePowerAction extends AbstractPowerAction {
|
||||
private int numIterations;
|
||||
private EffectsBase effect;
|
||||
|
||||
public DamageOverTimePowerAction(ResultSet rs, HashMap<String, EffectsBase> effects) throws SQLException {
|
||||
public DamageOverTimePowerAction(PowerAction rs, HashMap<String, EffectsBase> effects){
|
||||
super(rs);
|
||||
|
||||
this.effectID = rs.getString("effectID");
|
||||
this.numIterations = rs.getInt("numIterations");
|
||||
this.effectID = rs.action_id;
|
||||
this.numIterations = rs.effects.get(0).cycleDelay;
|
||||
this.effect = effects.get(this.effectID);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user