Ability.java basic form
This commit is contained in:
parent
9d9757b986
commit
83c5ed151f
1 changed files with 40 additions and 1 deletions
|
@ -1,3 +1,42 @@
|
|||
package me.unurled.sacredrealms.sr.components.item.abilities;
|
||||
|
||||
public class Ability {}
|
||||
/**
|
||||
* Represents an ability that an item can have.
|
||||
* TODO: Implement this class
|
||||
*/
|
||||
public class Ability {
|
||||
|
||||
private final String name;
|
||||
private final String description;
|
||||
private final Integer cooldown;
|
||||
private final Integer manaCost;
|
||||
private final Integer damage;
|
||||
|
||||
public Ability(String name, String description, Integer cooldown, Integer manaCost, Integer damage) {
|
||||
this.name = name;
|
||||
this.description = description;
|
||||
this.cooldown = cooldown;
|
||||
this.manaCost = manaCost;
|
||||
this.damage = damage;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public Integer getCooldown() {
|
||||
return cooldown;
|
||||
}
|
||||
|
||||
public Integer getManaCost() {
|
||||
return manaCost;
|
||||
}
|
||||
|
||||
public Integer getDamage() {
|
||||
return damage;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue