Player, Slot, Events added

This commit is contained in:
GabrieleRadice
2026-03-13 20:29:57 +01:00
parent b0b8440d90
commit b879b7401b
9 changed files with 244 additions and 1 deletions
@@ -0,0 +1,37 @@
package it.polimi.ingsw.gc14.Model;
public class Slot {
// Getters
private int NUpper;
public int getNUpper(){
return NUpper;
}
private int NLower;
public int getNLower(){
return NLower;
}
private int Food;
public int getFood(){
return Food;
}
// End getters
// Setters
// End setters
// Constructors
public Slot(int NUpper, int NLower, int Food) throws IllegalArgumentException {
this.NUpper = NUpper;
this.NLower = NLower;
this.Food = Food;
if(Food != 0 && (NUpper != 0 || NLower != 0)){
throw new IllegalArgumentException();
}
}
// End Constructors
// Functions
// End functions
}