Fix: module-info.java

This commit is contained in:
rubenpirreram
2026-03-22 18:09:08 +01:00
parent a037de61e5
commit 18ddaa839d
3 changed files with 7 additions and 2 deletions
@@ -1,4 +1,4 @@
package it.polimi.ingsw.gc14.Model.Game;
package it.polimi.ingsw.gc14.Model.GamePackage;
public enum GameStages {
WAITING,SLOT_CHOICE, RESOLVING_ACTIONS, RESOLVING_EVENT,ENDING,ENDED
@@ -12,8 +12,12 @@ public abstract class OrderLogicCard {
effect(player,players.size());
players.add(player);
}
public Player pull(Player player){
public Player pull(){
return players.remove();
}
public Player getFirst()
{
return players.peek();
}
protected abstract void effect(Player player, int index) throws IndexOutOfBoundsException;
}
+1
View File
@@ -10,4 +10,5 @@ module it.polimi.ingsw.gc14 {
opens it.polimi.ingsw.gc14.Model to com.google.gson;
exports it.polimi.ingsw.gc14;
opens it.polimi.ingsw.gc14.Model.GamePackage to com.google.gson;
}