-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Working on ability loading from firestore
- Loading branch information
John Taoi
committed
Apr 24, 2024
1 parent
4ed3101
commit a758ccc
Showing
3 changed files
with
251 additions
and
31 deletions.
There are no files selected for viewing
228 changes: 198 additions & 30 deletions
228
app/src/main/java/com/example/proj2/Classes/Ability.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,207 @@ | ||
package com.example.proj2.Classes; | ||
|
||
public class Ability { | ||
//Eability | ||
// | ||
//Qability | ||
// | ||
//Rability | ||
// | ||
//Wability | ||
//Fields: | ||
//Name | ||
//damage:number | ||
//ratioAP | ||
//ratioAD | ||
//isDamage | ||
//isSummon | ||
//instances | ||
//duration | ||
import java.util.ArrayList; | ||
|
||
public class Ability { | ||
String name; | ||
String spellnames; | ||
double cost; | ||
int damageType; | ||
|
||
int rank = 5; | ||
ArrayList<Double> damage; | ||
//Bools | ||
boolean isDamage; | ||
double damage; | ||
enum damageType{trueDamage,physicalDamage, magicalDamage}; | ||
boolean isSummon; | ||
boolean isStack; | ||
boolean isCritiable; | ||
boolean isMaxHP; | ||
boolean isMaxHPDOT; | ||
boolean isDOT; | ||
double dotDuration; | ||
boolean multipleStage; | ||
int stages; | ||
double duration; | ||
double perSecond; | ||
ArrayList<Double> dotDamage; | ||
ArrayList<Double> dotRatio; | ||
ArrayList<Double> summonAA; | ||
ArrayList<Double> summonRatioAD; | ||
ArrayList<Double> summonRatioAP; | ||
|
||
int instances; | ||
|
||
//ratio | ||
double[] ratioAD; | ||
double[] ratioAP; | ||
double[] coefficentArmor; | ||
double[] coefficentMR; | ||
double[] coefficentHP; | ||
double[] coefficentStacks; | ||
ArrayList<Double> ratioBAD; | ||
ArrayList<Double> ratioAD; | ||
ArrayList<Double> ratioAP; | ||
|
||
public ArrayList<Double> getDamage() { | ||
return damage; | ||
} | ||
|
||
public void setDamage(ArrayList<Double> damage) { | ||
this.damage = damage; | ||
} | ||
|
||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public int getDamageType() { | ||
return damageType; | ||
} | ||
|
||
public void setDamageType(int damageType) { | ||
this.damageType = damageType; | ||
} | ||
|
||
|
||
public boolean isDamage() { | ||
return isDamage; | ||
} | ||
|
||
public void setDamage(boolean damage) { | ||
isDamage = damage; | ||
} | ||
|
||
public boolean isSummon() { | ||
return isSummon; | ||
} | ||
|
||
public void setSummon(boolean summon) { | ||
isSummon = summon; | ||
} | ||
|
||
public boolean isStack() { | ||
return isStack; | ||
} | ||
|
||
public void setStack(boolean stack) { | ||
isStack = stack; | ||
} | ||
|
||
public boolean isCritiable() { | ||
return isCritiable; | ||
} | ||
|
||
public void setCritiable(boolean critiable) { | ||
isCritiable = critiable; | ||
} | ||
|
||
public boolean isMaxHP() { | ||
return isMaxHP; | ||
} | ||
|
||
public void setMaxHP(boolean maxHP) { | ||
isMaxHP = maxHP; | ||
} | ||
|
||
public boolean isMaxHPDOT() { | ||
return isMaxHPDOT; | ||
} | ||
|
||
public void setMaxHPDOT(boolean maxHPDOT) { | ||
isMaxHPDOT = maxHPDOT; | ||
} | ||
|
||
public boolean isDOT() { | ||
return isDOT; | ||
} | ||
|
||
public void setDOT(boolean DOT) { | ||
isDOT = DOT; | ||
} | ||
|
||
public double getDuration() { | ||
return duration; | ||
} | ||
|
||
public void setDuration(double duration) { | ||
this.duration = duration; | ||
} | ||
|
||
public double getPerSecond() { | ||
return perSecond; | ||
} | ||
|
||
public void setPerSecond(double perSecond) { | ||
this.perSecond = perSecond; | ||
} | ||
|
||
public ArrayList<Double> getDotDamage() { | ||
return dotDamage; | ||
} | ||
|
||
public void setDotDamage(ArrayList<Double> dotDamage) { | ||
this.dotDamage = dotDamage; | ||
} | ||
|
||
public ArrayList<Double> getDotRatio() { | ||
return dotRatio; | ||
} | ||
|
||
public void setDotRatio(ArrayList<Double> dotRatio) { | ||
this.dotRatio = dotRatio; | ||
} | ||
|
||
public ArrayList<Double> getSummonAA() { | ||
return summonAA; | ||
} | ||
|
||
public void setSummonAA(ArrayList<Double> summonAA) { | ||
this.summonAA = summonAA; | ||
} | ||
|
||
public ArrayList<Double> getSummonRatioAD() { | ||
return summonRatioAD; | ||
} | ||
|
||
public void setSummonRatioAD(ArrayList<Double> summonRatioAD) { | ||
this.summonRatioAD = summonRatioAD; | ||
} | ||
|
||
public ArrayList<Double> getSummonRatioAP() { | ||
return summonRatioAP; | ||
} | ||
|
||
public void setSummonRatioAP(ArrayList<Double> summonRatioAP) { | ||
this.summonRatioAP = summonRatioAP; | ||
} | ||
|
||
public int getInstances() { | ||
return instances; | ||
} | ||
|
||
public void setInstances(int instances) { | ||
this.instances = instances; | ||
} | ||
|
||
public ArrayList<Double> getRatioBAD() { | ||
return ratioBAD; | ||
} | ||
|
||
public void setRatioBAD(ArrayList<Double> ratioBAD) { | ||
this.ratioBAD = ratioBAD; | ||
} | ||
|
||
public ArrayList<Double> getRatioAD() { | ||
return ratioAD; | ||
} | ||
|
||
public void setRatioAD(ArrayList<Double> ratioAD) { | ||
this.ratioAD = ratioAD; | ||
} | ||
|
||
public ArrayList<Double> getRatioAP() { | ||
return ratioAP; | ||
} | ||
|
||
public void setRatioAP(ArrayList<Double> ratioAP) { | ||
this.ratioAP = ratioAP; | ||
} | ||
|
||
public void setRankToThree(){ | ||
rank = 3; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters