-
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.
- Loading branch information
Showing
1 changed file
with
218 additions
and
0 deletions.
There are no files selected for viewing
218 changes: 218 additions & 0 deletions
218
app/src/main/java/com/example/proj2/Classes/Champion.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 |
---|---|---|
@@ -0,0 +1,218 @@ | ||
package com.example.proj2.Classes; | ||
|
||
public class Champion { | ||
//Ability[] abilities; | ||
int id; | ||
public String name; | ||
//Stats | ||
int level; | ||
double baseDamage; | ||
double damagePerLevel; | ||
double ap; | ||
double critChance; | ||
double critDamage; | ||
double lifeSteal; | ||
double omniVamp; | ||
double armorPen; | ||
double magicPen; | ||
double lethality; | ||
double magicFlatPen; | ||
double baseHP; | ||
double hpPerLevel; | ||
double baseArmor; | ||
double armorPerLevel; | ||
double baseSpellBlock; | ||
double spellBlockPerLevel; | ||
double baseMoveSpeed; | ||
double attackSpeed; | ||
double attackSpeedRatio; | ||
double attackSpeedPerLevel; | ||
|
||
//Default constructor | ||
public Champion() { | ||
this.name = ""; | ||
this.level =0; | ||
this.baseDamage = 0; | ||
this.damagePerLevel = 0; | ||
this.ap = 0; | ||
this.baseHP = 0; | ||
this.hpPerLevel = 0; | ||
this.baseArmor = 0; | ||
this.armorPerLevel = 0; | ||
this.baseSpellBlock = 0; | ||
this.spellBlockPerLevel = 0; | ||
this.baseMoveSpeed = 0; | ||
this.attackSpeed = 0; | ||
this.attackSpeedRatio = 0; | ||
this.attackSpeedPerLevel = 0; | ||
} | ||
//Constructor | ||
public Champion(String name, | ||
double baseHP, double hpPerLevel, | ||
double baseDamage, double damagePerLevel, | ||
double baseArmor, double armorPerLevel, | ||
double baseSpellBlock, double spellBlockPerLevel, | ||
double baseMoveSpeed, | ||
double attackSpeed, double attackSpeedRatio, | ||
double attackSpeedPerLevel) { | ||
|
||
this.name = name; | ||
this.baseDamage = baseDamage; | ||
this.damagePerLevel = damagePerLevel; | ||
this.baseHP = baseHP; | ||
this.hpPerLevel = hpPerLevel; | ||
this.baseArmor = baseArmor; | ||
this.armorPerLevel = armorPerLevel; | ||
this.baseSpellBlock = baseSpellBlock; | ||
this.spellBlockPerLevel = spellBlockPerLevel; | ||
this.baseMoveSpeed = baseMoveSpeed; | ||
this.attackSpeed = attackSpeed; | ||
this.attackSpeedRatio = attackSpeedRatio; | ||
this.attackSpeedPerLevel = attackSpeedPerLevel; | ||
} | ||
//ToString | ||
// public String toString(){ | ||
// return ; | ||
// } | ||
//Setter | ||
// public void setAbilities(Ability[] abilities) { | ||
// this.abilities = abilities; | ||
// } | ||
|
||
public void setId(int id) { | ||
this.id = id; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public void setLevel(int level) { | ||
this.level = level; | ||
} | ||
|
||
public void setBaseDamage(double baseDamage) { | ||
this.baseDamage = baseDamage; | ||
} | ||
|
||
public void setDamagePerLevel(double damagePerLevel) { | ||
this.damagePerLevel = damagePerLevel; | ||
} | ||
|
||
public void setAp(double ap) { | ||
this.ap = ap; | ||
} | ||
|
||
public void setBaseHP(double baseHP) { | ||
this.baseHP = baseHP; | ||
} | ||
|
||
public void setHpPerLevel(double hpPerLevel) { | ||
this.hpPerLevel = hpPerLevel; | ||
} | ||
|
||
public void setBaseArmor(double baseArmor) { | ||
this.baseArmor = baseArmor; | ||
} | ||
|
||
public void setArmorPerLevel(double armorPerLevel) { | ||
this.armorPerLevel = armorPerLevel; | ||
} | ||
|
||
public void setBaseSpellBlock(double baseSpellBlock) { | ||
this.baseSpellBlock = baseSpellBlock; | ||
} | ||
|
||
public void setSpellBlockPerLevel(double spellBlockPerLevel) { | ||
this.spellBlockPerLevel = spellBlockPerLevel; | ||
} | ||
|
||
public void setBaseMoveSpeed(double baseMoveSpeed) { | ||
this.baseMoveSpeed = baseMoveSpeed; | ||
} | ||
|
||
public void setAttackSpeed(double attackSpeed) { | ||
this.attackSpeed = attackSpeed; | ||
} | ||
|
||
public void setAttackSpeedRatio(double attackSpeedRatio) { | ||
this.attackSpeedRatio = attackSpeedRatio; | ||
} | ||
|
||
public void setAttackSpeedPerLevel(double attackSpeedPerLevel) { | ||
this.attackSpeedPerLevel = attackSpeedPerLevel; | ||
} | ||
|
||
//Getter | ||
// public Ability[] getAbilities() { | ||
// return abilities; | ||
// } | ||
|
||
public int getId() { | ||
return id; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public int getLevel() { | ||
return level; | ||
} | ||
|
||
public double getBaseDamage() { | ||
return baseDamage; | ||
} | ||
|
||
public double getDamagePerLevel() { | ||
return damagePerLevel; | ||
} | ||
|
||
public double getAp() { | ||
return ap; | ||
} | ||
|
||
public double getBaseHP() { | ||
return baseHP; | ||
} | ||
|
||
public double getHpPerLevel() { | ||
return hpPerLevel; | ||
} | ||
|
||
public double getBaseArmor() { | ||
return baseArmor; | ||
} | ||
|
||
public double getArmorPerLevel() { | ||
return armorPerLevel; | ||
} | ||
|
||
public double getBaseSpellBlock() { | ||
return baseSpellBlock; | ||
} | ||
|
||
public double getSpellBlockPerLevel() { | ||
return spellBlockPerLevel; | ||
} | ||
|
||
public double getBaseMoveSpeed() { | ||
return baseMoveSpeed; | ||
} | ||
|
||
public double getAttackSpeed() { | ||
return attackSpeed; | ||
} | ||
|
||
public double getAttackSpeedRatio() { | ||
return attackSpeedRatio; | ||
} | ||
|
||
public double getAttackSpeedPerLevel() { | ||
return attackSpeedPerLevel; | ||
} | ||
|
||
|
||
|
||
|
||
} |