Started thinking about the implemtation of #11

This commit is contained in:
Jitse Boonstra
2019-10-21 09:49:23 +02:00
parent 6d5895870b
commit 4d2140d24c
24 changed files with 377 additions and 254 deletions
@@ -12,17 +12,17 @@ import java.util.Set;
*/
public final class NPCManager {
private static Set<SimpleNPC> npcs = new HashSet<>();
private static Set<NPCBase> npcs = new HashSet<>();
public static Set<SimpleNPC> getAllNPCs() {
public static Set<NPCBase> getAllNPCs() {
return npcs;
}
public static void add(SimpleNPC npc) {
public static void add(NPCBase npc) {
npcs.add(npc);
}
public static void remove(SimpleNPC npc) {
public static void remove(NPCBase npc) {
npcs.remove(npc);
}