EntityFinder( finder )
constructor
Create a new EntityFinder that has a single condition object. This object must have a function named "evaluate" that takes an Entity as an argument and returns a boolean.
Arguments
Name | Type | Description |
---|---|---|
finder | Object | Finder to use as a condtion |
Returns
Type | Description |
---|---|
EntityFinder | The new EntityFinder |
Notes
The object passed as the finder argument must have a function name evaluate. This function should take an Entity as its only argument and return a boolean - true if the Entity passed the test and false if it failed.