Initial commit

This commit is contained in:
Andrew
2022-11-25 11:49:17 +02:00
commit a7e6362658
22 changed files with 470 additions and 0 deletions

28
Main/Home.java Normal file
View File

@@ -0,0 +1,28 @@
package Main;
import java.util.*;
public class Home {
protected HashMap<Integer, Lutemon> home = new HashMap<Integer, Lutemon>();
public Home() {
}
public void addLutemon(int id, Lutemon lutemon) {
home.put(id, lutemon);
heal(lutemon);
}
public void removeLutemon(int id) {
home.remove(id);
}
public void heal(Lutemon lutemon) {
lutemon.heal();
}
public HashMap<Integer, Lutemon> getHome() {
return home;
}
}