mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-02-01 07:39:35 +01:00
Endret getCards i Deck
This commit is contained in:
parent
42726b5e78
commit
e07e10b2bc
@ -108,7 +108,13 @@ public abstract class Deck<T> implements IDeck<T> {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<T> getCards() {
|
public List<T> getCards() {
|
||||||
return cardDeck;
|
|
||||||
|
ArrayList<T> returnDeck = new ArrayList<>();
|
||||||
|
for (T card:cardDeck){
|
||||||
|
returnDeck.add(card);
|
||||||
|
}
|
||||||
|
return returnDeck;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user