GameList Fixed
This commit is contained in:
@@ -266,9 +266,7 @@ public class Game implements Serializable {
|
|||||||
* @return a list containing clones of the upper tribe cards currently available on the board.
|
* @return a list containing clones of the upper tribe cards currently available on the board.
|
||||||
*/
|
*/
|
||||||
public ArrayList<TribeCard>getUpperListTribeCards() {
|
public ArrayList<TribeCard>getUpperListTribeCards() {
|
||||||
ArrayList<TribeCard> cards = new ArrayList<>();
|
return (ArrayList<TribeCard>)board.upperListTribe;
|
||||||
board.upperListTribe.forEach(x->cards.add(x.clone()));
|
|
||||||
return cards;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -277,9 +275,7 @@ public class Game implements Serializable {
|
|||||||
* @return a list containing clones of the lower tribe cards currently available on the board.
|
* @return a list containing clones of the lower tribe cards currently available on the board.
|
||||||
*/
|
*/
|
||||||
public ArrayList<TribeCard>getLowerListTribeCards() {
|
public ArrayList<TribeCard>getLowerListTribeCards() {
|
||||||
ArrayList<TribeCard> cards = new ArrayList<>();
|
return (ArrayList<TribeCard> )board.lowerListTribe;
|
||||||
board.lowerListTribe.forEach(x->cards.add(x.clone()));
|
|
||||||
return cards;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -288,9 +284,7 @@ public class Game implements Serializable {
|
|||||||
* @return a list containing clones of the upper building cards currently available on the board.
|
* @return a list containing clones of the upper building cards currently available on the board.
|
||||||
*/
|
*/
|
||||||
public ArrayList<BuildingCard>getUpperListBuilding() {
|
public ArrayList<BuildingCard>getUpperListBuilding() {
|
||||||
ArrayList<BuildingCard> cards = new ArrayList<>();
|
return (ArrayList<BuildingCard>)board.upperListBuilding;
|
||||||
board.upperListBuilding.forEach(x->cards.add(x.clone()));
|
|
||||||
return cards;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -299,9 +293,7 @@ public class Game implements Serializable {
|
|||||||
* @return a list containing clones of the lower building cards currently available on the board.
|
* @return a list containing clones of the lower building cards currently available on the board.
|
||||||
*/
|
*/
|
||||||
public ArrayList<BuildingCard>getLowerListBuilding() {
|
public ArrayList<BuildingCard>getLowerListBuilding() {
|
||||||
ArrayList<BuildingCard> cards = new ArrayList<>();
|
return (ArrayList<BuildingCard>) board.lowerListBuilding;
|
||||||
board.lowerListBuilding.forEach(x->cards.add(x.clone()));
|
|
||||||
return cards;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -492,7 +492,7 @@ public class MainFXMLController {
|
|||||||
rect.setArcWidth(4);
|
rect.setArcWidth(4);
|
||||||
rect.setArcHeight(4);
|
rect.setArcHeight(4);
|
||||||
if (controller.miniModel.slotPlayerMap.containsValue(op.player)) {
|
if (controller.miniModel.slotPlayerMap.containsValue(op.player)) {
|
||||||
rect.setOpacity(0.5);
|
rect.setVisible(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
final double yRatio = positions[i];
|
final double yRatio = positions[i];
|
||||||
|
|||||||
Reference in New Issue
Block a user