mirror of
https://gitlab.com/arnekeller/kit-programmieren-ws1920-final2.git
synced 2024-11-24 01:15:03 +00:00
Allow listing buildings and resources when game is done
This commit is contained in:
parent
a738c23f5e
commit
a7dab3cfa5
@ -174,7 +174,7 @@ public class CardGame {
|
||||
}
|
||||
|
||||
public Deque<Card> getResources() throws LogicException {
|
||||
if (!gameActive()) {
|
||||
if (!gameStarted()) {
|
||||
throw new LogicException("can not get resources: game not started");
|
||||
}
|
||||
// do not allow caller to modify internal queue
|
||||
@ -182,7 +182,7 @@ public class CardGame {
|
||||
}
|
||||
|
||||
public List<Item> getItems() throws LogicException {
|
||||
if (!gameActive()) {
|
||||
if (!gameStarted()) {
|
||||
throw new LogicException("can not get buildings: game not started");
|
||||
}
|
||||
// do not allow caller to modify internal list
|
||||
|
Loading…
Reference in New Issue
Block a user