Added code to ability super class
This commit is contained in:
@@ -1,4 +1,14 @@
|
||||
package netwerkprog.game.util;
|
||||
|
||||
public abstract class Ability {
|
||||
protected String name;
|
||||
|
||||
public Ability(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
public abstract String getCommand();
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ public abstract class Character {
|
||||
protected HashSet<Ability> abilities;
|
||||
protected boolean override;
|
||||
|
||||
Character(String name, Faction faction, Ability... abilities) {
|
||||
public Character(String name, Faction faction, Ability... abilities) {
|
||||
this.name = name;
|
||||
this.faction = faction;
|
||||
this.abilities = new HashSet<>(Arrays.asList(abilities));
|
||||
|
||||
Reference in New Issue
Block a user