Added method buildCity.
This commit is contained in:
parent
b4783c8009
commit
c45471c337
|
@ -243,8 +243,10 @@ public class SiedlerGame {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
//2. Check if Settlement has already been built
|
//2. Check if Settlement has already been built
|
||||||
Settlement atCurrentPosition = (Settlement) board.getCorner(position);
|
Settlement atCurrentPosition = board.getCorner(position);
|
||||||
|
if (atCurrentPosition == null){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
//3. Can player build a City.
|
//3. Can player build a City.
|
||||||
if(!allPlayers.get(activePlayer).buildCity()){
|
if(!allPlayers.get(activePlayer).buildCity()){
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue