- Improved TargetCardInASingleGraveyard to restrict all targets after the 1st to the same graveyard as the first chosen target

- Added slight documentation to Target and TargetCard
- Minor cleanup to Unlicensedhearse
This commit is contained in:
Alex Vasile 2022-05-25 10:57:13 -06:00
parent 82708e4273
commit eb63ea1e32
4 changed files with 86 additions and 17 deletions

View file

@ -36,6 +36,14 @@ public interface Target extends Serializable {
// methods for targets
boolean canChoose(UUID sourceControllerId, Ability source, Game game);
/**
* Returns a set of all possible targets that match the criteria of the implemented Target class.
*
* @param sourceControllerId UUID of the ability's controller
* @param source Ability which requires the targets
* @param game Current game
* @return Set of the UUIDs of possible targets
*/
Set<UUID> possibleTargets(UUID sourceControllerId, Ability source, Game game);
boolean chooseTarget(Outcome outcome, UUID playerId, Ability source, Game game);