Skip to content

Commit

Permalink
Because of the view, added getCards method in ZoneComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
Zomis committed Sep 17, 2014
1 parent 798653f commit 82e2bf1
Showing 1 changed file with 6 additions and 0 deletions.
@@ -1,8 +1,10 @@
package net.zomis.cardshifter.ecs.cards;

import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.function.Consumer;
import java.util.stream.Stream;
Expand Down Expand Up @@ -91,4 +93,8 @@ public Stream<Entity> stream() {
return cards.stream();
}

public List<Entity> getCards() {
return new ArrayList<>(cards);
}

}

0 comments on commit 82e2bf1

Please sign in to comment.