protected Actor prepareActor() {
        final LmlActorBuilder builder = getNewInstanceOfBuilder();
        final ObjectSet<String> processedAttributes = GdxSets.newSet();
        addDefaultAttributes();
        processBuildingAttributes(builder, processedAttributes);
        final Actor actor;
        try {
            actor = getNewInstanceOfActor(builder);
        } catch (final Exception exception) {
            getParser().throwError("Unable to create a new instance of actor with tag: " + getTagName(), exception);
            return null;
        }
        builder.finishBuilding(actor);
        processTagAttributes(processedAttributes, actor, getManagedObject());
        invokeOnCreateActions(actor);
        return actor;
    }
protected Actor prepareActor ( ) { final LmlActorBuilder builder = getNewInstanceOfBuilder ( ) ; final ObjectSet < String > processedAttributes = GdxSets . newSet ( ) ; addDefaultAttributes ( ) ; processBuildingAttributes ( builder , processedAttributes ) ; final Actor actor ; try { actor = getNewInstanceOfActor ( builder ) ; } catch ( final Exception exception ) { getParser ( ) . throwError ( "Unable to create a new instance of actor with tag: " + getTagName ( ) , exception ) ; return null ; } builder . finishBuilding ( actor ) ; processTagAttributes ( processedAttributes , actor , getManagedObject ( ) ) ; invokeOnCreateActions ( actor ) ; return actor ; }
Warning: invoked by the constructor.
@return a fully initiated instance of the actor, with its tag attributes processed.