check method
This method is called per simulation step for all game entities. If the game entity touches the region of the trigger, the respective action is executed.
Implementation
/// entity touches the region of the trigger, the respective action is executed.
Trigger check(GameEntity entity ) {
if (region.touching( entity ) == true ) {
execute( entity );
}
return this;
}