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