MCPcopy Create free account
hub / github.com/Card-Forge/forge / Combat

Method Combat

forge-game/src/main/java/forge/game/combat/Combat.java:76–80  ·  view source on GitHub ↗
(final Player attacker)

Source from the content-addressed store, hash-verified

74 private final Supplier<CardCollection> combatantsThatDealtFirstStrikeDamage = Suppliers.memoize(CardCollection::new);
75
76 public Combat(final Player attacker) {
77 playerWhoAttacks = attacker;
78 legacyOrderCombatants = playerWhoAttacks.getGame().getRules().hasOrderCombatants();
79 initConstraints();
80 }
81
82 public Combat(Combat combat, IEntityMap map) {
83 playerWhoAttacks = map.map(combat.playerWhoAttacks);

Callers

nothing calls this directly

Calls 14

initConstraintsMethod · 0.95
getAttackersMethod · 0.95
setBlockedMethod · 0.95
hasOrderCombatantsMethod · 0.80
mapCollectionMethod · 0.80
getRulesMethod · 0.65
getGameMethod · 0.65
mapMethod · 0.65
getMethod · 0.65
addMethod · 0.65
getValueMethod · 0.45
isBlockedMethod · 0.45

Tested by

no test coverage detected