Added class Ability
parent
1ba0ffb763
commit
1d230f0872
@ -0,0 +1,30 @@
|
||||
package de.banananetwork.dsa.abilities;
|
||||
|
||||
import de.banananetwork.dsa.descriptions.Descriptiable;
|
||||
import de.banananetwork.dsa.descriptions.Description;
|
||||
import de.banananetwork.dsa.requirements.AdventurePointsPriceLabeled;
|
||||
import de.banananetwork.dsa.requirements.HasRequirement;
|
||||
import de.banananetwork.dsa.requirements.Requirement;
|
||||
|
||||
public class Ability implements Descriptiable, AdventurePointsPriceLabeled, HasRequirement {
|
||||
|
||||
private final Description description;
|
||||
private final int apCosts;
|
||||
private final Requirement requirement;
|
||||
|
||||
|
||||
@Override
|
||||
public Description getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getRequiredAdventurePoints() {
|
||||
return apCosts;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Requirement getRequirement() {
|
||||
return requirement;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue