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

30
Main/TrainingArea.java Normal file
View File

@@ -0,0 +1,30 @@
package Main;
import java.util.*;
public class TrainingArea {
protected HashMap<Integer, Lutemon> training = new HashMap<Integer, Lutemon>();
public TrainingArea() {
}
public void addLutemon(int id, Lutemon lutemon) {
training.put(id, lutemon);
}
public void removeLutemon(int id) {
training.remove(id);
}
public void train() {
for (Lutemon lutemon : training.values()) {
System.out.println(lutemon.getColor() + "(" + lutemon.getName() + ") trains and gain experience!");
lutemon.train();
}
}
public HashMap<Integer, Lutemon> getTraining() {
return training;
}
}