Fix: only one skipAction(Del:SkipLower/SkipUpper)

This commit is contained in:
rubenpirreram
2026-05-07 13:12:14 +02:00
parent 35654f6823
commit ee5b69a900
2 changed files with 1 additions and 34 deletions
@@ -23,7 +23,7 @@ public class SkipLower extends NetworkEvent implements Serializable{
/** /**
* @param gameController the Game Controller on which to apply the event * @param gameController the Game Controller on which to apply the event
* @return true if the player could draw the card, false otherwise * @return true if the player could skipTheTurn, false otherwise
*/ */
@Override @Override
public boolean apply(GameController gameController){ public boolean apply(GameController gameController){
@@ -1,33 +0,0 @@
package it.polimi.ingsw.gc14.Network.NetworkEvents;
import it.polimi.ingsw.gc14.Controller.GameController;
import it.polimi.ingsw.gc14.Network.EventType;
import it.polimi.ingsw.gc14.Network.NetworkEvent;
import it.polimi.ingsw.gc14.View.IView;
import java.io.Serializable;
/**
* NetworkEvent to avoid drawing a card from the upper card list
*/
public class SkipUpper extends NetworkEvent implements Serializable{
/**
* Class constructor.
* Initializes all the attributes.
* @param username the name of the player requesting the event
*/
public SkipUpper(String username){
super(username, EventType.SKIP_UPPER, false);
}
/**
* @param gameController the Game Controller on which to apply the event
* @return true if the player could draw the card, false otherwise
*/
@Override
public boolean apply(GameController gameController){
return gameController.SkipUpperDrawing(username);
}
}