Removed: PickOptionalTribeCard and PickOptionalBuildingCard in Network and ClientController
This commit is contained in:
@@ -157,52 +157,6 @@ public class ClientController {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Used to draw a tribe card from the upper list.
|
||||
* Available only if the player owns the building 12.
|
||||
* @param playerUsername the name of the player performing the action
|
||||
* @param pos the index of the card to draw
|
||||
*/
|
||||
public void pickOptionalTribeCard(String playerUsername,int pos) {
|
||||
if(!Objects.equals(playerUsername,miniModel.currentState.getCurrentPlayer().getUserName()))
|
||||
view.showError("It's not your turn!");
|
||||
else {
|
||||
client.pickOptionalTribeCard(playerUsername,pos);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Used to draw a building card from the upper list.
|
||||
* Available only if the player owns the building 12.
|
||||
* @param playerUsername the name of the player performing the action
|
||||
* @param pos the index of the card to draw
|
||||
*/
|
||||
public void pickOptionalBuildingCard(String playerUsername,int pos) {
|
||||
if(!Objects.equals(playerUsername, miniModel.currentState.getCurrentPlayer().getUserName()))
|
||||
view.showError("It's not your turn!");
|
||||
else {
|
||||
client.pickOptionalBuildingCard(playerUsername,pos);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Used to skip the action of drawing a card from the upper list.
|
||||
* Available only if the player owns the building 12.
|
||||
* @param playerUsername the name of the player performing the action
|
||||
*/
|
||||
public void noOptionalCard(String playerUsername) {
|
||||
if(!Objects.equals(playerUsername, miniModel.currentState.getCurrentPlayer().getUserName()))
|
||||
view.showError("It's not your turn!");
|
||||
else {
|
||||
client.noOptionalCard(playerUsername);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Used to perform the slot choice action for the specified player at the specified position.
|
||||
* @param playerUsername the name of the player performing the action
|
||||
|
||||
Reference in New Issue
Block a user