void function ( Actor arg0 ) { this . actor = arg0 ; if ( target == null ) setTarget ( arg0 ) ; if ( arg0 == null ) { if ( pool != null ) { pool . free ( this ) ; pool = null ; } } }
sets the actor this action is attached to . this also sets the #settarget actor target actor if it is null . thismethod is called automatically when an action is added to an actor . this method is also called with null when an action is removed from an actor . when set to null , if the action has a #setpool pool pool then the action is pool #free object returned tothe pool which calls #reset and the pool is set to null . if the action does not have a pool , #reset isnot called . this method is not typically a good place for an action subclass to query the actor 's state because the action may not be executed for some time , eg it may be delayaction delayed . the actor 's state is best queried in the first call to #act float . for a temporalaction , use temporalaction #begin . concode_field_sep Actor actor concode_elem_sep Pool pool concode_elem_sep Actor target concode_field_sep void setPool concode_elem_sep Actor getTarget concode_elem_sep boolean act concode_elem_sep void restart concode_elem_sep Pool getPool concode_elem_sep void setTarget concode_elem_sep void reset concode_elem_sep String toString concode_elem_sep Actor getActor