From 58c15db1b1c43dd5ab1dec0b4219f9ac719f3118 Mon Sep 17 00:00:00 2001 From: EpicKnarvik97 Date: Tue, 3 Mar 2020 12:14:07 +0100 Subject: [PATCH] =?UTF-8?q?Gj=C3=B8r=20IDeck=20type-agnostisk?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/inf112/fiasko/roborally/objects/IDeck.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/inf112/fiasko/roborally/objects/IDeck.java b/src/main/java/inf112/fiasko/roborally/objects/IDeck.java index 2b42f0d..eff00e3 100644 --- a/src/main/java/inf112/fiasko/roborally/objects/IDeck.java +++ b/src/main/java/inf112/fiasko/roborally/objects/IDeck.java @@ -5,7 +5,7 @@ import java.util.List; /** * Describes a deck */ -public interface IDeck { +public interface IDeck { /** * Shuffles the order of the cards in the deck @@ -16,20 +16,20 @@ public interface IDeck { * Draws one card from the top of another deck * @param other The deck to draw the card from */ - void draw(IDeck other); + void draw(IDeck other); /** * Draws n cards from the top of another deck * @param other The other deck to draw from * @param n The number of cards to draw */ - void draw(IDeck other, int n); + void draw(IDeck other, int n); /** * Moves all cards in this deck into another deck * @param other The deck to move this deck's cards into */ - void emptyInto(IDeck other); + void emptyInto(IDeck other); /** * Whether this deck is empty @@ -51,5 +51,5 @@ public interface IDeck { * * @return A list of all cards in this deck */ - List, Class>> getCards(); + List getCards(); }