mirror of
https://gitlab.com/arnekeller/kit-programmieren-ws1920-final2.git
synced 2024-11-08 18:00:37 +00:00
Correct list-buildings order
This commit is contained in:
parent
5cec0064f7
commit
f240ecf5f0
@ -64,6 +64,7 @@ tiger
|
|||||||
tiger
|
tiger
|
||||||
thunderstorm
|
thunderstorm
|
||||||
list-resources
|
list-resources
|
||||||
|
list-buildings
|
||||||
draw
|
draw
|
||||||
draw
|
draw
|
||||||
draw
|
draw
|
||||||
@ -116,4 +117,6 @@ list-resources
|
|||||||
build?
|
build?
|
||||||
build steamboat
|
build steamboat
|
||||||
build fireplace
|
build fireplace
|
||||||
|
build axe
|
||||||
|
list-buildings
|
||||||
build steamboat
|
build steamboat
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
OK
|
OK
|
||||||
EMPTY
|
EMPTY
|
||||||
|
EMPTY
|
||||||
wood
|
wood
|
||||||
wood
|
wood
|
||||||
wood
|
wood
|
||||||
@ -107,3 +108,6 @@ steamboat
|
|||||||
Error, need fireplace to build
|
Error, need fireplace to build
|
||||||
OK
|
OK
|
||||||
OK
|
OK
|
||||||
|
axe
|
||||||
|
fireplace
|
||||||
|
OK
|
||||||
|
@ -16,7 +16,9 @@ public class ListBuildings extends Command {
|
|||||||
if (items.isEmpty()) {
|
if (items.isEmpty()) {
|
||||||
Terminal.printLine("EMPTY");
|
Terminal.printLine("EMPTY");
|
||||||
} else {
|
} else {
|
||||||
items.forEach(Terminal::printLine);
|
for (int i = items.size() - 1; i >= 0; i--) {
|
||||||
|
Terminal.printLine(items.get(i));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user