Added: SkipUpper and Lower -> TUI,NETWORK
This commit is contained in:
@@ -9,5 +9,7 @@ public enum EventType {
|
||||
DRAW_LOWER_BUILD,
|
||||
PICK_OPTIONAL_TRIBE,
|
||||
PICK_OPTIONAL_BUILD,
|
||||
SKIP_UPPER,
|
||||
SKIP_LOWER,
|
||||
NO_OPTIONAL_CARD
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
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;
|
||||
|
||||
//TODO javadoc
|
||||
public class SkipLower extends NetworkEvent implements Serializable{
|
||||
//TODO javadoc
|
||||
public SkipLower(String username){
|
||||
super(username, EventType.SKIP_LOWER, false);
|
||||
}
|
||||
|
||||
//TODO javadoc
|
||||
@Override
|
||||
public boolean apply(GameController gameController){
|
||||
return gameController.SkipLowerDrawing(username);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
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;
|
||||
|
||||
//TODO javadoc
|
||||
public class SkipUpper extends NetworkEvent implements Serializable{
|
||||
|
||||
//TODO javadoc
|
||||
public SkipUpper(String username){
|
||||
super(username, EventType.SKIP_UPPER, false);
|
||||
}
|
||||
|
||||
//TODO javadoc
|
||||
@Override
|
||||
public boolean apply(GameController gameController){
|
||||
return gameController.SkipUpperDrawing(username);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user