Fix: only one skipAction(Del:SkipLower/SkipUpper)
This commit is contained in:
+1
-1
@@ -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);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user