/** Adds an effector with an explicit body */ @Beta public <T> void addEffector(Effector<T> effector, EffectorBody<T> body) { addEffector(effector, new EffectorBodyTaskFactory<T>(body)); }
/** Adds an effector with an explicit body */ @Beta public <T> void addEffector(Effector<T> effector, EffectorTaskFactory<T> body) { addEffector(new EffectorAndBody<T>(effector, body)); } /** Adds an effector with an explicit body */
/** attaches lifecycle effectors (start, restart, stop) to the given entity (post-creation) */ public void attachLifecycleEffectors(Entity entity) { ((EntityInternal)entity).getMutableEntityType().addEffector(newStartEffector()); ((EntityInternal)entity).getMutableEntityType().addEffector(newRestartEffector()); ((EntityInternal)entity).getMutableEntityType().addEffector(newStopEffector()); }