EntityFinder( functions )

constructor

Create a new EntityFinder that uses multiple condition functions. An Entity must pass all of the functions before being accepted.

Arguments

Name Type Description
functions Table of Function The condition functions to use

Returns

Type Description
EntityFinder The new EntityFinder

Notes

Each condition function should be free standing, take an Entity as its only argument and return a boolean - true if the Entity passed the test and false if it failed.