Fix package names

This commit is contained in:
Sebastian 2023-10-06 11:57:10 +02:00
parent 86e3d42a95
commit c5b13f65bb
6 changed files with 10 additions and 26 deletions

View File

@ -1,4 +1,4 @@
package AttackInformations; package Manager.AttackInformations;
public class AttackInformations{ public class AttackInformations{
private int attack_field_dice; private int attack_field_dice;

View File

@ -1,7 +1,6 @@
package Field; package Manager.Field;
import java.util.ArrayList; import java.util.ArrayList;
import Field.Player;
public class Field { public class Field {
private int dice_number; private int dice_number;

View File

@ -1,4 +1,4 @@
package Field; package Manager.Field;
public class Player{ public class Player{
private String name; private String name;

View File

@ -1,9 +1,8 @@
package Manager; package Manager;
import Field.Field; import Manager.AttackInformations.AttackInformations;
import Field.Player; import Manager.Field.Field;
import AttackInformations.AttackInformations; import Manager.Field.Player;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Random; import java.util.Random;

View File

@ -1,5 +1,7 @@
package Manager;
import Manager.GameManager; import Manager.GameManager;
import Field.Player; import Manager.Field.Player;
public class Test { public class Test {
public static void main(String[] args){ public static void main(String[] args){
@ -9,7 +11,7 @@ public class Test {
gm.add_player("Nils"); gm.add_player("Nils");
gm.add_player("Felix"); gm.add_player("Felix");
for(Player current:gm.get_players()){ for(Player current:gm.get_players()){
System.out.println(current); System.out.println(current.get_name());
} }
} }
} }

View File

@ -1,16 +0,0 @@
import Manager.GameManager;
import Field.Player;
public class Test {
public static void main(String[] args){
GameManager gm = new GameManager();
gm.add_player("Sebastian");
gm.add_player("Lars");
gm.add_player("Nils");
gm.add_player("Felix");
for(Player current:gm.get_players()){
System.out.println(current);
}
}
}