diff options
author | Eduardo Pedroni <e.pedroni91@gmail.com> | 2016-04-05 18:38:01 +0200 |
---|---|---|
committer | Eduardo Pedroni <e.pedroni91@gmail.com> | 2016-04-05 18:38:01 +0200 |
commit | 73d271d69b7ddca5dcc0343a769fa129bc4515df (patch) | |
tree | 03506100d7fbafafdc6d24cdae37b7e5fd9cbba5 /src/eu/equalparts | |
parent | 499e77db6c4d535cd3cb0023230618565624b744 (diff) |
Refactoring....
Diffstat (limited to 'src/eu/equalparts')
3 files changed, 11 insertions, 0 deletions
diff --git a/src/eu/equalparts/cardbase/Cardbase.java b/src/eu/equalparts/cardbase/Cardbase.java index 4404613..2d92d64 100644 --- a/src/eu/equalparts/cardbase/Cardbase.java +++ b/src/eu/equalparts/cardbase/Cardbase.java @@ -41,6 +41,15 @@ public class Cardbase implements StandaloneCardContainer { @JsonProperty private Map<Integer, Object> decks; /** + * Creates a clean cardbase. + */ + public Cardbase() { + cardReferences = new HashMap<>(); + cardData = new HashMap<>(); + decks = new HashMap<>(); + } + + /** * Creates and returns a cardbase with the contents of a file. * * @param cardbaseFile the cardbase JSON to load. diff --git a/src/eu/equalparts/cardbase/cardstorage/ReferenceCardContainer.java b/src/eu/equalparts/cardbase/cardstorage/ReferenceCardContainer.java index 284fc89..34ea4c6 100644 --- a/src/eu/equalparts/cardbase/cardstorage/ReferenceCardContainer.java +++ b/src/eu/equalparts/cardbase/cardstorage/ReferenceCardContainer.java @@ -3,6 +3,7 @@ package eu.equalparts.cardbase.cardstorage; import eu.equalparts.cardbase.cards.Card; /** + * TODO fix comments * A class which holds card counts by reference (hash). * * @author Eduardo Pedroni diff --git a/src/eu/equalparts/cardbase/cardstorage/StandaloneCardContainer.java b/src/eu/equalparts/cardbase/cardstorage/StandaloneCardContainer.java index 517bf47..aa2a3cf 100644 --- a/src/eu/equalparts/cardbase/cardstorage/StandaloneCardContainer.java +++ b/src/eu/equalparts/cardbase/cardstorage/StandaloneCardContainer.java @@ -5,6 +5,7 @@ import java.util.Collection; import eu.equalparts.cardbase.cards.Card; /** + * TODO fix comments * Holds actual card data in addition to the card counts in {@code ReferenceCardContainer}. * * @author Eduardo Pedroni |