mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
Commit initial version of experimental AI simulation code.
It's disabled by default. Set SpellAbilityPicker.USE_SIMULATION = true to enable. It's nowhere near complete and there are still tons of issues to work out, but it works a lot of the time.
This commit is contained in:
@@ -2396,6 +2396,10 @@ public class Card extends GameEntity implements Comparable<Card> {
|
||||
public Map<Long, CardChangedType> getChangedCardTypes() {
|
||||
return Collections.unmodifiableMap(changedCardTypes);
|
||||
}
|
||||
|
||||
public Map<Long, KeywordsChange> getChangedCardKeywords() {
|
||||
return changedCardKeywords;
|
||||
}
|
||||
|
||||
public final void addChangedCardTypes(final CardType addType, final CardType removeType,
|
||||
final boolean removeSuperTypes, final boolean removeCardTypes, final boolean removeSubTypes,
|
||||
@@ -6443,4 +6447,18 @@ public class Card extends GameEntity implements Comparable<Card> {
|
||||
return keywords;
|
||||
}
|
||||
}
|
||||
|
||||
public void setChangedCardTypes(Map<Long, CardChangedType> changedCardTypes) {
|
||||
this.changedCardTypes.clear();
|
||||
for (Entry<Long, CardChangedType> entry : changedCardTypes.entrySet()) {
|
||||
this.changedCardTypes.put(entry.getKey(), entry.getValue());
|
||||
}
|
||||
}
|
||||
|
||||
public void setChangedCardKeywords(Map<Long, KeywordsChange> changedCardKeywords) {
|
||||
this.changedCardKeywords.clear();
|
||||
for (Entry<Long, KeywordsChange> entry : changedCardKeywords.entrySet()) {
|
||||
this.changedCardKeywords.put(entry.getKey(), entry.getValue());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user