Removed unused class
This commit is contained in:
@@ -2,7 +2,7 @@ package com.gempukku.lotro.game;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
public interface CardCollection extends OwnershipCheck {
|
||||
public interface CardCollection {
|
||||
int getCurrency();
|
||||
|
||||
Iterable<Item> getAll();
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
package com.gempukku.lotro.game;
|
||||
|
||||
public interface OwnershipCheck {
|
||||
public int getItemCount(String blueprintId);
|
||||
}
|
||||
@@ -620,9 +620,7 @@ public class HallServer extends AbstractServer {
|
||||
String blueprintId = cardCount.getKey();
|
||||
int count = cardCount.getValue();
|
||||
|
||||
int owned = 0;
|
||||
if (ownedCollection != null)
|
||||
owned = ownedCollection.getItemCount(blueprintId);
|
||||
int owned = ownedCollection.getItemCount(blueprintId);
|
||||
int fromOwned = Math.min(owned, count);
|
||||
|
||||
for (int i = 0; i < fromOwned; i++)
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
package com.gempukku.lotro.hall;
|
||||
|
||||
import com.gempukku.lotro.game.OwnershipCheck;
|
||||
|
||||
public class MergedOwnershipCheck implements OwnershipCheck {
|
||||
private OwnershipCheck[] _ownershipChecks;
|
||||
|
||||
public MergedOwnershipCheck(OwnershipCheck... ownershipChecks) {
|
||||
_ownershipChecks = ownershipChecks;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getItemCount(String blueprintId) {
|
||||
int count = 0;
|
||||
for (OwnershipCheck ownershipCheck : _ownershipChecks)
|
||||
count += ownershipCheck.getItemCount(blueprintId);
|
||||
return count;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user