-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'issue/762' into release/2.4.2
- Loading branch information
Showing
13 changed files
with
392 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Submodule dev-lib
updated
27 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
|
||
/** | ||
* Target validator hook reactor interface.. | ||
* | ||
* @package WordPoints | ||
* @since 2.4.2 | ||
*/ | ||
|
||
/** | ||
* Interface for hook reactors that need to validate the target. | ||
* | ||
* Sometimes a reactor cannot hit just any target. Implementing this interface gives | ||
* the option of validating the target before a hit is attempted. Note that this may | ||
* happen before it is determined whether or not a hit should actually occur. | ||
* | ||
* @since 2.4.2 | ||
*/ | ||
interface WordPoints_Hook_Reactor_Target_ValidatorI { | ||
|
||
/** | ||
* Checks if the reactor can hit the given target. | ||
* | ||
* @since 2.4.2 | ||
* | ||
* @param WordPoints_EntityishI $target The target to be hit. | ||
* @param WordPoints_Hook_Fire $fire The fire the target would be hit by. | ||
* | ||
* @return bool Whether the target can be hit by the reactor or not. | ||
*/ | ||
public function can_hit( WordPoints_EntityishI $target, WordPoints_Hook_Fire $fire ); | ||
} | ||
|
||
// EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.